diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-14 21:19:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-15 13:55:16 +0100 |
commit | 0a76eb059a77c799e6ce8400c558fc4dd1d866aa (patch) | |
tree | 004db589d3b18a43163298d56496a6d8bce1ab3e /sfx2/source | |
parent | 053223085d786b4d1e595a63e01c47e97728e720 (diff) |
StartCascading is unused
Change-Id: Ic58ab3715aadf53bf4f3fd1e32a241d9d9275322
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86839
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/toolbox/tbxitem.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index 47c00af49c09..0e9aba25830f 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -715,7 +715,6 @@ SfxPopupWindow::SfxPopupWindow( WinBits nBits ) : FloatingWindow( pParentWindow, nBits ) , m_bFloating( false ) - , m_bCascading( false ) , m_nId( nId ) , m_xFrame( rFrame ) { @@ -731,7 +730,6 @@ SfxPopupWindow::SfxPopupWindow( const Reference< XFrame >& rFrame ) : FloatingWindow( pParentWindow, rID, rUIXMLDescription, rFrame) , m_bFloating( false ) - , m_bCascading( false ) , m_nId( nId ) , m_xFrame( rFrame ) { @@ -804,37 +802,6 @@ void SfxPopupWindow::PopupModeEnd() } -void SfxPopupWindow::MouseMove( const ::MouseEvent& rMEvt ) -{ - if ( !m_bCascading ) - FloatingWindow::MouseMove( rMEvt ); - else - { - // Forward MouseMove-Event to Children - ::Point aPos = rMEvt.GetPosPixel(); - ::Point aScrPos = OutputToScreenPixel( aPos ); - sal_uInt16 i = 0; - vcl::Window* pWindow = GetChild( i ); - while ( pWindow ) - { - ::MouseEvent aChildMEvt( pWindow->ScreenToOutputPixel( aScrPos ), - rMEvt.GetClicks(), rMEvt.GetMode(), - rMEvt.GetButtons(), rMEvt.GetModifier() ); - pWindow->MouseMove( aChildMEvt ); - pWindow->Update(); - i++; - pWindow = GetChild( i ); - } - } -} - - -void SfxPopupWindow::StartCascading() -{ - m_bCascading = true; -} - - void SfxPopupWindow::statusChanged( const css::frame::FeatureStateEvent& rEvent ) { if ( !rEvent.IsEnabled ) |