svx/source/sidebar/shadow/ShadowPropertyPanel.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
New commits: commit 57d63ffb2f071e4fbb7d358557c1cb6aa54464b7 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Tue Aug 11 10:28:52 2020 +0200 Commit: Jan Holesovsky <ke...@collabora.com> CommitDate: Fri Aug 14 22:40:32 2020 +0200 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 <jenkinscollaboraoff...@gmail.com> Reviewed-by: Jan Holesovsky <ke...@collabora.com> 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(); + } } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits