summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2020-03-27 19:24:14 -0400
committerHenry Castro <hcastro@collabora.com>2020-03-31 15:26:42 +0200
commita5207e5b3230a57666cf27f4f4e54c5e5dd81605 (patch)
tree146a954819670f42ad977489601b0630af27a5a2 /sw
parent9e5eab8f736becc49f43b08a93d8c8690fc9b040 (diff)
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/sidebar/PageFooterPanel.hxx4
-rw-r--r--sw/source/uibase/sidebar/PageFormatPanel.hxx4
-rw-r--r--sw/source/uibase/sidebar/PageHeaderPanel.hxx4
-rw-r--r--sw/source/uibase/sidebar/PageStylesPanel.hxx4
-rw-r--r--sw/source/uibase/sidebar/StylePresetsPanel.hxx4
-rw-r--r--sw/source/uibase/sidebar/TableEditPanel.hxx5
-rw-r--r--sw/source/uibase/sidebar/ThemePanel.hxx4
-rw-r--r--sw/source/uibase/sidebar/WrapPropertyPanel.hxx4
8 files changed, 32 insertions, 1 deletions
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<css::frame::XFrame>& 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<css::frame::XFrame>& 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;