summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotextdecomposition.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-06 10:02:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-06 10:42:26 +0000
commit001feed29c881da5767dd2ae80127fb74926112e (patch)
treee3488f9cfe1f2b522b194d9162452e80e88f03ea /svx/source/svdraw/svdotextdecomposition.cxx
parentf2fa5951bf3d02439a3e96d1f9d89962f0901edc (diff)
convert SdrTextAniKind to scoped enum
Change-Id: Ie79aaf96a0d89c96c4ecd4ee8ccb0eabd3456bd0 Reviewed-on: https://gerrit.libreoffice.org/34916 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdotextdecomposition.cxx')
-rw-r--r--svx/source/svdraw/svdotextdecomposition.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx
index c567477a0f1a..ce9d893971e6 100644
--- a/svx/source/svdraw/svdotextdecomposition.cxx
+++ b/svx/source/svdraw/svdotextdecomposition.cxx
@@ -1205,7 +1205,7 @@ void SdrTextObj::impDecomposeStretchTextPrimitive(
void SdrTextObj::impGetBlinkTextTiming(drawinglayer::animation::AnimationEntryList& rAnimList) const
{
- if(SDRTEXTANI_BLINK == GetTextAniKind())
+ if(SdrTextAniKind::Blink == GetTextAniKind())
{
// get values
const SfxItemSet& rSet = GetObjectItemSet();
@@ -1368,7 +1368,7 @@ void SdrTextObj::impGetScrollTextTiming(drawinglayer::animation::AnimationEntryL
{
const SdrTextAniKind eAniKind(GetTextAniKind());
- if(SDRTEXTANI_SCROLL == eAniKind || SDRTEXTANI_ALTERNATE == eAniKind || SDRTEXTANI_SLIDE == eAniKind)
+ if(SdrTextAniKind::Scroll == eAniKind || SdrTextAniKind::Alternate == eAniKind || SdrTextAniKind::Slide == eAniKind)
{
// get data. Goal is to calculate fTimeFullPath which is the time needed to
// move animation from (0.0) to (1.0) state
@@ -1411,23 +1411,23 @@ void SdrTextObj::impGetScrollTextTiming(drawinglayer::animation::AnimationEntryL
switch(eAniKind)
{
- case SDRTEXTANI_SCROLL :
+ case SdrTextAniKind::Scroll :
{
impCreateScrollTiming(rSet, rAnimList, bForward, fTimeFullPath, fAnimationDelay);
break;
}
- case SDRTEXTANI_ALTERNATE :
+ case SdrTextAniKind::Alternate :
{
double fRelativeTextLength(fTextLength / (fFrameLength + fTextLength));
impCreateAlternateTiming(rSet, rAnimList, fRelativeTextLength, bForward, fTimeFullPath, fAnimationDelay);
break;
}
- case SDRTEXTANI_SLIDE :
+ case SdrTextAniKind::Slide :
{
impCreateSlideTiming(rSet, rAnimList, bForward, fTimeFullPath, fAnimationDelay);
break;
}
- default : break; // SDRTEXTANI_NONE, SDRTEXTANI_BLINK
+ default : break; // SdrTextAniKind::NONE, SdrTextAniKind::Blink
}
}
}