summaryrefslogtreecommitdiff
path: root/editeng/source/rtf
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-06-05 08:55:56 +0200
committerNoel Grandin <noel@peralex.com>2016-06-10 11:01:04 +0200
commit6925222271d9404ec9f2340b4101ce9b1420539c (patch)
tree8cb4fdf956c1e5524f7c0f39d9294b651096cc6b /editeng/source/rtf
parent5b156b37d487b96ec19d65e01cd8cedd26a2150d (diff)
Convert SvxPraVertAlignItem::Align to scoped enum
Change-Id: I2f73a200b04322dd65e0758f4238347bfea832fb
Diffstat (limited to 'editeng/source/rtf')
-rw-r--r--editeng/source/rtf/rtfitem.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index f6e0691facbe..202578aa98e5 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -210,7 +210,7 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
FontEmphasisMark eEmphasis;
bPardTokenRead = false;
RTF_CharTypeDef eCharType = NOTDEF_CHARTYPE;
- sal_uInt16 nFontAlign;
+ SvxParaVertAlignItem::Align nFontAlign;
bool bChkStkPos = !bNewGroup && !aAttrStack.empty();
@@ -517,15 +517,15 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
break;
case RTF_FAFIXED:
- case RTF_FAAUTO: nFontAlign = SvxParaVertAlignItem::AUTOMATIC;
+ case RTF_FAAUTO: nFontAlign = SvxParaVertAlignItem::Align::Automatic;
goto SET_FONTALIGNMENT;
- case RTF_FAHANG: nFontAlign = SvxParaVertAlignItem::TOP;
+ case RTF_FAHANG: nFontAlign = SvxParaVertAlignItem::Align::Top;
goto SET_FONTALIGNMENT;
- case RTF_FAVAR: nFontAlign = SvxParaVertAlignItem::BOTTOM;
+ case RTF_FAVAR: nFontAlign = SvxParaVertAlignItem::Align::Bottom;
goto SET_FONTALIGNMENT;
- case RTF_FACENTER: nFontAlign = SvxParaVertAlignItem::CENTER;
+ case RTF_FACENTER: nFontAlign = SvxParaVertAlignItem::Align::Center;
goto SET_FONTALIGNMENT;
- case RTF_FAROMAN: nFontAlign = SvxParaVertAlignItem::BASELINE;
+ case RTF_FAROMAN: nFontAlign = SvxParaVertAlignItem::Align::Baseline;
goto SET_FONTALIGNMENT;
SET_FONTALIGNMENT:
if( aPardMap.nFontAlign )