diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-05-03 09:45:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-04 20:32:30 +0200 |
commit | fadf6427a9cbf351727e1412d8079757a994085b (patch) | |
tree | 99c956ba2d4f8bdd9271a01316edcb17a5b23615 /svx/source/svdraw/svdotxed.cxx | |
parent | 8538f28377356a8abd1826c011b2e2cb33dacec2 (diff) |
convert EVAnchorMode enum to scoped enum
change values to match position in definition to their meaning
Change-Id: Ia96e0c7e0c70c847dea518ef871608516542d3cb
Reviewed-on: https://gerrit.libreoffice.org/37186
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdotxed.cxx')
-rw-r--r-- | svx/source/svdraw/svdotxed.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/svx/source/svdraw/svdotxed.cxx b/svx/source/svdraw/svdotxed.cxx index d6ba21c3c69b..3d4b392bab22 100644 --- a/svx/source/svdraw/svdotxed.cxx +++ b/svx/source/svdraw/svdotxed.cxx @@ -309,38 +309,38 @@ void SdrTextObj::EndTextEdit(SdrOutliner& rOutl) mbInEditMode = false; } -sal_uInt16 SdrTextObj::GetOutlinerViewAnchorMode() const +EEAnchorMode SdrTextObj::GetOutlinerViewAnchorMode() const { SdrTextHorzAdjust eH=GetTextHorizontalAdjust(); SdrTextVertAdjust eV=GetTextVerticalAdjust(); - EVAnchorMode eRet=ANCHOR_TOP_LEFT; - if (IsContourTextFrame()) return (sal_uInt16)eRet; + EEAnchorMode eRet=EEAnchorMode::TopLeft; + if (IsContourTextFrame()) return eRet; if (eH==SDRTEXTHORZADJUST_LEFT) { if (eV==SDRTEXTVERTADJUST_TOP) { - eRet=ANCHOR_TOP_LEFT; + eRet=EEAnchorMode::TopLeft; } else if (eV==SDRTEXTVERTADJUST_BOTTOM) { - eRet=ANCHOR_BOTTOM_LEFT; + eRet=EEAnchorMode::BottomLeft; } else { - eRet=ANCHOR_VCENTER_LEFT; + eRet=EEAnchorMode::VCenterLeft; } } else if (eH==SDRTEXTHORZADJUST_RIGHT) { if (eV==SDRTEXTVERTADJUST_TOP) { - eRet=ANCHOR_TOP_RIGHT; + eRet=EEAnchorMode::TopRight; } else if (eV==SDRTEXTVERTADJUST_BOTTOM) { - eRet=ANCHOR_BOTTOM_RIGHT; + eRet=EEAnchorMode::BottomRight; } else { - eRet=ANCHOR_VCENTER_RIGHT; + eRet=EEAnchorMode::VCenterRight; } } else { if (eV==SDRTEXTVERTADJUST_TOP) { - eRet=ANCHOR_TOP_HCENTER; + eRet=EEAnchorMode::TopHCenter; } else if (eV==SDRTEXTVERTADJUST_BOTTOM) { - eRet=ANCHOR_BOTTOM_HCENTER; + eRet=EEAnchorMode::BottomHCenter; } else { - eRet=ANCHOR_VCENTER_HCENTER; + eRet=EEAnchorMode::VCenterHCenter; } } - return (sal_uInt16)eRet; + return eRet; } void SdrTextObj::ImpSetTextEditParams() const |