summaryrefslogtreecommitdiff
path: root/svx
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 /svx
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 'svx')
-rw-r--r--svx/source/sidebar/graphic/GraphicPropertyPanel.hxx4
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.hxx4
-rw-r--r--svx/source/sidebar/media/MediaPlaybackPanel.hxx5
-rw-r--r--svx/source/sidebar/paragraph/ParaPropertyPanel.hxx4
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.cxx3
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.hxx4
-rw-r--r--svx/source/sidebar/shadow/ShadowPropertyPanel.hxx4
7 files changed, 28 insertions, 0 deletions
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<bool>(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<css::ui::XSidebar>& rxSidebar);
+ virtual void GetControlState(
+ const sal_uInt16 nSId,
+ boost::property_tree::ptree& rState) override;
+
private:
//Position
VclPtr<FixedText> 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();