diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-07 11:19:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-08 06:30:49 +0000 |
commit | 9cb57a50d7eeaa1dda19d18bcb3cde7e4a7984e5 (patch) | |
tree | 790282bdd3d41f9ceda28267cb72dd119ac15230 /sd | |
parent | bb4cf1da125344d5ef4fe51b0f1549718a11affa (diff) |
convert SvxAdjust to scoped enum
Change-Id: I0df7a5313d6d62d0c657e62ef6014a3ddbab4639
Reviewed-on: https://gerrit.libreoffice.org/34941
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/misc-tests.cxx | 12 | ||||
-rw-r--r-- | sd/source/core/drawdoc4.cxx | 12 | ||||
-rw-r--r-- | sd/source/core/sdpage.cxx | 12 | ||||
-rw-r--r-- | sd/source/core/stlpool.cxx | 8 | ||||
-rw-r--r-- | sd/source/ui/func/fuconcs.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/func/fuconrec.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drtxtob.cxx | 8 | ||||
-rw-r--r-- | sd/source/ui/view/drtxtob1.cxx | 28 | ||||
-rw-r--r-- | sd/source/ui/view/drviews3.cxx | 8 | ||||
-rw-r--r-- | sd/source/ui/view/drviewsf.cxx | 8 |
10 files changed, 53 insertions, 47 deletions
diff --git a/sd/qa/unit/misc-tests.cxx b/sd/qa/unit/misc-tests.cxx index 2a1620c28f21..87c6beb66ca0 100644 --- a/sd/qa/unit/misc-tests.cxx +++ b/sd/qa/unit/misc-tests.cxx @@ -73,6 +73,12 @@ private: sd::DrawDocShellRef Load(const OUString& rURL, sal_Int32 nFormat); }; +std::ostream& operator<<(std::ostream& s, SvxAdjust n) +{ + s << (int)n; + return s; +} + sd::DrawDocShellRef SdMiscTest::Load(const OUString& rURL, sal_Int32 nFormat) { uno::Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create(::comphelper::getProcessComponentContext()); @@ -204,7 +210,7 @@ void SdMiscTest::testTdf99396TextEdit() SfxItemSet aEditAttr(xDocSh->GetDoc()->GetPool()); pView->GetAttributes(aEditAttr); SfxItemSet aNewAttr(*(aEditAttr.GetPool()), aEditAttr.GetRanges()); - aNewAttr.Put(SvxAdjustItem(SVX_ADJUST_RIGHT, EE_PARA_JUST)); + aNewAttr.Put(SvxAdjustItem(SvxAdjust::Right, EE_PARA_JUST)); aRequest.Done(aNewAttr); const SfxItemSet* pArgs = aRequest.GetArgs(); pView->SetAttributes(*pArgs); @@ -228,7 +234,7 @@ void SdMiscTest::testTdf99396TextEdit() const EditTextObject& rEdit = pTableObject->getText(0)->GetOutlinerParaObject()->GetTextObject(); const SfxItemSet& rParaAttribs = rEdit.GetParaAttribs(0); auto pAdjust = static_cast<const SvxAdjustItem*>(rParaAttribs.GetItem(EE_PARA_JUST)); - CPPUNIT_ASSERT_EQUAL(SVX_ADJUST_RIGHT, pAdjust->GetAdjust()); + CPPUNIT_ASSERT_EQUAL(SvxAdjust::Right, pAdjust->GetAdjust()); } // Now undo. @@ -246,7 +252,7 @@ void SdMiscTest::testTdf99396TextEdit() const EditTextObject& rEdit = pTableObject->getText(0)->GetOutlinerParaObject()->GetTextObject(); const SfxItemSet& rParaAttribs = rEdit.GetParaAttribs(0); auto pAdjust = static_cast<const SvxAdjustItem*>(rParaAttribs.GetItem(EE_PARA_JUST)); - CPPUNIT_ASSERT_EQUAL(SVX_ADJUST_CENTER, pAdjust->GetAdjust()); + CPPUNIT_ASSERT_EQUAL(SvxAdjust::Center, pAdjust->GetAdjust()); } diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx index 306f3394e4f2..3afd771c6292 100644 --- a/sd/source/core/drawdoc4.cxx +++ b/sd/source/core/drawdoc4.cxx @@ -340,7 +340,7 @@ void SdDrawDocument::CreateLayoutTemplates() pISet->Put(XLineStyleItem(drawing::LineStyle_NONE)); pISet->Put(XFillStyleItem(drawing::FillStyle_NONE)); - pISet->Put(SvxAdjustItem(SVX_ADJUST_BLOCK, EE_PARA_JUST )); + pISet->Put(SvxAdjustItem(SvxAdjust::Block, EE_PARA_JUST )); // Text body, indented aName = SD_RESSTR(STR_POOLSHEET_TEXTBODY_INDENT); @@ -387,7 +387,7 @@ void SdDrawDocument::CreateLayoutTemplates() pISet->Put(SvxFontHeightItem(846, 100, EE_CHAR_FONTHEIGHT )); // 24 pt - pISet->Put(SvxAdjustItem(SVX_ADJUST_CENTER, EE_PARA_JUST )); + pISet->Put(SvxAdjustItem(SvxAdjust::Center, EE_PARA_JUST )); // Title2 @@ -416,7 +416,7 @@ void SdDrawDocument::CreateLayoutTemplates() pISet->Put(SvxULSpaceItem(100, 100, EE_PARA_ULSPACE )); // Paragraph margin above/below: 1 mm - pISet->Put(SvxAdjustItem(SVX_ADJUST_CENTER, EE_PARA_JUST )); + pISet->Put(SvxAdjustItem(SvxAdjust::Center, EE_PARA_JUST )); // Headline @@ -1210,7 +1210,7 @@ void SdDrawDocument::SetTextDefaults() const aNumberFormat.SetBulletRelSize(45); aNumberFormat.SetBulletColor(Color(COL_AUTO)); aNumberFormat.SetStart(1); - aNumberFormat.SetNumAdjust(SVX_ADJUST_LEFT); + aNumberFormat.SetNumAdjust(SvxAdjust::Left); SvxNumRule aNumRule( SvxNumRuleFlags::BULLET_REL_SIZE | SvxNumRuleFlags::BULLET_COLOR | SvxNumRuleFlags::CHAR_TEXT_DISTANCE, SVX_MAX_NUM, false); @@ -1270,10 +1270,10 @@ void SdDrawDocument::SetDefaultWritingMode(css::text::WritingMode eMode ) SvxFrameDirectionItem aModeItem( nVal, EE_PARA_WRITINGDIR ); pItemPool->SetPoolDefaultItem( aModeItem ); - SvxAdjustItem aAdjust( SVX_ADJUST_LEFT, EE_PARA_JUST ); + SvxAdjustItem aAdjust( SvxAdjust::Left, EE_PARA_JUST ); if( eMode == css::text::WritingMode_RL_TB ) - aAdjust.SetEnumValue( SVX_ADJUST_RIGHT ); + aAdjust.SetAdjust( SvxAdjust::Right ); pItemPool->SetPoolDefaultItem( aAdjust ); diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx index 70326eaae0f1..d74dccf36efd 100644 --- a/sd/source/core/sdpage.cxx +++ b/sd/source/core/sdpage.cxx @@ -478,22 +478,22 @@ SdrObject* SdPage::CreatePresObj(PresObjKind eObjKind, bool bVertical, const Rec aTempAttr.Put( SvxFontHeightItem( 493, 100, EE_CHAR_FONTHEIGHT_CTL ) ); aTempAttr.Put( SvxFontHeightItem( 493, 100, EE_CHAR_FONTHEIGHT_CJK ) ); - SvxAdjust eH = SVX_ADJUST_LEFT; + SvxAdjust eH = SvxAdjust::Left; if( (eObjKind == PRESOBJ_DATETIME) && (mePageKind != PageKind::Standard ) ) { - eH = SVX_ADJUST_RIGHT; + eH = SvxAdjust::Right; } else if( (eObjKind == PRESOBJ_FOOTER) && (mePageKind == PageKind::Standard ) ) { - eH = SVX_ADJUST_CENTER; + eH = SvxAdjust::Center; } else if( eObjKind == PRESOBJ_SLIDENUMBER ) { - eH = SVX_ADJUST_RIGHT; + eH = SvxAdjust::Right; } - if( eH != SVX_ADJUST_LEFT ) + if( eH != SvxAdjust::Left ) aTempAttr.Put(SvxAdjustItem(eH, EE_PARA_JUST )); pSdrObj->SetMergedItemSet(aTempAttr); @@ -537,7 +537,7 @@ SdrObject* SdPage::CreatePresObj(PresObjKind eObjKind, bool bVertical, const Rec { SfxItemSet aSet( static_cast<SdDrawDocument*>(pModel)->GetPool() ); aSet.Put( makeSdrTextContourFrameItem( true ) ); - aSet.Put( SvxAdjustItem( SVX_ADJUST_CENTER, EE_PARA_JUST ) ); + aSet.Put( SvxAdjustItem( SvxAdjust::Center, EE_PARA_JUST ) ); pSdrObj->SetMergedItemSet(aSet); } diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 29afb37dc523..d16e2fb76106 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -364,7 +364,7 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool rTitleSet.Put( SvxCharReliefItem(FontRelief::NONE, EE_CHAR_RELIEF ) ); rTitleSet.Put(SvxColorItem( Color(COL_AUTO), EE_CHAR_COLOR )); rTitleSet.Put(SvxBackgroundColorItem( Color(COL_AUTO), EE_CHAR_BKGCOLOR )); - rTitleSet.Put(SvxAdjustItem(SVX_ADJUST_CENTER, EE_PARA_JUST )); + rTitleSet.Put(SvxAdjustItem(SvxAdjust::Center, EE_PARA_JUST )); rTitleSet.Put( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_CENTER ) ); // #i16874# enable kerning by default but only for new documents rTitleSet.Put( SvxAutoKernItem( true, EE_CHAR_PAIRKERNING ) ); @@ -410,7 +410,7 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool rSubtitleSet.Put( SvxCharReliefItem(FontRelief::NONE, EE_CHAR_RELIEF ) ); rSubtitleSet.Put(SvxColorItem( Color(COL_AUTO), EE_CHAR_COLOR )); rSubtitleSet.Put(SvxBackgroundColorItem( Color(COL_AUTO), EE_CHAR_BKGCOLOR )); - rSubtitleSet.Put(SvxAdjustItem(SVX_ADJUST_CENTER, EE_PARA_JUST )); + rSubtitleSet.Put(SvxAdjustItem(SvxAdjust::Center, EE_PARA_JUST )); rSubtitleSet.Put( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_CENTER ) ); // #i16874# enable kerning by default but only for new documents rSubtitleSet.Put( SvxAutoKernItem( true, EE_CHAR_PAIRKERNING ) ); @@ -1097,7 +1097,7 @@ void SdStyleSheetPool::PutNumBulletItem( SfxStyleSheetBase* pSheet, aNumberFormat.SetBulletRelSize(45); aNumberFormat.SetBulletColor(Color(COL_AUTO)); aNumberFormat.SetStart(1); - aNumberFormat.SetNumAdjust(SVX_ADJUST_LEFT); + aNumberFormat.SetNumAdjust(SvxAdjust::Left); SvxNumRule aNumRule( SvxNumRuleFlags::BULLET_REL_SIZE | SvxNumRuleFlags::BULLET_COLOR | SvxNumRuleFlags::CHAR_TEXT_DISTANCE, SVX_MAX_NUM, false); @@ -1154,7 +1154,7 @@ void SdStyleSheetPool::PutNumBulletItem( SfxStyleSheetBase* pSheet, SvxNumberFormat aNumberFormat(SVX_NUM_CHAR_SPECIAL); aNumberFormat.SetBulletColor(Color(COL_AUTO)); aNumberFormat.SetStart(1); - aNumberFormat.SetNumAdjust(SVX_ADJUST_LEFT); + aNumberFormat.SetNumAdjust(SvxAdjust::Left); SvxNumRule aNumRule( SvxNumRuleFlags::BULLET_REL_SIZE | SvxNumRuleFlags::BULLET_COLOR | SvxNumRuleFlags::CHAR_TEXT_DISTANCE | SvxNumRuleFlags::SYMBOL_ALIGNMENT, diff --git a/sd/source/ui/func/fuconcs.cxx b/sd/source/ui/func/fuconcs.cxx index 95eaad97eeb6..51d73079020e 100644 --- a/sd/source/ui/func/fuconcs.cxx +++ b/sd/source/ui/func/fuconcs.cxx @@ -224,7 +224,7 @@ void FuConstructCustomShape::SetAttributes( SdrObject* pObj ) } if ( !bAttributesAppliedFromGallery ) { - pObj->SetMergedItem( SvxAdjustItem( SVX_ADJUST_CENTER, EE_PARA_JUST ) ); + pObj->SetMergedItem( SvxAdjustItem( SvxAdjust::Center, EE_PARA_JUST ) ); pObj->SetMergedItem( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_CENTER ) ); pObj->SetMergedItem( SdrTextHorzAdjustItem( SDRTEXTHORZADJUST_BLOCK ) ); pObj->SetMergedItem( makeSdrTextAutoGrowHeightItem( false ) ); diff --git a/sd/source/ui/func/fuconrec.cxx b/sd/source/ui/func/fuconrec.cxx index 4551bc712195..ea54683d072f 100644 --- a/sd/source/ui/func/fuconrec.cxx +++ b/sd/source/ui/func/fuconrec.cxx @@ -466,7 +466,7 @@ void FuConstructRectangle::SetAttributes(SfxItemSet& rAttr, SdrObject* pObj) else rAttr.Put( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_BLOCK ) ); - rAttr.Put( SvxAdjustItem( SVX_ADJUST_CENTER, EE_PARA_JUST ) ); + rAttr.Put( SvxAdjustItem( SvxAdjust::Center, EE_PARA_JUST ) ); rAttr.Put( makeSdrTextLeftDistItem( 100 ) ); rAttr.Put( makeSdrTextRightDistItem( 100 ) ); rAttr.Put( makeSdrTextUpperDistItem( 100 ) ); diff --git a/sd/source/ui/view/drtxtob.cxx b/sd/source/ui/view/drtxtob.cxx index ef1926241799..17015f8b35ee 100644 --- a/sd/source/ui/view/drtxtob.cxx +++ b/sd/source/ui/view/drtxtob.cxx @@ -481,16 +481,16 @@ void TextObjectBar::GetAttrState( SfxItemSet& rSet ) SvxAdjust eAdj = static_cast<const SvxAdjustItem&>( aAttrSet.Get( EE_PARA_JUST ) ).GetAdjust(); switch( eAdj ) { - case SVX_ADJUST_LEFT: + case SvxAdjust::Left: rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_LEFT, true ) ); break; - case SVX_ADJUST_CENTER: + case SvxAdjust::Center: rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_CENTER, true ) ); break; - case SVX_ADJUST_RIGHT: + case SvxAdjust::Right: rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_RIGHT, true ) ); break; - case SVX_ADJUST_BLOCK: + case SvxAdjust::Block: rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_BLOCK, true ) ); break; default: diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx index 00d2434140f8..801664d60671 100644 --- a/sd/source/ui/view/drtxtob1.cxx +++ b/sd/source/ui/view/drtxtob1.cxx @@ -491,22 +491,22 @@ void TextObjectBar::Execute( SfxRequest &rReq ) case SID_ATTR_PARA_ADJUST_LEFT: { - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_LEFT, EE_PARA_JUST ) ); + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Left, EE_PARA_JUST ) ); } break; case SID_ATTR_PARA_ADJUST_CENTER: { - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_CENTER, EE_PARA_JUST ) ); + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Center, EE_PARA_JUST ) ); } break; case SID_ATTR_PARA_ADJUST_RIGHT: { - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_RIGHT, EE_PARA_JUST ) ); + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Right, EE_PARA_JUST ) ); } break; case SID_ATTR_PARA_ADJUST_BLOCK: { - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_BLOCK, EE_PARA_JUST ) ); + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Block, EE_PARA_JUST ) ); } break; case SID_ATTR_PARA_LINESPACE_10: @@ -579,21 +579,21 @@ void TextObjectBar::Execute( SfxRequest &rReq ) { bool bLeftToRight = nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT; - sal_uInt16 nAdjust = SVX_ADJUST_LEFT; + SvxAdjust nAdjust = SvxAdjust::Left; if( SfxItemState::SET == aEditAttr.GetItemState(EE_PARA_JUST, true, &pPoolItem ) ) - nAdjust = static_cast<const SvxAdjustItem*>(pPoolItem)->GetEnumValue(); + nAdjust = static_cast<const SvxAdjustItem*>(pPoolItem)->GetAdjust(); if( bLeftToRight ) { aNewAttr.Put( SvxFrameDirectionItem( FRMDIR_HORI_LEFT_TOP, EE_PARA_WRITINGDIR ) ); - if( nAdjust == SVX_ADJUST_RIGHT ) - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_LEFT, EE_PARA_JUST ) ); + if( nAdjust == SvxAdjust::Right ) + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Left, EE_PARA_JUST ) ); } else { aNewAttr.Put( SvxFrameDirectionItem( FRMDIR_HORI_RIGHT_TOP, EE_PARA_WRITINGDIR ) ); - if( nAdjust == SVX_ADJUST_LEFT ) - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_RIGHT, EE_PARA_JUST ) ); + if( nAdjust == SvxAdjust::Left ) + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Right, EE_PARA_JUST ) ); } rReq.Done( aNewAttr ); @@ -627,22 +627,22 @@ void TextObjectBar::Execute( SfxRequest &rReq ) { case SID_ATTR_PARA_ADJUST_LEFT: { - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_LEFT, EE_PARA_JUST ) ); + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Left, EE_PARA_JUST ) ); } break; case SID_ATTR_PARA_ADJUST_CENTER: { - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_CENTER, EE_PARA_JUST ) ); + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Center, EE_PARA_JUST ) ); } break; case SID_ATTR_PARA_ADJUST_RIGHT: { - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_RIGHT, EE_PARA_JUST ) ); + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Right, EE_PARA_JUST ) ); } break; case SID_ATTR_PARA_ADJUST_BLOCK: { - aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_BLOCK, EE_PARA_JUST ) ); + aNewAttr.Put( SvxAdjustItem( SvxAdjust::Block, EE_PARA_JUST ) ); } break; } diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx index ea73c9427ab7..99220ac085eb 100644 --- a/sd/source/ui/view/drviews3.cxx +++ b/sd/source/ui/view/drviews3.cxx @@ -685,7 +685,7 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq) break; case SID_ATTR_PARA_ADJUST_LEFT: { - SvxAdjustItem aItem( SVX_ADJUST_LEFT, EE_PARA_JUST ); + SvxAdjustItem aItem( SvxAdjust::Left, EE_PARA_JUST ); SfxItemSet aEditAttr( GetPool(), EE_PARA_JUST, EE_PARA_JUST ); aEditAttr.Put( aItem ); @@ -696,7 +696,7 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq) break; case SID_ATTR_PARA_ADJUST_CENTER: { - SvxAdjustItem aItem( SVX_ADJUST_CENTER, EE_PARA_JUST ); + SvxAdjustItem aItem( SvxAdjust::Center, EE_PARA_JUST ); SfxItemSet aEditAttr( GetPool(), EE_PARA_JUST, EE_PARA_JUST ); aEditAttr.Put( aItem ); @@ -707,7 +707,7 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq) break; case SID_ATTR_PARA_ADJUST_RIGHT: { - SvxAdjustItem aItem( SVX_ADJUST_RIGHT, EE_PARA_JUST ); + SvxAdjustItem aItem( SvxAdjust::Right, EE_PARA_JUST ); SfxItemSet aEditAttr( GetPool(), EE_PARA_JUST, EE_PARA_JUST ); aEditAttr.Put( aItem ); @@ -718,7 +718,7 @@ void DrawViewShell::ExecRuler(SfxRequest& rReq) break; case SID_ATTR_PARA_ADJUST_BLOCK: { - SvxAdjustItem aItem( SVX_ADJUST_BLOCK, EE_PARA_JUST ); + SvxAdjustItem aItem( SvxAdjust::Block, EE_PARA_JUST ); SfxItemSet aEditAttr( GetPool(), EE_PARA_JUST, EE_PARA_JUST ); aEditAttr.Put( aItem ); diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx index 0a7c7e0a6124..e07c835f5ec1 100644 --- a/sd/source/ui/view/drviewsf.cxx +++ b/sd/source/ui/view/drviewsf.cxx @@ -291,7 +291,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) SvxAdjustItem aItem= static_cast<const SvxAdjustItem&>( aAttrs.Get( EE_PARA_JUST ) ); SvxAdjust eAdj = aItem.GetAdjust(); - if ( eAdj == SVX_ADJUST_LEFT) + if ( eAdj == SvxAdjust::Left) { rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_LEFT, true ) ); } @@ -308,7 +308,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) SvxAdjustItem aItem= static_cast<const SvxAdjustItem&>( aAttrs.Get( EE_PARA_JUST ) ); SvxAdjust eAdj = aItem.GetAdjust(); - if ( eAdj == SVX_ADJUST_CENTER) + if ( eAdj == SvxAdjust::Center) { rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_CENTER, true ) ); } @@ -325,7 +325,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) SvxAdjustItem aItem= static_cast<const SvxAdjustItem&>( aAttrs.Get( EE_PARA_JUST ) ); SvxAdjust eAdj = aItem.GetAdjust(); - if ( eAdj == SVX_ADJUST_RIGHT) + if ( eAdj == SvxAdjust::Right) { rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_RIGHT, true ) ); } @@ -342,7 +342,7 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) SvxAdjustItem aItem= static_cast<const SvxAdjustItem&>( aAttrs.Get( EE_PARA_JUST ) ); SvxAdjust eAdj = aItem.GetAdjust(); - if ( eAdj == SVX_ADJUST_BLOCK) + if ( eAdj == SvxAdjust::Block) { rSet.Put( SfxBoolItem( SID_ATTR_PARA_ADJUST_BLOCK, true ) ); } |