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 /cui | |
parent | de47ae4f7e409d2e341829a044d8f721377e2663 (diff) |
convert SvxInterLineSpaceRule to scoped enum
and rename it to be more explicit
Change-Id: I3f8bd7928495dba1e94b785cdda06d9819ee66bf
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/paragrph.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index 1ad8bdcc1e55..3062eeb094da 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -105,7 +105,7 @@ void SetLineSpace_Impl( SvxLineSpacingItem& rLineSpace, { case LLINESPACE_1: rLineSpace.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; - rLineSpace.GetInterLineSpaceRule() = SVX_INTER_LINE_SPACE_OFF; + rLineSpace.SetInterLineSpaceRule( SvxInterLineSpaceRule::Off ); break; case LLINESPACE_115: @@ -130,7 +130,7 @@ void SetLineSpace_Impl( SvxLineSpacingItem& rLineSpace, case LLINESPACE_MIN: rLineSpace.SetLineHeight( (sal_uInt16)lValue ); - rLineSpace.GetInterLineSpaceRule() = SVX_INTER_LINE_SPACE_OFF; + rLineSpace.SetInterLineSpaceRule( SvxInterLineSpaceRule::Off ); break; case LLINESPACE_DURCH: @@ -141,7 +141,7 @@ void SetLineSpace_Impl( SvxLineSpacingItem& rLineSpace, 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; } } @@ -720,17 +720,17 @@ void SvxStdParagraphTabPage::SetLineSpacing_Impl { case SVX_LINE_SPACE_AUTO: { - SvxInterLineSpace eInter = rAttr.GetInterLineSpaceRule(); + SvxInterLineSpaceRule eInter = rAttr.GetInterLineSpaceRule(); switch( eInter ) { // Default single line spacing - case SVX_INTER_LINE_SPACE_OFF: + case SvxInterLineSpaceRule::Off: m_pLineDist->SelectEntryPos( LLINESPACE_1 ); break; // Default single line spacing - case SVX_INTER_LINE_SPACE_PROP: + case SvxInterLineSpaceRule::Prop: if ( 100 == rAttr.GetPropLineSpace() ) { m_pLineDist->SelectEntryPos( LLINESPACE_1 ); @@ -759,7 +759,7 @@ void SvxStdParagraphTabPage::SetLineSpacing_Impl m_pLineDist->SelectEntryPos( LLINESPACE_PROP ); break; - case SVX_INTER_LINE_SPACE_FIX: + case SvxInterLineSpaceRule::Fix: SetMetricValue( *m_pLineDistAtMetricBox, rAttr.GetInterLineSpace(), eUnit ); m_pLineDist->SelectEntryPos( LLINESPACE_DURCH ); break; |