Kaydet (Commit) bd3975db authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Remove duplicate code

The base class has now the same code since 9f61005d
("tdf#109309 Currency dropdown is misplaced under Wayland").

Change-Id: Id0380ea10711a46c125c1f2ba6be82f21830bd9f
üst 5a6ac13b
......@@ -48,9 +48,6 @@ public:
explicit NumberingToolBoxControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) override;
// XStatusListener
virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& rEvent ) override;
// XInitialization
virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
......@@ -201,20 +198,6 @@ VclPtr<vcl::Window> NumberingToolBoxControl::createPopupWindow( vcl::Window* pPa
return VclPtr<NumberingPopup>::Create( *this, pParent, mePageType );
}
void SAL_CALL NumberingToolBoxControl::statusChanged( const css::frame::FeatureStateEvent& rEvent )
{
ToolBox* pToolBox = nullptr;
sal_uInt16 nId = 0;
if ( getToolboxId( nId, &pToolBox ) )
{
pToolBox->EnableItem( nId, rEvent.IsEnabled );
bool bChecked;
if ( rEvent.State >>= bChecked )
pToolBox->CheckItem( nId, bChecked );
}
}
void SAL_CALL NumberingToolBoxControl::initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
{
svt::PopupWindowController::initialize( aArguments );
......
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