diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-16 12:48:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-17 08:45:15 +0200 |
commit | 49561be0fd2041fc9d32c4ac1ab1063f620a4e08 (patch) | |
tree | 4345072ee14a3451e1b9b1bd0e646c146844665e /editeng/source/rtf | |
parent | 42ab2cfbd92bc30a62a2c126d4ad6d5726846d8b (diff) |
convert SvxTabAdjust to scoped enum
Change-Id: I29a33b8ea5daaa4b9059d024ffa4a99ca924f7ef
Diffstat (limited to 'editeng/source/rtf')
-rw-r--r-- | editeng/source/rtf/rtfitem.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx index ff4afc633ac0..fe6440979752 100644 --- a/editeng/source/rtf/rtfitem.cxx +++ b/editeng/source/rtf/rtfitem.cxx @@ -1282,7 +1282,7 @@ void SvxRTFParser::ReadTabAttr( int nToken, SfxItemSet& rSet ) bool bMethodOwnsToken = false; // #i52542# patch from cmc. // then read all the TabStops SvxTabStop aTabStop; - SvxTabStopItem aAttr( 0, 0, SVX_TAB_ADJUST_DEFAULT, aPardMap.nTabStop ); + SvxTabStopItem aAttr( 0, 0, SvxTabAdjust::Default, aPardMap.nTabStop ); bool bContinue = true; do { switch( nToken ) @@ -1299,16 +1299,16 @@ void SvxRTFParser::ReadTabAttr( int nToken, SfxItemSet& rSet ) break; case RTF_TQL: - aTabStop.GetAdjustment() = SVX_TAB_ADJUST_LEFT; + aTabStop.GetAdjustment() = SvxTabAdjust::Left; break; case RTF_TQR: - aTabStop.GetAdjustment() = SVX_TAB_ADJUST_RIGHT; + aTabStop.GetAdjustment() = SvxTabAdjust::Right; break; case RTF_TQC: - aTabStop.GetAdjustment() = SVX_TAB_ADJUST_CENTER; + aTabStop.GetAdjustment() = SvxTabAdjust::Center; break; case RTF_TQDEC: - aTabStop.GetAdjustment() = SVX_TAB_ADJUST_DECIMAL; + aTabStop.GetAdjustment() = SvxTabAdjust::Decimal; break; case RTF_TLDOT: aTabStop.GetFill() = '.'; break; @@ -1873,9 +1873,9 @@ void SvxRTFParser::SetDefault( int nToken, int nValue ) // we want Defaulttabs SvxTabStopItem aNewTab( nTabCount, sal_uInt16(nValue), - SVX_TAB_ADJUST_DEFAULT, aPardMap.nTabStop ); + SvxTabAdjust::Default, aPardMap.nTabStop ); while( nTabCount ) - ((SvxTabStop&)aNewTab[ --nTabCount ]).GetAdjustment() = SVX_TAB_ADJUST_DEFAULT; + ((SvxTabStop&)aNewTab[ --nTabCount ]).GetAdjustment() = SvxTabAdjust::Default; pAttrPool->SetPoolDefaultItem( aNewTab ); } |