summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdedxv.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 /svx/source/svdraw/svdedxv.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 'svx/source/svdraw/svdedxv.cxx')
-rw-r--r--svx/source/svdraw/svdedxv.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 5cf1ca1d34d8..f04c617b8a8b 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -206,12 +206,12 @@ void SdrObjEditView::ModelHasChanged()
pTextEditOutliner->SetPaperSize(Size(0,0)); // re-format Outliner
if (!bContourFrame) {
pTextEditOutliner->ClearPolygon();
- sal_uIntPtr nStat=pTextEditOutliner->GetControlWord();
- nStat|=EE_CNTRL_AUTOPAGESIZE;
+ EEControlBits nStat=pTextEditOutliner->GetControlWord();
+ nStat|=EEControlBits::AUTOPAGESIZE;
pTextEditOutliner->SetControlWord(nStat);
} else {
- sal_uIntPtr nStat=pTextEditOutliner->GetControlWord();
- nStat&=~EE_CNTRL_AUTOPAGESIZE;
+ EEControlBits nStat=pTextEditOutliner->GetControlWord();
+ nStat&=~EEControlBits::AUTOPAGESIZE;
pTextEditOutliner->SetControlWord(nStat);
Rectangle aAnchorRect;
pTextObj->TakeTextAnchorRect(aAnchorRect);
@@ -323,7 +323,7 @@ void SdrObjEditView::ImpPaintOutlinerView(OutlinerView& rOutlView, const Rectang
{
const SdrTextObj* pText = PTR_CAST(SdrTextObj,GetTextEditObject());
bool bTextFrame(pText && pText->IsTextFrame());
- bool bFitToSize(0 != (pTextEditOutliner->GetControlWord() & EE_CNTRL_STRETCHING));
+ bool bFitToSize(pTextEditOutliner->GetControlWord() & EEControlBits::STRETCHING);
bool bModifyMerk(pTextEditOutliner->IsModified()); // #43095#
Rectangle aBlankRect(rOutlView.GetOutputArea());
aBlankRect.Union(aMinTextEditArea);