diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-08-11 10:28:52 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-08-14 22:40:32 +0200 |
commit | 57d63ffb2f071e4fbb7d358557c1cb6aa54464b7 (patch) | |
tree | 2a1237decfc381287062d13b4fe25670e74c15dc | |
parent | Accept iOS SDK 13.6 (diff) | |
download | core-57d63ffb2f071e4fbb7d358557c1cb6aa54464b7.tar.gz core-57d63ffb2f071e4fbb7d358557c1cb6aa54464b7.zip |
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>
-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 a3c40a649db2..fc2b7ccd69bc 100644 --- a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx +++ b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx @@ -28,6 +28,7 @@ #include <svx/svdmodel.hxx> #include <svx/drawitem.hxx> #include <svx/sdshcitm.hxx> +#include <comphelper/lok.hxx> using namespace css; using namespace css::uno; @@ -141,12 +142,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(); + } } } |