summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svx/svdpntv.hxx12
-rw-r--r--sd/source/ui/view/drviewsa.cxx2
-rw-r--r--svx/source/svdraw/svdpntv.cxx4
3 files changed, 9 insertions, 9 deletions
diff --git a/include/svx/svdpntv.hxx b/include/svx/svdpntv.hxx
index 2683453d9747..331f3870c5bc 100644
--- a/include/svx/svdpntv.hxx
+++ b/include/svx/svdpntv.hxx
@@ -63,10 +63,10 @@ namespace sdr { namespace contact {
// Defines for AnimationMode
-enum SdrAnimationMode
+enum class SdrAnimationMode
{
- SDR_ANIMATION_ANIMATE,
- SDR_ANIMATION_DISABLE
+ Animate,
+ Disable
};
@@ -470,16 +470,16 @@ public:
/// Enable/disable animations for ::Paint
/// Is used by e.g. SdrGrafObj, if it contains an animation
/// Preventing automatic animation is needed for e.g. the presentation view
- bool IsAnimationEnabled() const { return ( SDR_ANIMATION_ANIMATE == meAnimationMode ); }
+ bool IsAnimationEnabled() const { return ( SdrAnimationMode::Animate == meAnimationMode ); }
void SetAnimationEnabled( bool bEnable=true );
/// Set/unset pause state for animations
void SetAnimationPause( bool bSet );
/// Mode when starting an animation in the Paint Handler:
- /// 1. SDR_ANIMATION_ANIMATE (default): start animation normally
+ /// 1. SdrAnimationMode::Animate (default): start animation normally
/// 2. SDR_ANIMATION_DONT_ANIMATE: only show the replacement picture
- /// 3. SDR_ANIMATION_DISABLE: don't start and don't show any replacement
+ /// 3. SdrAnimationMode::Disable: don't start and don't show any replacement
void SetAnimationMode( const SdrAnimationMode eMode );
/// The Browser is destroyed for bShow=false
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index 6e78e3e8c36f..12d946b6381b 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -362,7 +362,7 @@ void DrawViewShell::Shutdown()
if(SlideShow::IsRunning( GetViewShellBase() ) )
{
// Turn off effects.
- GetDrawView()->SetAnimationMode(SDR_ANIMATION_DISABLE);
+ GetDrawView()->SetAnimationMode(SdrAnimationMode::Disable);
}
}
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 6da1847d8754..04e873533d74 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -166,7 +166,7 @@ void SdrPaintView::ImpClearVars()
mbPrintPreview=false;
mbPreviewRenderer=false;
- meAnimationMode = SDR_ANIMATION_ANIMATE;
+ meAnimationMode = SdrAnimationMode::Animate;
mbAnimationPause = false;
mnHitTolPix=2;
@@ -1177,7 +1177,7 @@ void SdrPaintView::DoConnect(SdrOle2Obj* /*pOleObj*/)
void SdrPaintView::SetAnimationEnabled( bool bEnable )
{
- SetAnimationMode( bEnable ? SDR_ANIMATION_ANIMATE : SDR_ANIMATION_DISABLE );
+ SetAnimationMode( bEnable ? SdrAnimationMode::Animate : SdrAnimationMode::Disable );
}
#if defined DBG_UTIL