diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-16 11:56:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-17 08:45:15 +0200 |
commit | 42ab2cfbd92bc30a62a2c126d4ad6d5726846d8b (patch) | |
tree | 07cfc005093e203c93c633da24eb5bdcf00314b6 /svx/source | |
parent | a49eeecd2372c620caa66428acaf27ebc7d70e92 (diff) |
convert SvxLineSpace to scoped enum
and rename to be more explicit
Change-Id: Id06e6b68ef30e1d0d0daf19c37a390060e8bcb01
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx b/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx index a3925ea7bef9..17bdd7e206de 100644 --- a/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx +++ b/svx/source/sidebar/paragraph/ParaLineSpacingControl.cxx @@ -125,7 +125,7 @@ void ParaLineSpacingControl::Initialize() switch( currSPItem->GetLineSpaceRule() ) { - case SVX_LINE_SPACE_AUTO: + case SvxLineSpaceRule::Auto: { SvxInterLineSpaceRule eInter = currSPItem->GetInterLineSpaceRule(); @@ -172,14 +172,14 @@ void ParaLineSpacingControl::Initialize() } } break; - case SVX_LINE_SPACE_FIX: + case SvxLineSpaceRule::Fix: { SelectEntryPos(LLINESPACE_FIX); SetMetricValue(*mpLineDistAtMetricBox, currSPItem->GetLineHeight(), eUnit); } break; - case SVX_LINE_SPACE_MIN: + case SvxLineSpaceRule::Min: { SelectEntryPos(LLINESPACE_MIN); SetMetricValue(*mpLineDistAtMetricBox, currSPItem->GetLineHeight(), eUnit); @@ -374,27 +374,27 @@ void ParaLineSpacingControl::SetLineSpace(SvxLineSpacingItem& rLineSpace, sal_In switch ( eSpace ) { case LLINESPACE_1: - rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; + rLineSpace.SetLineSpaceRule( SvxLineSpaceRule::Auto ); rLineSpace.SetInterLineSpaceRule( SvxInterLineSpaceRule::Off ); break; case LLINESPACE_115: - rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; + rLineSpace.SetLineSpaceRule( SvxLineSpaceRule::Auto ); rLineSpace.SetPropLineSpace( LINESPACE_115 ); break; case LLINESPACE_15: - rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; + rLineSpace.SetLineSpaceRule( SvxLineSpaceRule::Auto ); rLineSpace.SetPropLineSpace( LINESPACE_15 ); break; case LLINESPACE_2: - rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; + rLineSpace.SetLineSpaceRule( SvxLineSpaceRule::Auto ); rLineSpace.SetPropLineSpace( LINESPACE_2 ); break; case LLINESPACE_PROP: - rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; + rLineSpace.SetLineSpaceRule( SvxLineSpaceRule::Auto ); rLineSpace.SetPropLineSpace( (sal_uInt8)lValue ); break; @@ -404,13 +404,13 @@ void ParaLineSpacingControl::SetLineSpace(SvxLineSpacingItem& rLineSpace, sal_In break; case LLINESPACE_DURCH: - rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; + rLineSpace.SetLineSpaceRule( SvxLineSpaceRule::Auto ); rLineSpace.SetInterLineSpace( (sal_uInt16)lValue ); break; case LLINESPACE_FIX: rLineSpace.SetLineHeight((sal_uInt16)lValue); - rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_FIX; + rLineSpace.SetLineSpaceRule( SvxLineSpaceRule::Fix ); rLineSpace.SetInterLineSpaceRule( SvxInterLineSpaceRule::Off ); break; } |