summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/shells')
-rw-r--r--sw/source/uibase/shells/drwtxtex.cxx6
-rw-r--r--sw/source/uibase/shells/drwtxtsh.cxx8
-rw-r--r--sw/source/uibase/shells/langhelper.cxx8
3 files changed, 11 insertions, 11 deletions
diff --git a/sw/source/uibase/shells/drwtxtex.cxx b/sw/source/uibase/shells/drwtxtex.cxx
index 291328d2fae9..f0105c37ff12 100644
--- a/sw/source/uibase/shells/drwtxtex.cxx
+++ b/sw/source/uibase/shells/drwtxtex.cxx
@@ -443,14 +443,14 @@ void SwDrawTextShell::Execute( SfxRequest &rReq )
//!! JP 16.03.2001: why?? pSdrView = rSh.GetDrawView();
//!! JP 16.03.2001: why?? pOutliner = pSdrView->GetTextEditOutliner();
SdrOutliner * pOutliner = pSdrView->GetTextEditOutliner();
- sal_uInt32 nCtrl = pOutliner->GetControlWord();
+ EEControlBits nCtrl = pOutliner->GetControlWord();
bool bSet = static_cast<const SfxBoolItem&>(rReq.GetArgs()->Get(
nSlot)).GetValue();
if(bSet)
- nCtrl |= EE_CNTRL_ONLINESPELLING|EE_CNTRL_ALLOWBIGOBJS;
+ nCtrl |= EEControlBits::ONLINESPELLING|EEControlBits::ALLOWBIGOBJS;
else
- nCtrl &= ~EE_CNTRL_ONLINESPELLING;
+ nCtrl &= ~EEControlBits::ONLINESPELLING;
pOutliner->SetControlWord(nCtrl);
rView.ExecuteSlot(rReq);
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx
index ccadc8f92a06..a2aa744ccb06 100644
--- a/sw/source/uibase/shells/drwtxtsh.cxx
+++ b/sw/source/uibase/shells/drwtxtsh.cxx
@@ -103,8 +103,8 @@ void SwDrawTextShell::Init()
if( !pOutliner )
return ;
OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView();
- sal_uLong nCtrl = pOutliner->GetControlWord();
- nCtrl |= EE_CNTRL_AUTOCORRECT;
+ EEControlBits nCtrl = pOutliner->GetControlWord();
+ nCtrl |= EEControlBits::AUTOCORRECT;
SetUndoManager(&pOutliner->GetUndoManager());
@@ -113,10 +113,10 @@ void SwDrawTextShell::Init()
const SwViewOption* pVOpt = rSh.GetViewOptions();
if(pVOpt->IsOnlineSpell())
{
- nCtrl |= EE_CNTRL_ONLINESPELLING|EE_CNTRL_ALLOWBIGOBJS;
+ nCtrl |= EEControlBits::ONLINESPELLING|EEControlBits::ALLOWBIGOBJS;
}
else
- nCtrl &= ~(EE_CNTRL_ONLINESPELLING);
+ nCtrl &= ~(EEControlBits::ONLINESPELLING);
pOutliner->SetControlWord(nCtrl);
pOLV->ShowCursor();
diff --git a/sw/source/uibase/shells/langhelper.cxx b/sw/source/uibase/shells/langhelper.cxx
index 866aeb9240d1..cf7bf29952cc 100644
--- a/sw/source/uibase/shells/langhelper.cxx
+++ b/sw/source/uibase/shells/langhelper.cxx
@@ -193,16 +193,16 @@ namespace SwLangHelper
if (bForSelection)
{
const SwViewOption* pVOpt = rView.GetWrtShellPtr()->GetViewOptions();
- sal_uLong nCntrl = pEditEngine->GetControlWord();
+ EEControlBits nCntrl = pEditEngine->GetControlWord();
// turn off
- nCntrl &= ~EE_CNTRL_ONLINESPELLING;
+ nCntrl &= ~EEControlBits::ONLINESPELLING;
pEditEngine->SetControlWord(nCntrl);
//turn back on
if (pVOpt->IsOnlineSpell())
- nCntrl |= EE_CNTRL_ONLINESPELLING;
+ nCntrl |= EEControlBits::ONLINESPELLING;
else
- nCntrl &= ~EE_CNTRL_ONLINESPELLING;
+ nCntrl &= ~EEControlBits::ONLINESPELLING;
pEditEngine->SetControlWord(nCntrl);
pEditEngine->CompleteOnlineSpelling();