diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-16 09:59:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-17 08:45:15 +0200 |
commit | a49eeecd2372c620caa66428acaf27ebc7d70e92 (patch) | |
tree | ce9b6ec88766662272f517710a62a831b02592a8 /svx/source | |
parent | de47ae4f7e409d2e341829a044d8f721377e2663 (diff) |
convert SvxInterLineSpaceRule to scoped enum
and rename it to be more explicit
Change-Id: I3f8bd7928495dba1e94b785cdda06d9819ee66bf
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx b/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx index 98594af8e1cb..a3925ea7bef9 100644 --- a/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx +++ b/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx @@ -127,15 +127,15 @@ void ParaLineSpacingControl::Initialize() { case SVX_LINE_SPACE_AUTO: { - SvxInterLineSpace eInter = currSPItem->GetInterLineSpaceRule(); + SvxInterLineSpaceRule eInter = currSPItem->GetInterLineSpaceRule(); switch( eInter ) { - case SVX_INTER_LINE_SPACE_OFF: + case SvxInterLineSpaceRule::Off: SelectEntryPos(LLINESPACE_1); break; - case SVX_INTER_LINE_SPACE_PROP: + case SvxInterLineSpaceRule::Prop: { if ( LINESPACE_1 == currSPItem->GetPropLineSpace() ) { @@ -161,7 +161,7 @@ void ParaLineSpacingControl::Initialize() } break; - case SVX_INTER_LINE_SPACE_FIX: + case SvxInterLineSpaceRule::Fix: { SelectEntryPos(LLINESPACE_DURCH); SetMetricValue(*mpLineDistAtMetricBox, currSPItem->GetInterLineSpace(), eUnit); @@ -375,7 +375,7 @@ void ParaLineSpacingControl::SetLineSpace(SvxLineSpacingItem& rLineSpace, sal_In { case LLINESPACE_1: rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; - rLineSpace.GetInterLineSpaceRule() = SVX_INTER_LINE_SPACE_OFF; + rLineSpace.SetInterLineSpaceRule( SvxInterLineSpaceRule::Off ); break; case LLINESPACE_115: @@ -400,7 +400,7 @@ void ParaLineSpacingControl::SetLineSpace(SvxLineSpacingItem& rLineSpace, sal_In case LLINESPACE_MIN: rLineSpace.SetLineHeight( (sal_uInt16)lValue ); - rLineSpace.GetInterLineSpaceRule() = SVX_INTER_LINE_SPACE_OFF; + rLineSpace.SetInterLineSpaceRule( SvxInterLineSpaceRule::Off ); break; case LLINESPACE_DURCH: @@ -411,7 +411,7 @@ void ParaLineSpacingControl::SetLineSpace(SvxLineSpacingItem& rLineSpace, sal_In case LLINESPACE_FIX: rLineSpace.SetLineHeight((sal_uInt16)lValue); rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_FIX; - rLineSpace.GetInterLineSpaceRule() = SVX_INTER_LINE_SPACE_OFF; + rLineSpace.SetInterLineSpaceRule( SvxInterLineSpaceRule::Off ); break; } } |