slideshow: sal_Bool->bool
Change-Id: I0a8886fe164989661add0665c4744fd17a9ef40c
This commit is contained in:
@@ -172,7 +172,7 @@ bool BaseContainerNode::notifyDeactivatedChild(
|
||||
bool BaseContainerNode::repeat()
|
||||
{
|
||||
forEachChildNode( boost::mem_fn(&AnimationNode::end), ~ENDED );
|
||||
sal_Bool bState = init_children();
|
||||
bool bState = init_children();
|
||||
if( bState )
|
||||
activate_st();
|
||||
return bState;
|
||||
|
@@ -209,14 +209,14 @@ namespace slideshow
|
||||
}
|
||||
|
||||
|
||||
sal_Bool operator==( const HSLColor& rLHS, const HSLColor& rRHS )
|
||||
bool operator==( const HSLColor& rLHS, const HSLColor& rRHS )
|
||||
{
|
||||
return ( rLHS.getHue() == rRHS.getHue() &&
|
||||
rLHS.getSaturation() == rRHS.getSaturation() &&
|
||||
rLHS.getLuminance() == rRHS.getLuminance() );
|
||||
}
|
||||
|
||||
sal_Bool operator!=( const HSLColor& rLHS, const HSLColor& rRHS )
|
||||
bool operator!=( const HSLColor& rLHS, const HSLColor& rRHS )
|
||||
{
|
||||
return !( rLHS == rRHS );
|
||||
}
|
||||
@@ -350,14 +350,14 @@ namespace slideshow
|
||||
255 );
|
||||
}
|
||||
|
||||
sal_Bool operator==( const RGBColor& rLHS, const RGBColor& rRHS )
|
||||
bool operator==( const RGBColor& rLHS, const RGBColor& rRHS )
|
||||
{
|
||||
return ( rLHS.getRed() == rRHS.getRed() &&
|
||||
rLHS.getGreen() == rRHS.getGreen() &&
|
||||
rLHS.getBlue() == rRHS.getBlue() );
|
||||
}
|
||||
|
||||
sal_Bool operator!=( const RGBColor& rLHS, const RGBColor& rRHS )
|
||||
bool operator!=( const RGBColor& rLHS, const RGBColor& rRHS )
|
||||
{
|
||||
return !( rLHS == rRHS );
|
||||
}
|
||||
|
@@ -159,8 +159,8 @@ private:
|
||||
basegfx::B2DRectangle const& parentBounds );
|
||||
|
||||
// Access to VisibleWhenSTarted flags
|
||||
sal_Bool IsVisibleWhenStarted() const { return mbVisibleWhenStarted; }
|
||||
sal_Bool IsVisibleWhenStopped() const { return mbVisibleWhenStopped; }
|
||||
bool IsVisibleWhenStarted() const { return mbVisibleWhenStarted; }
|
||||
bool IsVisibleWhenStopped() const { return mbVisibleWhenStopped; }
|
||||
|
||||
// scroll horizontal? if sal_False, scroll is vertical.
|
||||
bool ScrollHorizontal() const {
|
||||
@@ -270,7 +270,7 @@ double ActivityImpl::GetMixerState( sal_uInt32 nTime )
|
||||
{
|
||||
// from AInfoBlinkText:
|
||||
double fRetval(0.0);
|
||||
sal_Bool bDone(sal_False);
|
||||
bool bDone(false);
|
||||
const sal_uInt32 nLoopTime(2 * mnFrequency);
|
||||
|
||||
if(mnRepeat)
|
||||
@@ -284,7 +284,7 @@ double ActivityImpl::GetMixerState( sal_uInt32 nTime )
|
||||
else
|
||||
fRetval = 1.0;
|
||||
|
||||
bDone = sal_True;
|
||||
bDone = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -380,13 +380,13 @@ namespace slideshow
|
||||
|
||||
if( rxProps.is() )
|
||||
{
|
||||
sal_Bool bLoop( false );
|
||||
bool bLoop( false );
|
||||
getPropertyValue( bLoop,
|
||||
rxProps,
|
||||
OUString( "Loop" ));
|
||||
mxPlayer->setPlaybackLoop( bLoop );
|
||||
|
||||
sal_Bool bMute( false );
|
||||
bool bMute( false );
|
||||
getPropertyValue( bMute,
|
||||
rxProps,
|
||||
OUString( "Mute" ));
|
||||
|
@@ -259,7 +259,7 @@ namespace internal
|
||||
// initially. This is currently the only place
|
||||
// where a shape effect influences shape
|
||||
// attributes outside it's effective duration.
|
||||
sal_Bool bVisible( sal_False );
|
||||
bool bVisible( false );
|
||||
if( xAnimateNode->getAttributeName().equalsIgnoreAsciiCase("visibility") )
|
||||
{
|
||||
|
||||
@@ -277,12 +277,12 @@ namespace internal
|
||||
if( aString.equalsIgnoreAsciiCase("true") ||
|
||||
aString.equalsIgnoreAsciiCase("on") )
|
||||
{
|
||||
bVisible = sal_True;
|
||||
bVisible = true;
|
||||
}
|
||||
if( aString.equalsIgnoreAsciiCase("false") ||
|
||||
aString.equalsIgnoreAsciiCase("off") )
|
||||
{
|
||||
bVisible = sal_False;
|
||||
bVisible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -711,11 +711,11 @@ void SlideShowImpl::stopSlideTransitionSound()
|
||||
|
||||
SoundPlayerSharedPtr SlideShowImpl::resetSlideTransitionSound( const uno::Any& rSound, bool bLoopSound )
|
||||
{
|
||||
sal_Bool bStopSound = sal_False;
|
||||
bool bStopSound = false;
|
||||
OUString url;
|
||||
|
||||
if( !(rSound >>= bStopSound) )
|
||||
bStopSound = sal_False;
|
||||
bStopSound = false;
|
||||
rSound >>= url;
|
||||
|
||||
if( !bStopSound && url.isEmpty() )
|
||||
@@ -810,7 +810,7 @@ ActivitySharedPtr SlideShowImpl::createSlideTransition(
|
||||
const RGBColor aTransitionFadeColor( unoColor2RGBColor( aUnoColor ));
|
||||
|
||||
uno::Any aSound;
|
||||
sal_Bool bLoopSound = sal_False;
|
||||
bool bLoopSound = false;
|
||||
|
||||
if( !getPropertyValue( aSound, xPropSet, "Sound") )
|
||||
OSL_TRACE( "createSlideTransition(): Could not determine transition sound effect URL from XDrawPage - using no sound" );
|
||||
@@ -1690,7 +1690,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
|
||||
|
||||
if ( rProperty.Name == "AdvanceOnClick" )
|
||||
{
|
||||
sal_Bool bAdvanceOnClick = sal_False;
|
||||
bool bAdvanceOnClick = false;
|
||||
if (! (rProperty.Value >>= bAdvanceOnClick))
|
||||
return false;
|
||||
maUserEventQueue.setAdvanceOnClick( bAdvanceOnClick );
|
||||
@@ -1699,10 +1699,10 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
|
||||
|
||||
if ( rProperty.Name == "DisableAnimationZOrder" )
|
||||
{
|
||||
sal_Bool bDisableAnimationZOrder = sal_False;
|
||||
bool bDisableAnimationZOrder = false;
|
||||
if (! (rProperty.Value >>= bDisableAnimationZOrder))
|
||||
return false;
|
||||
mbDisableAnimationZOrder = bDisableAnimationZOrder == sal_True;
|
||||
mbDisableAnimationZOrder = bDisableAnimationZOrder;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1817,7 +1817,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty )
|
||||
{
|
||||
uno::Sequence<uno::Any> aValues;
|
||||
uno::Reference<presentation::XSlideShowView> xView;
|
||||
sal_Bool bValue (false);
|
||||
bool bValue (false);
|
||||
if ((rProperty.Value >>= aValues)
|
||||
&& aValues.getLength()==2
|
||||
&& (aValues[0] >>= xView)
|
||||
|
@@ -374,7 +374,7 @@ namespace slideshow
|
||||
const ShapeSharedPtr& /*rShape*/,
|
||||
const ::basegfx::B2DVector& /*rSlideBounds*/ )
|
||||
{
|
||||
sal_Bool nTmp = sal_Bool();
|
||||
bool nTmp;
|
||||
// try to extract bool value
|
||||
if( (rSourceAny >>= nTmp) )
|
||||
{
|
||||
|
@@ -79,8 +79,8 @@ namespace slideshow
|
||||
double mnMagicValue;
|
||||
};
|
||||
|
||||
sal_Bool operator==( const HSLColor& rLHS, const HSLColor& rRHS );
|
||||
sal_Bool operator!=( const HSLColor& rLHS, const HSLColor& rRHS );
|
||||
bool operator==( const HSLColor& rLHS, const HSLColor& rRHS );
|
||||
bool operator!=( const HSLColor& rLHS, const HSLColor& rRHS );
|
||||
HSLColor operator+( const HSLColor& rLHS, const HSLColor& rRHS );
|
||||
HSLColor operator*( const HSLColor& rLHS, const HSLColor& rRHS );
|
||||
HSLColor operator*( double nFactor, const HSLColor& rRHS );
|
||||
|
@@ -75,8 +75,8 @@ namespace slideshow
|
||||
RGBTriple maRGBTriple;
|
||||
};
|
||||
|
||||
sal_Bool operator==( const RGBColor& rLHS, const RGBColor& rRHS );
|
||||
sal_Bool operator!=( const RGBColor& rLHS, const RGBColor& rRHS );
|
||||
bool operator==( const RGBColor& rLHS, const RGBColor& rRHS );
|
||||
bool operator!=( const RGBColor& rLHS, const RGBColor& rRHS );
|
||||
RGBColor operator+( const RGBColor& rLHS, const RGBColor& rRHS );
|
||||
RGBColor operator*( const RGBColor& rLHS, const RGBColor& rRHS );
|
||||
RGBColor operator*( double nFactor, const RGBColor& rRHS );
|
||||
|
Reference in New Issue
Block a user