diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-26 13:01:46 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-27 08:09:35 +0000 |
commit | 7ef698355ad59c6fa263daa4ded124cf512e8926 (patch) | |
tree | c929c4d25b985116192045f213b6beacf43989c2 /editeng/source/outliner/outlvw.cxx | |
parent | 608396721edcdfce8a325026844fd2fab72bbb73 (diff) |
fdo#84938: replace KEYTYPE_ constants with enum
Change-Id: I563cf96f8ca815d6c8ad9f5fe365fc7ce7a2a328
Reviewed-on: https://gerrit.libreoffice.org/12104
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng/source/outliner/outlvw.cxx')
-rw-r--r-- | editeng/source/outliner/outlvw.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx index bc0aeedead0d..f0032b8b10d1 100644 --- a/editeng/source/outliner/outlvw.cxx +++ b/editeng/source/outliner/outlvw.cxx @@ -93,11 +93,11 @@ bool OutlinerView::PostKeyEvent( const KeyEvent& rKEvt, vcl::Window* pFrameWin ) return true; } - if ( eFunc != KEYFUNC_DONTKNOW ) + if ( eFunc != KeyFuncType::DONTKNOW ) { switch ( eFunc ) { - case KEYFUNC_CUT: + case KeyFuncType::CUT: { if ( !bReadOnly ) { @@ -106,13 +106,13 @@ bool OutlinerView::PostKeyEvent( const KeyEvent& rKEvt, vcl::Window* pFrameWin ) } } break; - case KEYFUNC_COPY: + case KeyFuncType::COPY: { Copy(); bKeyProcessed = true; } break; - case KEYFUNC_PASTE: + case KeyFuncType::PASTE: { if ( !bReadOnly ) { @@ -121,7 +121,7 @@ bool OutlinerView::PostKeyEvent( const KeyEvent& rKEvt, vcl::Window* pFrameWin ) } } break; - case KEYFUNC_DELETE: + case KeyFuncType::DELETE: { if( !bReadOnly && !bSelection && ( pOwner->ImplGetOutlinerMode() != OUTLINERMODE_TEXTOBJECT ) ) { @@ -138,10 +138,10 @@ bool OutlinerView::PostKeyEvent( const KeyEvent& rKEvt, vcl::Window* pFrameWin ) } break; default: // is then possibly edited below. - eFunc = KEYFUNC_DONTKNOW; + eFunc = KeyFuncType::DONTKNOW; } } - if ( eFunc == KEYFUNC_DONTKNOW ) + if ( eFunc == KeyFuncType::DONTKNOW ) { switch ( nCode ) { |