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

New commits:
commit b243549bb1c2d254b52c51b6250e9e0e48942fe9
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Tue Aug 11 10:28:52 2020 +0200
Commit:     Andras Timar <andras.ti...@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 <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101234
    Reviewed-by: Andras Timar <andras.ti...@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();
+        }
     }
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to