diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-20 14:05:50 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-05-29 20:16:52 +0200 |
commit | 118da1a52a74c602ecacec9ffb163b93589cf6e1 (patch) | |
tree | 9fc08877a716ce679440eae63a5e7a59a6c465eb /editeng | |
parent | 66b8dfdc4d1f689d98652cdb52902a2582e801ee (diff) |
convert POINTER constants to scoped enum
Change-Id: Iea29ce5fd6c620535197d3ca8538335078430e19
Reviewed-on: https://gerrit.libreoffice.org/15825
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 10 | ||||
-rw-r--r-- | editeng/source/outliner/outlvw.cxx | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index d08ee75faa26..4866523f5171 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -1189,19 +1189,19 @@ inline const Pointer& ImpEditView::GetPointer() { if ( !pPointer ) { - pPointer = new Pointer( IsVertical() ? POINTER_TEXT_VERTICAL : POINTER_TEXT ); + pPointer = new Pointer( IsVertical() ? PointerStyle::TextVertical : PointerStyle::Text ); return *pPointer; } - if(POINTER_TEXT == pPointer->GetStyle() && IsVertical()) + if(PointerStyle::Text == pPointer->GetStyle() && IsVertical()) { delete pPointer; - pPointer = new Pointer(POINTER_TEXT_VERTICAL); + pPointer = new Pointer(PointerStyle::TextVertical); } - else if(POINTER_TEXT_VERTICAL == pPointer->GetStyle() && !IsVertical()) + else if(PointerStyle::TextVertical == pPointer->GetStyle() && !IsVertical()) { delete pPointer; - pPointer = new Pointer(POINTER_TEXT); + pPointer = new Pointer(PointerStyle::Text); } return *pPointer; diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx index 7e5450d7be28..92f967877e24 100644 --- a/editeng/source/outliner/outlvw.cxx +++ b/editeng/source/outliner/outlvw.cxx @@ -734,18 +734,18 @@ Pointer OutlinerView::GetPointer( const Point& rPosPixel ) MouseTarget eTarget; ImpCheckMousePos( rPosPixel, eTarget ); - PointerStyle ePointerStyle = POINTER_ARROW; + PointerStyle ePointerStyle = PointerStyle::Arrow; if ( eTarget == MouseTarget::Text ) { - ePointerStyle = GetOutliner()->IsVertical() ? POINTER_TEXT_VERTICAL : POINTER_TEXT; + ePointerStyle = GetOutliner()->IsVertical() ? PointerStyle::TextVertical : PointerStyle::Text; } else if ( eTarget == MouseTarget::Hypertext ) { - ePointerStyle = POINTER_REFHAND; + ePointerStyle = PointerStyle::RefHand; } else if ( eTarget == MouseTarget::Bullet ) { - ePointerStyle = POINTER_MOVE; + ePointerStyle = PointerStyle::Move; } return Pointer( ePointerStyle ); |