summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewdraw.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-24 16:05:55 +0200
committerNoel Grandin <noel@peralex.com>2015-03-25 08:56:14 +0200
commitabf60c4a0fd111985891e2faa30a1e32799fdf9c (patch)
treeb83b66c7457b8e221a01dfe3808adc918c41e6b9 /sw/source/uibase/uiview/viewdraw.cxx
parent6cb56b551bc1e30a887d8a333d70567cad23aa9e (diff)
convert EE_CNTRL constants to enum class
there were a couple of lines in SC and SW where the code was using a EV_CNTRL constant. I switched it to used the same-valued constant from EE_CNTRL Change-Id: I027183cc3b6e700bf365d48833e37eddc9b50f04
Diffstat (limited to 'sw/source/uibase/uiview/viewdraw.cxx')
-rw-r--r--sw/source/uibase/uiview/viewdraw.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx
index 43037c9c6ea6..249787afa234 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -521,20 +521,20 @@ bool SwView::BeginTextEdit(SdrObject* pObj, SdrPageView* pPV, vcl::Window* pWin,
pOutliner->SetHyphenator( xHyphenator );
pSh->SetCalcFieldValueHdl(pOutliner);
- sal_uInt32 nCntrl = pOutliner->GetControlWord();
- nCntrl |= EE_CNTRL_ALLOWBIGOBJS;
+ EEControlBits nCntrl = pOutliner->GetControlWord();
+ nCntrl |= EEControlBits::ALLOWBIGOBJS;
const SwViewOption *pOpt = pSh->GetViewOptions();
if (SwViewOption::IsFieldShadings())
- nCntrl |= EE_CNTRL_MARKFIELDS;
+ nCntrl |= EEControlBits::MARKFIELDS;
else
- nCntrl &= ~EE_CNTRL_MARKFIELDS;
+ nCntrl &= ~EEControlBits::MARKFIELDS;
if (pOpt->IsOnlineSpell())
- nCntrl |= EE_CNTRL_ONLINESPELLING;
+ nCntrl |= EEControlBits::ONLINESPELLING;
else
- nCntrl &= ~EE_CNTRL_ONLINESPELLING;
+ nCntrl &= ~EEControlBits::ONLINESPELLING;
pOutliner->SetControlWord(nCntrl);
const SfxPoolItem& rItem = pSh->GetDoc()->GetDefault(RES_CHRATR_LANGUAGE);