diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-21 10:37:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-21 09:24:55 +0000 |
commit | 51c6e9153de507f37d1474b31f557265cb304c06 (patch) | |
tree | 6d02d302fbee51a934c9fb8235cf4b410fde5d53 /editeng/source/items/paraitem.cxx | |
parent | 25e4708c1f49986f3f082beb2e940aa2d7fb4d81 (diff) |
convert SfxItemPresentation to scoped enum
Change-Id: Ibf605706a9f804ab509ac4f92f5f88fcf3daebc1
Reviewed-on: https://gerrit.libreoffice.org/29131
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/items/paraitem.cxx')
-rw-r--r-- | editeng/source/items/paraitem.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx index 3ce42df30ac6..6a12381dc164 100644 --- a/editeng/source/items/paraitem.cxx +++ b/editeng/source/items/paraitem.cxx @@ -422,8 +422,8 @@ bool SvxAdjustItem::GetPresentation { switch ( ePres ) { - case SFX_ITEM_PRESENTATION_NAMELESS: - case SFX_ITEM_PRESENTATION_COMPLETE: + case SfxItemPresentation::Nameless: + case SfxItemPresentation::Complete: rText = GetValueTextByPos( (sal_uInt16)GetAdjust() ); return true; default: ;//prevent warning @@ -537,13 +537,13 @@ bool SvxWidowsItem::GetPresentation { switch ( ePres ) { - case SFX_ITEM_PRESENTATION_NAMELESS: + case SfxItemPresentation::Nameless: { rText = EE_RESSTR(RID_SVXITEMS_LINES); break; } - case SFX_ITEM_PRESENTATION_COMPLETE: + case SfxItemPresentation::Complete: { rText = EE_RESSTR(RID_SVXITEMS_WIDOWS_COMPLETE) + " " + EE_RESSTR(RID_SVXITEMS_LINES); break; @@ -598,13 +598,13 @@ bool SvxOrphansItem::GetPresentation { switch ( ePres ) { - case SFX_ITEM_PRESENTATION_NAMELESS: + case SfxItemPresentation::Nameless: { rText = EE_RESSTR(RID_SVXITEMS_LINES); break; } - case SFX_ITEM_PRESENTATION_COMPLETE: + case SfxItemPresentation::Complete: { rText = EE_RESSTR(RID_SVXITEMS_ORPHANS_COMPLETE) + " " + EE_RESSTR(RID_SVXITEMS_LINES); break; @@ -711,7 +711,7 @@ bool SvxHyphenZoneItem::GetPresentation OUString cpDelimTmp(cpDelim); switch ( ePres ) { - case SFX_ITEM_PRESENTATION_NAMELESS: + case SfxItemPresentation::Nameless: { sal_uInt16 nId = RID_SVXITEMS_HYPHEN_FALSE; @@ -728,7 +728,7 @@ bool SvxHyphenZoneItem::GetPresentation OUString::number( nMaxHyphens ); return true; } - case SFX_ITEM_PRESENTATION_COMPLETE: + case SfxItemPresentation::Complete: { sal_uInt16 nId = RID_SVXITEMS_HYPHEN_FALSE; @@ -1045,7 +1045,7 @@ bool SvxTabStopItem::GetPresentation rText += ","; rText += GetMetricText( ((*this)[i]).GetTabPos(), eCoreUnit, ePresUnit, pIntl ); - if ( SFX_ITEM_PRESENTATION_COMPLETE == ePres ) + if ( SfxItemPresentation::Complete == ePres ) { rText += " " + EE_RESSTR(GetMetricId(ePresUnit)); } @@ -1256,12 +1256,12 @@ bool SvxPageModelItem::GetPresentation switch ( ePres ) { - case SFX_ITEM_PRESENTATION_NAMELESS: + case SfxItemPresentation::Nameless: if ( bSet ) rText = GetValue(); return true; - case SFX_ITEM_PRESENTATION_COMPLETE: + case SfxItemPresentation::Complete: if ( bSet ) { rText = EE_RESSTR(RID_SVXITEMS_PAGEMODEL_COMPLETE) + GetValue(); |