From a5207e5b3230a57666cf27f4f4e54c5e5dd81605 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Fri, 27 Mar 2020 19:24:14 -0400 Subject: lok: introduce QueryControlState function The sidebar usually executes UNO commands to the core framework, however the controls already have formatted the text that is useful in Online client side. For example the units conversion. The QueryControlState method will retrieve the current formatted text of the sidebar control to be used in Client Side. Change-Id: I0b3e3a1462d4391ac911352f35808a5e5d9f9ffb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91237 Tested-by: Jenkins CollaboraOffice Reviewed-by: Henry Castro --- .../source/controller/sidebar/ChartAxisPanel.hxx | 4 ++++ .../controller/sidebar/ChartErrorBarPanel.hxx | 4 ++++ .../source/controller/sidebar/ChartSeriesPanel.hxx | 4 ++++ include/sfx2/bindings.hxx | 2 ++ include/sfx2/ctrlitem.hxx | 2 ++ include/sfx2/sidebar/ControllerItem.hxx | 4 ++++ include/svx/sidebar/AreaPropertyPanelBase.hxx | 4 ++++ sc/source/ui/sidebar/AlignmentPropertyPanel.hxx | 4 ++++ .../ui/sidebar/CellAppearancePropertyPanel.hxx | 4 ++++ sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx | 4 ++++ sd/source/ui/sidebar/SlideBackground.hxx | 5 ++++ sfx2/source/control/bindings.cxx | 27 ++++++++++++++++++++++ sfx2/source/control/ctrlitem.cxx | 7 ++++++ sfx2/source/control/statcach.cxx | 13 +++++++++++ sfx2/source/inc/statcach.hxx | 1 + sfx2/source/sidebar/ControllerItem.cxx | 7 ++++++ .../sidebar/graphic/GraphicPropertyPanel.hxx | 4 ++++ svx/source/sidebar/line/LinePropertyPanel.hxx | 4 ++++ svx/source/sidebar/media/MediaPlaybackPanel.hxx | 5 ++++ svx/source/sidebar/paragraph/ParaPropertyPanel.hxx | 4 ++++ .../sidebar/possize/PosSizePropertyPanel.cxx | 3 +++ .../sidebar/possize/PosSizePropertyPanel.hxx | 4 ++++ svx/source/sidebar/shadow/ShadowPropertyPanel.hxx | 4 ++++ sw/source/uibase/sidebar/PageFooterPanel.hxx | 4 ++++ sw/source/uibase/sidebar/PageFormatPanel.hxx | 4 ++++ sw/source/uibase/sidebar/PageHeaderPanel.hxx | 4 ++++ sw/source/uibase/sidebar/PageStylesPanel.hxx | 4 ++++ sw/source/uibase/sidebar/StylePresetsPanel.hxx | 4 ++++ sw/source/uibase/sidebar/TableEditPanel.hxx | 5 +++- sw/source/uibase/sidebar/ThemePanel.hxx | 4 ++++ sw/source/uibase/sidebar/WrapPropertyPanel.hxx | 4 ++++ 31 files changed, 156 insertions(+), 1 deletion(-) diff --git a/chart2/source/controller/sidebar/ChartAxisPanel.hxx b/chart2/source/controller/sidebar/ChartAxisPanel.hxx index 2b651d8d95f6..96caf589a5a5 100644 --- a/chart2/source/controller/sidebar/ChartAxisPanel.hxx +++ b/chart2/source/controller/sidebar/ChartAxisPanel.hxx @@ -57,6 +57,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + // constructor/destructor ChartAxisPanel( vcl::Window* pParent, diff --git a/chart2/source/controller/sidebar/ChartErrorBarPanel.hxx b/chart2/source/controller/sidebar/ChartErrorBarPanel.hxx index f4dec42c5521..ce1e2b3d8e5c 100644 --- a/chart2/source/controller/sidebar/ChartErrorBarPanel.hxx +++ b/chart2/source/controller/sidebar/ChartErrorBarPanel.hxx @@ -54,6 +54,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + // constructor/destructor ChartErrorBarPanel( vcl::Window* pParent, diff --git a/chart2/source/controller/sidebar/ChartSeriesPanel.hxx b/chart2/source/controller/sidebar/ChartSeriesPanel.hxx index ba5d55a6b210..6afbf5740539 100644 --- a/chart2/source/controller/sidebar/ChartSeriesPanel.hxx +++ b/chart2/source/controller/sidebar/ChartSeriesPanel.hxx @@ -64,6 +64,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + // constructor/destructor ChartSeriesPanel( vcl::Window* pParent, diff --git a/include/sfx2/bindings.hxx b/include/sfx2/bindings.hxx index 5d1e7b5e4089..a320862d5f03 100644 --- a/include/sfx2/bindings.hxx +++ b/include/sfx2/bindings.hxx @@ -140,6 +140,8 @@ public: */ SfxItemState QueryState( sal_uInt16 nSID, std::unique_ptr &rpState ); + void QueryControlState ( sal_uInt16 nSID, boost::property_tree::ptree& rState ); + const SfxPoolItem* ExecuteSynchron( sal_uInt16 nSlot, const SfxPoolItem **pArgs = nullptr); bool Execute( sal_uInt16 nSlot, diff --git a/include/sfx2/ctrlitem.hxx b/include/sfx2/ctrlitem.hxx index 78ac2d1a6fe2..8e3b6cc98586 100644 --- a/include/sfx2/ctrlitem.hxx +++ b/include/sfx2/ctrlitem.hxx @@ -69,6 +69,8 @@ public: virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); + virtual void GetControlState( sal_uInt16 nSID, boost::property_tree::ptree& ); + MapUnit GetCoreMetric() const; static SfxItemState GetItemState( const SfxPoolItem* pState ); diff --git a/include/sfx2/sidebar/ControllerItem.hxx b/include/sfx2/sidebar/ControllerItem.hxx index 23a94487706e..981106fa1e9a 100644 --- a/include/sfx2/sidebar/ControllerItem.hxx +++ b/include/sfx2/sidebar/ControllerItem.hxx @@ -46,6 +46,9 @@ public: const SfxItemState eState, const SfxPoolItem* pState, const bool bIsEnabled) = 0; + virtual void GetControlState( + const sal_uInt16 nSId, + boost::property_tree::ptree& rState) = 0; virtual ~ItemUpdateReceiverInterface(); }; @@ -77,6 +80,7 @@ public: protected: virtual void StateChanged (sal_uInt16 nSId, SfxItemState eState, const SfxPoolItem* pState) override; + virtual void GetControlState (sal_uInt16 nSId, boost::property_tree::ptree& rState) override; private: ItemUpdateReceiverInterface& mrItemUpdateReceiver; diff --git a/include/svx/sidebar/AreaPropertyPanelBase.hxx b/include/svx/sidebar/AreaPropertyPanelBase.hxx index b24281efea5f..5736617080f8 100644 --- a/include/svx/sidebar/AreaPropertyPanelBase.hxx +++ b/include/svx/sidebar/AreaPropertyPanelBase.hxx @@ -72,6 +72,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + const static sal_Int32 DEFAULT_CENTERX; const static sal_Int32 DEFAULT_CENTERY; const static sal_Int32 DEFAULT_ANGLE; diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx index 86c37c3cb57a..3a4b6d296532 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx @@ -58,6 +58,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + SfxBindings* GetBindings() { return mpBindings;} virtual boost::property_tree::ptree DumpAsPropertyTree() override; diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx index c4d403f26040..c36caa4ba5d7 100644 --- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx +++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx @@ -62,6 +62,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + SfxBindings* GetBindings() { return mpBindings;} // constructor/destructor diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx index b3a9453b5b58..2634e5cb9896 100644 --- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx +++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx @@ -54,6 +54,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + SfxBindings* GetBindings() { return mpBindings;} // constructor/destructor diff --git a/sd/source/ui/sidebar/SlideBackground.hxx b/sd/source/ui/sidebar/SlideBackground.hxx index 4c09bdaca757..81e335b30580 100644 --- a/sd/source/ui/sidebar/SlideBackground.hxx +++ b/sd/source/ui/sidebar/SlideBackground.hxx @@ -75,6 +75,11 @@ public: const SfxItemState eState, const SfxPoolItem* pState, const bool bIsEnabled) override; + + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + virtual void HandleContextChange( const vcl::EnumContext& rContext) override; virtual boost::property_tree::ptree DumpAsPropertyTree() override; diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index c5f564444b74..5d8dfe4f9860 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -1622,6 +1622,33 @@ SfxItemState SfxBindings::QueryState( sal_uInt16 nSlot, std::unique_ptrIsDowning() ) + return; + + if ( pDispatcher ) + pDispatcher->Flush(); + + if ( pImpl->pSubBindings ) + pImpl->pSubBindings->QueryControlState( nSlot, rState ); + + SfxStateCache* pCache = GetStateCache( nSlot ); + if ( pCache ) + { + if ( pImpl->bMsgDirty ) + { + UpdateSlotServer_Impl(); + pCache = GetStateCache( nSlot ); + } + + if (pCache && pCache->GetItemLink() ) + { + pCache->GetState(rState); + } + } +} + void SfxBindings::SetSubBindings_Impl( SfxBindings *pSub ) { if ( pImpl->pSubBindings ) diff --git a/sfx2/source/control/ctrlitem.cxx b/sfx2/source/control/ctrlitem.cxx index 832725089e26..b9a5d9477fb9 100644 --- a/sfx2/source/control/ctrlitem.cxx +++ b/sfx2/source/control/ctrlitem.cxx @@ -234,6 +234,13 @@ void SfxControllerItem::StateChanged { } +void SfxControllerItem::GetControlState +( + sal_uInt16, + boost::property_tree::ptree& +) +{ +} void SfxStatusForwarder::StateChanged ( diff --git a/sfx2/source/control/statcach.cxx b/sfx2/source/control/statcach.cxx index a190168ea1ce..ab4987ce44f9 100644 --- a/sfx2/source/control/statcach.cxx +++ b/sfx2/source/control/statcach.cxx @@ -326,6 +326,19 @@ void SfxStateCache::SetState SetState_Impl( eState, pState, bMaybeDirty ); } +void SfxStateCache::GetState +( + boost::property_tree::ptree& rState +) +{ + if ( !mxDispatch.is() && pController ) + { + for ( SfxControllerItem *pCtrl = pController; + pCtrl; + pCtrl = pCtrl->GetItemLink() ) + pCtrl->GetControlState( nId, rState ); + } +} void SfxStateCache::SetVisibleState( bool bShow ) { diff --git a/sfx2/source/inc/statcach.hxx b/sfx2/source/inc/statcach.hxx index dfe107940902..cc5946c5c3c2 100644 --- a/sfx2/source/inc/statcach.hxx +++ b/sfx2/source/inc/statcach.hxx @@ -95,6 +95,7 @@ public: void SetCachedState(bool bAlways); void Invalidate( bool bWithSlot ); void SetVisibleState( bool bShow ); + void GetState( boost::property_tree::ptree& ); SfxControllerItem* ChangeItemLink( SfxControllerItem* pNewBinding ); SfxControllerItem* GetItemLink() const; diff --git a/sfx2/source/sidebar/ControllerItem.cxx b/sfx2/source/sidebar/ControllerItem.cxx index b7925ac2d13c..9281169d6186 100644 --- a/sfx2/source/sidebar/ControllerItem.cxx +++ b/sfx2/source/sidebar/ControllerItem.cxx @@ -67,6 +67,13 @@ void ControllerItem::StateChanged ( mrItemUpdateReceiver.NotifyItemUpdate(nSID, eState, pState, IsEnabled(eState)); } +void ControllerItem::GetControlState ( + sal_uInt16 nSID, + boost::property_tree::ptree& rState) +{ + mrItemUpdateReceiver.GetControlState(nSID, rState); +} + bool ControllerItem::IsEnabled (SfxItemState eState) { if (eState == SfxItemState::DISABLED) diff --git a/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx b/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx index 2031f389655f..92d5cad08c87 100644 --- a/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx +++ b/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx @@ -55,6 +55,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + SfxBindings* GetBindings() { return mpBindings;} // constructor/destructor diff --git a/svx/source/sidebar/line/LinePropertyPanel.hxx b/svx/source/sidebar/line/LinePropertyPanel.hxx index b223f644fdbf..ca96a434f9f0 100644 --- a/svx/source/sidebar/line/LinePropertyPanel.hxx +++ b/svx/source/sidebar/line/LinePropertyPanel.hxx @@ -72,6 +72,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + SfxBindings* GetBindings() { return mpBindings;} // constructor/destructor diff --git a/svx/source/sidebar/media/MediaPlaybackPanel.hxx b/svx/source/sidebar/media/MediaPlaybackPanel.hxx index 69022e1c673c..0de9f6a864d0 100644 --- a/svx/source/sidebar/media/MediaPlaybackPanel.hxx +++ b/svx/source/sidebar/media/MediaPlaybackPanel.hxx @@ -71,6 +71,11 @@ private: const SfxItemState eState, const SfxPoolItem* pState, const bool bIsEnabled) override; + + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + DECL_LINK(PlayToolBoxSelectHdl, ToolBox*, void); DECL_LINK(VolumeSlideHdl, Slider*, void); DECL_LINK(SeekHdl, Slider*, void); diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx index 232f7c20bfa4..0da08c36740b 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx @@ -64,6 +64,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + static FieldUnit GetCurrentUnit( SfxItemState eState, const SfxPoolItem* pState ); ParaPropertyPanel ( diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index 85bb026006a8..e684d4da2bc2 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -844,6 +844,9 @@ void PosSizePropertyPanel::NotifyItemUpdate( mpCbxScale->Check( static_cast(sUserData.toInt32()) ); } +void PosSizePropertyPanel::GetControlState(const sal_uInt16 /*nSID*/, boost::property_tree::ptree& /*rState*/) +{ +} void PosSizePropertyPanel::executeSize() { diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx index 74ac3fd8b88d..40ee624e55a6 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx @@ -84,6 +84,10 @@ public: SfxBindings* pBindings, const css::uno::Reference& rxSidebar); + virtual void GetControlState( + const sal_uInt16 nSId, + boost::property_tree::ptree& rState) override; + private: //Position VclPtr mpFtPosX; diff --git a/svx/source/sidebar/shadow/ShadowPropertyPanel.hxx b/svx/source/sidebar/shadow/ShadowPropertyPanel.hxx index bd54b58831d3..626e102d9012 100644 --- a/svx/source/sidebar/shadow/ShadowPropertyPanel.hxx +++ b/svx/source/sidebar/shadow/ShadowPropertyPanel.hxx @@ -50,6 +50,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + SfxBindings* GetBindings() { return mpBindings;} void Initialize(); diff --git a/sw/source/uibase/sidebar/PageFooterPanel.hxx b/sw/source/uibase/sidebar/PageFooterPanel.hxx index bf96a0f7568c..ce31dff4f105 100644 --- a/sw/source/uibase/sidebar/PageFooterPanel.hxx +++ b/sw/source/uibase/sidebar/PageFooterPanel.hxx @@ -63,6 +63,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + SfxBindings* GetBindings() const { return mpBindings; } PageFooterPanel( vcl::Window* pParent, diff --git a/sw/source/uibase/sidebar/PageFormatPanel.hxx b/sw/source/uibase/sidebar/PageFormatPanel.hxx index 94b611d4278a..9e6a72d796d4 100644 --- a/sw/source/uibase/sidebar/PageFormatPanel.hxx +++ b/sw/source/uibase/sidebar/PageFormatPanel.hxx @@ -64,6 +64,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + PageFormatPanel( vcl::Window* pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rxFrame, diff --git a/sw/source/uibase/sidebar/PageHeaderPanel.hxx b/sw/source/uibase/sidebar/PageHeaderPanel.hxx index de2ceb958ed1..cf39f89ce2a4 100644 --- a/sw/source/uibase/sidebar/PageHeaderPanel.hxx +++ b/sw/source/uibase/sidebar/PageHeaderPanel.hxx @@ -63,6 +63,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + SfxBindings* GetBindings() const { return mpBindings; } PageHeaderPanel( vcl::Window* pParent, diff --git a/sw/source/uibase/sidebar/PageStylesPanel.hxx b/sw/source/uibase/sidebar/PageStylesPanel.hxx index 27890af084e8..b0640da156ee 100644 --- a/sw/source/uibase/sidebar/PageStylesPanel.hxx +++ b/sw/source/uibase/sidebar/PageStylesPanel.hxx @@ -67,6 +67,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + SfxBindings* GetBindings() const { return mpBindings; } PageStylesPanel( vcl::Window* pParent, diff --git a/sw/source/uibase/sidebar/StylePresetsPanel.hxx b/sw/source/uibase/sidebar/StylePresetsPanel.hxx index f5b18a7671e3..e71daf64d39a 100644 --- a/sw/source/uibase/sidebar/StylePresetsPanel.hxx +++ b/sw/source/uibase/sidebar/StylePresetsPanel.hxx @@ -54,6 +54,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + private: struct TemplateEntry { diff --git a/sw/source/uibase/sidebar/TableEditPanel.hxx b/sw/source/uibase/sidebar/TableEditPanel.hxx index 53380b44ebd5..87565a821365 100644 --- a/sw/source/uibase/sidebar/TableEditPanel.hxx +++ b/sw/source/uibase/sidebar/TableEditPanel.hxx @@ -33,6 +33,9 @@ public: virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState(const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override{}; + private: TableEditPanel(vcl::Window* pParent, const css::uno::Reference& rxFrame, SfxBindings* pBindings); @@ -71,4 +74,4 @@ private: #endif // INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_TABLEEDITPANEL_HXX -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ \ No newline at end of file +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/sidebar/ThemePanel.hxx b/sw/source/uibase/sidebar/ThemePanel.hxx index 6014938a2522..c3586e06d43f 100644 --- a/sw/source/uibase/sidebar/ThemePanel.hxx +++ b/sw/source/uibase/sidebar/ThemePanel.hxx @@ -53,6 +53,10 @@ public: const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + private: ThemePanel(vcl::Window* pParent, const css::uno::Reference& rxFrame); diff --git a/sw/source/uibase/sidebar/WrapPropertyPanel.hxx b/sw/source/uibase/sidebar/WrapPropertyPanel.hxx index 8ce00d68e0ac..ddf167e82ba1 100644 --- a/sw/source/uibase/sidebar/WrapPropertyPanel.hxx +++ b/sw/source/uibase/sidebar/WrapPropertyPanel.hxx @@ -47,6 +47,10 @@ namespace sw { namespace sidebar { const SfxPoolItem* pState, const bool bIsEnabled) override; + virtual void GetControlState( + const sal_uInt16 /*nSId*/, + boost::property_tree::ptree& /*rState*/) override {}; + virtual ~WrapPropertyPanel() override; virtual void dispose() override; -- cgit v1.2.3