summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-10-01 22:15:53 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-10-05 15:35:40 +0300
commitda80f6e8499c9b0cf7711a30eb895f71719639cb (patch)
tree2dd43068aeeb213d04ee91203ae2f644989111d4 /svtools
parenta7331e2485a92492ad88893e029c3d895abb7a8a (diff)
PopupWindowController: Small cleanup
Change-Id: Iedbc8ddaf97f515fecc012322f0c1621317de076
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/uno/popupwindowcontroller.cxx28
1 files changed, 0 insertions, 28 deletions
diff --git a/svtools/source/uno/popupwindowcontroller.cxx b/svtools/source/uno/popupwindowcontroller.cxx
index 62ccb5609d9f..d299416707ef 100644
--- a/svtools/source/uno/popupwindowcontroller.cxx
+++ b/svtools/source/uno/popupwindowcontroller.cxx
@@ -24,7 +24,6 @@
#include <vcl/svapp.hxx>
#include <svtools/popupwindowcontroller.hxx>
-#include <svtools/toolbarmenu.hxx>
using namespace ::com::sun::star;
using namespace css::uno;
@@ -92,10 +91,6 @@ IMPL_LINK( PopupWindowControllerImpl, WindowEventListener, VclWindowEvent&, rWin
if( mpToolBox )
mpToolBox->CallEventListeners( VCLEVENT_DROPDOWN_OPEN, static_cast<void*>(mpPopupWindow) );
mpPopupWindow->CallEventListeners( VCLEVENT_WINDOW_GETFOCUS );
-
- svtools::ToolbarMenu* pToolbarMenu = dynamic_cast< svtools::ToolbarMenu* >( mpPopupWindow.get() );
- if( pToolbarMenu )
- pToolbarMenu->highlightFirstEntry();
break;
}
break;
@@ -135,24 +130,12 @@ sal_Bool SAL_CALL PopupWindowController::supportsService( const OUString& Servic
return cppu::supportsService(this, ServiceName);
}
-// XInitialization
-void SAL_CALL PopupWindowController::initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw (css::uno::Exception, css::uno::RuntimeException, std::exception)
-{
- svt::ToolboxController::initialize( aArguments );
- if( !m_aCommandURL.isEmpty() )
- addStatusListener( m_aCommandURL );
-}
-
// XComponent
void SAL_CALL PopupWindowController::dispose() throw (RuntimeException, std::exception)
{
- if( !m_aCommandURL.isEmpty() )
- removeStatusListener( m_aCommandURL );
-
svt::ToolboxController::dispose();
}
-
// XStatusListener
void SAL_CALL PopupWindowController::statusChanged( const frame::FeatureStateEvent& rEvent ) throw ( RuntimeException, std::exception )
{
@@ -161,11 +144,6 @@ void SAL_CALL PopupWindowController::statusChanged( const frame::FeatureStateEve
}
// XToolbarController
-void SAL_CALL PopupWindowController::execute( sal_Int16 KeyModifier ) throw (RuntimeException, std::exception)
-{
- svt::ToolboxController::execute( KeyModifier );
-}
-
Reference< awt::XWindow > SAL_CALL PopupWindowController::createPopupWindow() throw (RuntimeException, std::exception)
{
VclPtr< ToolBox > pToolBox = dynamic_cast< ToolBox* >( VCLUnoHelper::GetWindow( getParent() ).get() );
@@ -186,12 +164,6 @@ Reference< awt::XWindow > SAL_CALL PopupWindowController::createPopupWindow() th
return Reference< awt::XWindow >();
}
-Reference< awt::XWindow > SAL_CALL PopupWindowController::createItemWindow( const Reference< awt::XWindow >& /*Parent*/ )
- throw (RuntimeException, std::exception)
-{
- return Reference< awt::XWindow >();
-}
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */