diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-05-07 13:31:18 +0200 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-05-07 21:30:36 +0200 |
commit | 7cc8555e0ac9838d43bb644bac4052008057824d (patch) | |
tree | 1744bd25540b51e5d3f80682e9a0fea7614bd77f /editeng | |
parent | fa19a1f0b050ee6c2ba1f314360e8a2536f61396 (diff) |
convert EESelectionMode to scoped enum
Change-Id: I4da22d40d5b14878b5efac1f3e4a5c76adec37b3
Reviewed-on: https://gerrit.libreoffice.org/37341
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 4 | ||||
-rw-r--r-- | editeng/source/outliner/outlvw.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 71c1471a8961..86b71d6dba26 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -88,7 +88,7 @@ ImpEditView::ImpEditView( EditView* pView, EditEngine* pEng, vcl::Window* pWindo pDragAndDropInfo = nullptr; bReadOnly = false; bClickedInSelection = false; - eSelectionMode = EE_SELMODE_TXTONLY; + eSelectionMode = EESelectionMode::TxtOnly; eAnchorMode = EEAnchorMode::TopLeft; nInvMore = 1; nTravelXPos = TRAVEL_X_DONTKNOW; @@ -196,7 +196,7 @@ void lcl_translateTwips(vcl::Window& rParent, vcl::Window& rChild) void ImpEditView::DrawSelection( EditSelection aTmpSel, vcl::Region* pRegion, OutputDevice* pTargetDevice ) { - if ( eSelectionMode == EE_SELMODE_HIDDEN ) + if ( eSelectionMode == EESelectionMode::Hidden ) return; // It must be ensured before rendering the selection, that the contents of diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx index 455b04aa85b7..b1410319c3ee 100644 --- a/editeng/source/outliner/outlvw.cxx +++ b/editeng/source/outliner/outlvw.cxx @@ -54,7 +54,7 @@ OutlinerView::OutlinerView( Outliner* pOut, vcl::Window* pWin ) pOwner = pOut; pEditView.reset( new EditView( pOut->pEditEngine, pWin ) ); - pEditView->SetSelectionMode( EE_SELMODE_TXTONLY ); + pEditView->SetSelectionMode( EESelectionMode::TxtOnly ); } OutlinerView::~OutlinerView() |