diff options
Diffstat (limited to 'sw/source/uibase/inc/navipi.hxx')
-rw-r--r-- | sw/source/uibase/inc/navipi.hxx | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/sw/source/uibase/inc/navipi.hxx b/sw/source/uibase/inc/navipi.hxx index 2c14d9aea412..103dd6ac6255 100644 --- a/sw/source/uibase/inc/navipi.hxx +++ b/sw/source/uibase/inc/navipi.hxx @@ -28,6 +28,7 @@ #include <sfx2/childwin.hxx> #include <sfx2/ctrlitem.hxx> #include <sfx2/tbxctrl.hxx> +#include <sfx2/sidebar/SidebarToolBox.hxx> #include <svx/sidebar/PanelLayout.hxx> #include "conttree.hxx" #include <ndarr.hxx> @@ -39,25 +40,12 @@ class SwNavigationChild; class SfxBindings; class NumEditAction; class SwNavigationConfig; -class SwScrollNaviPopup; class SwView; class SfxObjectShellLock; class SfxChildWindowContext; enum class RegionMode; class SpinField; -class NaviStateListener final : public SfxControllerItem -{ -private: - VclPtr<SwNavigationPI> m_xNavigation; -public: - NaviStateListener(SfxBindings& rBindings, SwNavigationPI* pNavigation); - virtual ~NaviStateListener() override; - - virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, - const SfxPoolItem* pState) override; -}; - class SwNavigationPI : public PanelLayout, public SfxControllerItem, public SfxListener { @@ -66,8 +54,7 @@ class SwNavigationPI : public PanelLayout, friend class SwGlobalTree; friend class SwNavigationPIUIObject; - VclPtr<ToolBox> m_aContentToolBox; - std::unique_ptr<NaviStateListener> m_xNaviListener; + VclPtr<sfx2::sidebar::SidebarToolBox> m_aContentToolBox; VclPtr<ToolBox> m_aGlobalToolBox; VclPtr<NumEditAction> m_xEdit; VclPtr<VclContainer> m_aContentBox; @@ -85,7 +72,6 @@ class SwNavigationPI : public PanelLayout, SwWrtShell *m_pContentWrtShell; SwView *m_pActContView; SwView *m_pCreateView; - VclPtr<SwScrollNaviPopup> m_xPopupWindow; SwNavigationConfig *m_pConfig; SfxBindings &m_rBindings; @@ -114,8 +100,6 @@ class SwNavigationPI : public PanelLayout, DECL_LINK( PageEditModifyHdl, SpinField&, void ); void UsePage(); - void SetPopupWindow( SwScrollNaviPopup* ); - protected: // release ObjectShellLock early enough for app end @@ -127,7 +111,12 @@ protected: public: - SwNavigationPI(SfxBindings*, vcl::Window*); + static VclPtr<vcl::Window> Create(vcl::Window* pParent, + const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxFrame, + SfxBindings* pBindings); + SwNavigationPI(vcl::Window* pParent, + const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxFrame, + SfxBindings* _pBindings); virtual ~SwNavigationPI() override; virtual void dispose() override; @@ -154,8 +143,6 @@ public: SwView* GetCreateView() const; void CreateNavigationTool(); - void NaviStateChanged(); - FactoryFunction GetUITestFactory() const override; }; |