diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-20 14:46:54 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-05-22 06:33:12 +0000 |
commit | 83eb114394879cbfd073322a51c47d02553c1fcf (patch) | |
tree | 5cd7d277ffc175fc7e6fd66140cb280caf1b0451 /vcl/source/window/winproc.cxx | |
parent | e929194317a7debb1c5467282230cbbabe61a710 (diff) |
convert constants in include/vcl/settings.hxx to scoped enums
Change-Id: I2a110c017f13eca6ddbd70ef3ed195d24adef0a3
Reviewed-on: https://gerrit.libreoffice.org/15828
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/window/winproc.cxx')
-rw-r--r-- | vcl/source/window/winproc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index d314ebd112ae..96c6c0bd3a01 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -697,7 +697,7 @@ bool ImplHandleMouseEvent( vcl::Window* pWindow, MouseNotifyEvent nSVEvent, bool { // Auto-ToTop if ( !pSVData->maWinData.mpCaptureWin && - (pChild->GetSettings().GetMouseSettings().GetOptions() & MOUSE_OPTION_AUTOFOCUS) ) + (pChild->GetSettings().GetMouseSettings().GetOptions() & MouseSettingsOptions::AutoFocus) ) pChild->ToTop( TOTOP_NOGRABFOCUS ); if( aDelData.IsDead() ) @@ -785,10 +785,10 @@ bool ImplHandleMouseEvent( vcl::Window* pWindow, MouseNotifyEvent nSVEvent, bool if ( /*!bRet &&*/ (nClicks == 1) && (nSVEvent == MouseNotifyEvent::MOUSEBUTTONDOWN) && (nCode == MOUSE_MIDDLE) ) { - sal_uInt16 nMiddleAction = pChild->GetSettings().GetMouseSettings().GetMiddleButtonAction(); - if ( nMiddleAction == MOUSE_MIDDLE_AUTOSCROLL ) + MouseMiddleButtonAction nMiddleAction = pChild->GetSettings().GetMouseSettings().GetMiddleButtonAction(); + if ( nMiddleAction == MouseMiddleButtonAction::AutoScroll ) bRet = !ImplCallCommand( pChild, CommandEventId::StartAutoScroll, NULL, true, &aChildPos ); - else if ( nMiddleAction == MOUSE_MIDDLE_PASTESELECTION ) + else if ( nMiddleAction == MouseMiddleButtonAction::PasteSelection ) bRet = !ImplCallCommand( pChild, CommandEventId::PasteSelection, NULL, true, &aChildPos ); } else |