[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - svx/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 23 17:16:49 UTC 2020


 svx/source/sidebar/shadow/ShadowPropertyPanel.cxx |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

New commits:
commit b243549bb1c2d254b52c51b6250e9e0e48942fe9
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Aug 11 10:28:52 2020 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Sun Aug 23 19:16:17 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 <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101234
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

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();
+        }
     }
 }
 


More information about the Libreoffice-commits mailing list