diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-03 20:51:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-04 07:13:38 +0100 |
commit | 0d4f5bc196d29c6d79acb916f459a0baf758b71d (patch) | |
tree | c3f8c7ca88fc17862b66c36b29b51b4f6baf5218 | |
parent | 21c86b6aaa73a4607eefd5e34bb726f16b505f1f (diff) |
remove unused MouseNotifyEvent enum values
Change-Id: I3d007287daf82a96e6aead6d75d81ef3e1a6f267
Reviewed-on: https://gerrit.libreoffice.org/64483
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/vcl/event.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/frame2.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/window.cxx | 10 |
3 files changed, 3 insertions, 11 deletions
diff --git a/include/vcl/event.hxx b/include/vcl/event.hxx index 6cd6f4a54c83..45d7b5df750c 100644 --- a/include/vcl/event.hxx +++ b/include/vcl/event.hxx @@ -276,9 +276,7 @@ enum class MouseNotifyEvent GETFOCUS = 6, LOSEFOCUS = 7, COMMAND = 8, - DESTROY = 9, INPUTENABLE = 10, - INPUTDISABLE = 11, EXECUTEDIALOG = 100, ENDEXECUTEDIALOG = 101 }; diff --git a/sfx2/source/view/frame2.cxx b/sfx2/source/view/frame2.cxx index 8e62ca2c4a38..f55359981ced 100644 --- a/sfx2/source/view/frame2.cxx +++ b/sfx2/source/view/frame2.cxx @@ -117,7 +117,7 @@ bool SfxFrameWindow_Impl::EventNotify( NotifyEvent& rNEvt ) if ( pView->GetViewShell()->KeyInput( *rNEvt.GetKeyEvent() ) ) return true; } - else if ( rNEvt.GetType() == MouseNotifyEvent::EXECUTEDIALOG /*|| rNEvt.GetType() == MouseNotifyEvent::INPUTDISABLE*/ ) + else if ( rNEvt.GetType() == MouseNotifyEvent::EXECUTEDIALOG ) { pView->SetModalMode( true ); return true; diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 99e3db2abc97..a12d597091a7 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -395,12 +395,6 @@ void Window::dispose() // hide window in order to trigger the Paint-Handling Hide(); - // announce the window is to be destroyed - { - NotifyEvent aNEvt( MouseNotifyEvent::DESTROY, this ); - CompatNotify( aNEvt ); - } - // EndExtTextInputMode if ( pSVData->maWinData.mpExtTextInputWin == this ) { @@ -2534,9 +2528,9 @@ void Window::EnableInput( bool bEnable, bool bChild ) ImplGenerateMouseMove(); // #104827# notify parent - if ( bNotify ) + if ( bNotify && bEnable ) { - NotifyEvent aNEvt( bEnable ? MouseNotifyEvent::INPUTENABLE : MouseNotifyEvent::INPUTDISABLE, this ); + NotifyEvent aNEvt( MouseNotifyEvent::INPUTENABLE, this ); CompatNotify( aNEvt ); } } |