diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-11-26 14:53:25 +0000 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-12-01 07:43:31 +0000 |
commit | 14596452e781f6a66bcc63b0c447c852df1f2896 (patch) | |
tree | c225569f229679084b081021c8c51cfdaf12eb21 /sfx2/source/view/userinputinterception.cxx | |
parent | 96ec51292301a105effacfcceec44f696ee6e0f0 (diff) |
fdo#84938: replace EVENT_ constants with enum
Change-Id: I8275832d8dae43b374bddd48520d11592e9a6a1f
Reviewed-on: https://gerrit.libreoffice.org/13134
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/view/userinputinterception.cxx')
-rw-r--r-- | sfx2/source/view/userinputinterception.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/view/userinputinterception.cxx b/sfx2/source/view/userinputinterception.cxx index 327f40f429b2..a92b575d42d1 100644 --- a/sfx2/source/view/userinputinterception.cxx +++ b/sfx2/source/view/userinputinterception.cxx @@ -171,13 +171,13 @@ namespace sfx2 { Reference < XInterface > xHoldAlive( m_pData->m_rControllerImpl ); - sal_uInt16 nType = _rEvent.GetType(); + MouseNotifyEvent nType = _rEvent.GetType(); bool bHandled = false; switch ( nType ) { - case EVENT_KEYINPUT: - case EVENT_KEYUP: + case MouseNotifyEvent::KEYINPUT: + case MouseNotifyEvent::KEYUP: { KeyEvent aEvent; lcl_initKeyEvent( aEvent, *_rEvent.GetKeyEvent() ); @@ -193,7 +193,7 @@ namespace sfx2 try { - if ( nType == EVENT_KEYINPUT ) + if ( nType == MouseNotifyEvent::KEYINPUT ) bHandled = xHandler->keyPressed( aEvent ); else bHandled = xHandler->keyReleased( aEvent ); @@ -214,8 +214,8 @@ namespace sfx2 } break; - case EVENT_MOUSEBUTTONDOWN: - case EVENT_MOUSEBUTTONUP: + case MouseNotifyEvent::MOUSEBUTTONDOWN: + case MouseNotifyEvent::MOUSEBUTTONUP: { MouseEvent aEvent; lcl_initMouseEvent( aEvent, *_rEvent.GetMouseEvent() ); @@ -231,7 +231,7 @@ namespace sfx2 try { - if ( nType == EVENT_MOUSEBUTTONDOWN ) + if ( nType == MouseNotifyEvent::MOUSEBUTTONDOWN ) bHandled = xHandler->mousePressed( aEvent ); else bHandled = xHandler->mouseReleased( aEvent ); |