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/table/svdotable.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/table/svdotable.cxx')
-rw-r--r-- | svx/source/table/svdotable.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index d3ab40c875ee..1e44e1f23e09 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -1622,9 +1622,9 @@ void SdrTableObj::TakeTextEditArea( const CellPos& rPos, Size* pPaperMin, Size* } -sal_uInt16 SdrTableObj::GetOutlinerViewAnchorMode() const +EEAnchorMode SdrTableObj::GetOutlinerViewAnchorMode() const { - EVAnchorMode eRet=ANCHOR_TOP_LEFT; + EEAnchorMode eRet=EEAnchorMode::TopLeft; CellRef xCell( getActiveCell() ); if( xCell.is() ) { @@ -1633,19 +1633,19 @@ sal_uInt16 SdrTableObj::GetOutlinerViewAnchorMode() const { 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; } } } - return (sal_uInt16)eRet; + return eRet; } |