Kaydet (Commit) f5121149 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use ImplInheritanceHelper

Change-Id: I259bf6012684e393765cfd73e813bcf2875abd5f
üst 860f543c
...@@ -178,10 +178,9 @@ public: ...@@ -178,10 +178,9 @@ public:
struct SfxToolBoxControl_Impl; struct SfxToolBoxControl_Impl;
class SFX2_DLLPUBLIC SfxToolBoxControl: class SFX2_DLLPUBLIC SfxToolBoxControl:
public ::com::sun::star::awt::XDockableWindowListener, public cppu::ImplInheritanceHelper2<
public ::com::sun::star::frame::XSubToolbarController, svt::ToolboxController, css::awt::XDockableWindowListener,
public svt::ToolboxController css::frame::XSubToolbarController>
{ {
friend class SfxToolbox; friend class SfxToolbox;
friend class SfxPopupWindow; friend class SfxPopupWindow;
...@@ -207,11 +206,12 @@ protected: ...@@ -207,11 +206,12 @@ protected:
// Must be called by subclass to set a new popup window instance // Must be called by subclass to set a new popup window instance
void SetPopupWindow( SfxPopupWindow* pWindow ); void SetPopupWindow( SfxPopupWindow* pWindow );
// XInterface // helper methods
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; void createAndPositionSubToolBar( const OUString& rSubToolBarResName );
virtual void SAL_CALL acquire() throw() SAL_OVERRIDE; ::Size getPersistentFloatingSize( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame, const OUString& rSubToolBarResName );
virtual void SAL_CALL release() throw() SAL_OVERRIDE; bool hasBigImages() const;
public:
// XEventListener // XEventListener
using ::cppu::OPropertySetHelper::disposing; using ::cppu::OPropertySetHelper::disposing;
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
...@@ -251,11 +251,6 @@ protected: ...@@ -251,11 +251,6 @@ protected:
virtual void SAL_CALL closed( const ::com::sun::star::lang::EventObject& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL closed( const ::com::sun::star::lang::EventObject& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL endPopupMode( const ::com::sun::star::awt::EndPopupModeEvent& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL endPopupMode( const ::com::sun::star::awt::EndPopupModeEvent& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// helper methods
void createAndPositionSubToolBar( const OUString& rSubToolBarResName );
::Size getPersistentFloatingSize( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame, const OUString& rSubToolBarResName );
bool hasBigImages() const;
public: public:
SFX_DECL_TOOLBOX_CONTROL(); SFX_DECL_TOOLBOX_CONTROL();
......
...@@ -224,7 +224,6 @@ SfxToolBoxControl::SfxToolBoxControl( ...@@ -224,7 +224,6 @@ SfxToolBoxControl::SfxToolBoxControl(
sal_uInt16 nID, sal_uInt16 nID,
ToolBox& rBox, ToolBox& rBox,
bool bShowStringItems ) bool bShowStringItems )
: svt::ToolboxController()
{ {
pImpl = new SfxToolBoxControl_Impl; pImpl = new SfxToolBoxControl_Impl;
...@@ -459,26 +458,6 @@ void SfxToolBoxControl::Dispatch( const OUString& aCommand, ::com::sun::star::un ...@@ -459,26 +458,6 @@ void SfxToolBoxControl::Dispatch( const OUString& aCommand, ::com::sun::star::un
} }
} }
// XInterface
Any SAL_CALL SfxToolBoxControl::queryInterface( const Type & rType )
throw(::com::sun::star::uno::RuntimeException, std::exception)
{
::com::sun::star::uno::Any aRet = ::cppu::queryInterface( rType,
(static_cast< ::com::sun::star::awt::XDockableWindowListener* >(this)),
(static_cast< ::com::sun::star::frame::XSubToolbarController* >(this)));
return (aRet.hasValue() ? aRet : svt::ToolboxController::queryInterface( rType ));
}
void SAL_CALL SfxToolBoxControl::acquire() throw()
{
OWeakObject::acquire();
}
void SAL_CALL SfxToolBoxControl::release() throw()
{
OWeakObject::release();
}
void SAL_CALL SfxToolBoxControl::disposing( const ::com::sun::star::lang::EventObject& aEvent ) void SAL_CALL SfxToolBoxControl::disposing( const ::com::sun::star::lang::EventObject& aEvent )
throw( ::com::sun::star::uno::RuntimeException, std::exception ) throw( ::com::sun::star::uno::RuntimeException, std::exception )
{ {
......
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