Kaydet (Commit) 0d4f5bc1 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused MouseNotifyEvent enum values

Change-Id: I3d007287daf82a96e6aead6d75d81ef3e1a6f267
Reviewed-on: https://gerrit.libreoffice.org/64483
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 21c86b6a
......@@ -276,9 +276,7 @@ enum class MouseNotifyEvent
GETFOCUS = 6,
LOSEFOCUS = 7,
COMMAND = 8,
DESTROY = 9,
INPUTENABLE = 10,
INPUTDISABLE = 11,
EXECUTEDIALOG = 100,
ENDEXECUTEDIALOG = 101
};
......
......@@ -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;
......
......@@ -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 );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment