diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-08-11 10:28:52 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-08-23 19:16:17 +0200 |
commit | b243549bb1c2d254b52c51b6250e9e0e48942fe9 (patch) | |
tree | b0aa0da67a6d5d43bc653d2a75fa0d49d979d236 /svx | |
parent | 5563f6ba24a7d96062ab8f1a6f3234a39e999bc2 (diff) |
Instant update shadow fields in sidebar
This allows mobile LOK client to receive updated
state.
Change-Id: I07fb397c1566546e6e2eb8071eaf6d848f6effc0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100466
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101234
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/shadow/ShadowPropertyPanel.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx index 8c93ee2708d0..61c30fcb9eb5 100644 --- a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx +++ b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx @@ -30,6 +30,7 @@ #include <svx/svdmodel.hxx> #include <svx/drawitem.hxx> #include <svx/sdshcitm.hxx> +#include <comphelper/lok.hxx> using namespace css; using namespace css::uno; @@ -143,12 +144,27 @@ IMPL_LINK_NOARG(ShadowPropertyPanel, ClickShadowHdl, Button*, void) SdrOnOffItem aItem(makeSdrShadowItem(false)); GetBindings()->GetDispatcher()->ExecuteList(SID_ATTR_FILL_SHADOW, SfxCallMode::RECORD, { &aItem }); + + if (comphelper::LibreOfficeKit::isActive()) + { + mpShowShadow->SetState( TRISTATE_FALSE ); + UpdateControls(); + } } else { SdrOnOffItem aItem(makeSdrShadowItem(true)); GetBindings()->GetDispatcher()->ExecuteList(SID_ATTR_FILL_SHADOW, SfxCallMode::RECORD, { &aItem }); + + if (mpShadowDistance->GetValue( FieldUnit::POINT ) == 0) + mpShadowDistance->SetValue( 8, FieldUnit::POINT ); + + if (comphelper::LibreOfficeKit::isActive()) + { + mpShowShadow->SetState( TRISTATE_TRUE ); + UpdateControls(); + } } } |