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 --- chart2/source/controller/sidebar/ChartAxisPanel.hxx | 4 ++++ chart2/source/controller/sidebar/ChartErrorBarPanel.hxx | 4 ++++ chart2/source/controller/sidebar/ChartSeriesPanel.hxx | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'chart2') 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, -- cgit v1.2.3