From 32c8e953662fa2cdbcf2a43f7c217f75b5a808c8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 15 Jan 2020 19:36:29 +0000 Subject: SfxPopupWindow is now unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idd4f2854eb0746a0648df30a5815bfaf8ef6a9ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86879 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- include/sfx2/tbxctrl.hxx | 57 +----------------------------------------------- 1 file changed, 1 insertion(+), 56 deletions(-) (limited to 'include/sfx2') diff --git a/include/sfx2/tbxctrl.hxx b/include/sfx2/tbxctrl.hxx index 5503aaae997d..f12878564e87 100644 --- a/include/sfx2/tbxctrl.hxx +++ b/include/sfx2/tbxctrl.hxx @@ -24,9 +24,9 @@ #include #include #include -#include #include #include +#include namespace com::sun::star::frame { class XDispatchProvider; } namespace com::sun::star::frame { class XFrame; } @@ -53,54 +53,6 @@ struct SfxTbxCtrlFactory }; -/* Floating windows that can be torn from tool boxes should be derived from - this class. Since it is also derived from SfxControllerItem, its instances - will also receive the StateChanged calls. -*/ -class SfxFrameStatusListener; -class SFX2_DLLPUBLIC SfxPopupWindow: public FloatingWindow -{ -friend class SfxFrameStatusListener; - bool m_bFloating; - Link m_aDeleteLink; - sal_uInt16 const m_nId; - css::uno::Reference< css::frame::XFrame > const m_xFrame; - rtl::Reference m_xStatusListener; - -private: - SfxPopupWindow(SfxPopupWindow const &) = delete; - SfxPopupWindow& operator =(SfxPopupWindow const &) = delete; - void Delete(); - -protected: - virtual void PopupModeEnd() override; - virtual bool Close() override; - - sal_uInt16 GetId() const { return m_nId; } - const css::uno::Reference< css::frame::XFrame >& GetFrame() const { return m_xFrame; } - - void AddStatusListener( const OUString& rCommandURL ); - - virtual void statusChanged( const css::frame::FeatureStateEvent& rEvent ); - -public: - SfxPopupWindow(sal_uInt16 nId, vcl::Window *pParent, - const css::uno::Reference< css::frame::XFrame >& rFrame, - WinBits nBits ); - SfxPopupWindow(sal_uInt16 nId, vcl::Window *pParent, - const OString& rID, const OUString& rUIXMLDescription, - const css::uno::Reference &rFrame = - css::uno::Reference()); - virtual ~SfxPopupWindow() override; - virtual void dispose() override; - - SAL_DLLPRIVATE void SetDeleteLink_Impl( const Link& rLink ) - { - m_aDeleteLink = rLink; - } -}; - - #define SFX_DECL_TOOLBOX_CONTROL() \ static SfxToolBoxControl* CreateImpl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx ); \ static void RegisterControl(sal_uInt16 nSlotId = 0, SfxModule *pMod=nullptr) @@ -117,15 +69,11 @@ public: struct SfxToolBoxControl_Impl; class SFX2_DLLPUBLIC SfxToolBoxControl: public svt::ToolboxController { -friend class SfxPopupWindow; friend struct SfxTbxCtrlFactory; std::unique_ptr< SfxToolBoxControl_Impl> pImpl; protected: - DECL_LINK( PopupModeEndHdl, FloatingWindow*, void ); - DECL_LINK( ClosePopupWindow, SfxPopupWindow *, void ); - // old SfxToolBoxControl methods virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); virtual void Select( sal_uInt16 nSelectModifier ); @@ -135,9 +83,6 @@ protected: virtual void CreatePopupWindow(); virtual VclPtr CreateItemWindow( vcl::Window *pParent ); - // Must be called by subclass to set a new popup window instance - void SetPopupWindow( SfxPopupWindow* pWindow ); - public: // XComponent virtual void SAL_CALL dispose() override; -- cgit