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

fdo#83619 Retain dropdown part after customization

Change-Id: I84c33e5b646ba43b9cad1d9ed106e7ead911e5c0
üst ea846caa
...@@ -339,6 +339,22 @@ SlideLayoutController::SlideLayoutController( const Reference< uno::XComponentCo ...@@ -339,6 +339,22 @@ SlideLayoutController::SlideLayoutController( const Reference< uno::XComponentCo
{ {
} }
void SAL_CALL SlideLayoutController::initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
throw ( css::uno::Exception, css::uno::RuntimeException, std::exception )
{
svt::PopupWindowController::initialize( aArguments );
ToolBox* pToolBox = 0;
sal_uInt16 nId = 0;
if ( getToolboxId( nId, &pToolBox ) )
{
if ( mbInsertPage )
pToolBox->SetItemBits( nId, pToolBox->GetItemBits( nId ) | TIB_DROPDOWN );
else
pToolBox->SetItemBits( nId, pToolBox->GetItemBits( nId ) | TIB_DROPDOWNONLY );
}
}
::Window* SlideLayoutController::createPopupWindow( ::Window* pParent ) ::Window* SlideLayoutController::createPopupWindow( ::Window* pParent )
{ {
return new sd::LayoutToolbarMenu( *this, m_xFrame, pParent, mbInsertPage ); return new sd::LayoutToolbarMenu( *this, m_xFrame, pParent, mbInsertPage );
......
...@@ -34,6 +34,10 @@ public: ...@@ -34,6 +34,10 @@ public:
virtual ::Window* createPopupWindow( ::Window* pParent ) SAL_OVERRIDE; virtual ::Window* createPopupWindow( ::Window* pParent ) SAL_OVERRIDE;
// XInitialization
virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
throw ( css::uno::Exception, css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// XServiceInfo // XServiceInfo
virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
......
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