summaryrefslogtreecommitdiff
path: root/include/svx/svdpntv.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-18 13:53:12 +0200
committerNoel Grandin <noel@peralex.com>2016-08-19 08:18:37 +0200
commitc2238e16fd131c4e6d49960e8b3caf5ec6a3d001 (patch)
tree4b2faaf9176fc3b3b14f152ca34bf88fcc0604d3 /include/svx/svdpntv.hxx
parentdf418a41c1b90ab1a92eb150d01601f708856722 (diff)
convert SdrAnimationMode to scoped enum
Change-Id: I8a88a7ee538dab020e2ee08e4dce4b100f0bfa3b
Diffstat (limited to 'include/svx/svdpntv.hxx')
-rw-r--r--include/svx/svdpntv.hxx12
1 files changed, 6 insertions, 6 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