[Libreoffice-commits] core.git: sd/source

Andras Timar (via logerrit) logerrit at kemper.freedesktop.org
Sun Apr 12 18:07:46 UTC 2020


 sd/source/ui/animations/CustomAnimationDialog.cxx |   15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

New commits:
commit 4c099dcdbd2b96fc586d920b6a22139bd1a4c705
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Sun Apr 12 17:03:09 2020 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Sun Apr 12 20:07:08 2020 +0200

    LOKit: Hide sound controls on Impress Custom Animation Dialog
    
    In Online, sounds cannot be heard, cannot be selected, so it's confusing
    to have sound settings on the Custom Animation Dialog
    
    Change-Id: Iff5155289700c412d9e50542de7e4fcf7830b67a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92087
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx
index 2c0df3768793..9c5f2a699608 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.cxx
@@ -35,6 +35,7 @@
 
 #include <memory>
 
+#include <comphelper/lok.hxx>
 #include <i18nutil/unicode.hxx>
 #include <vcl/svapp.hxx>
 #include <vcl/stdtext.hxx>
@@ -1109,8 +1110,18 @@ void CustomAnimationEffectTabPage::updateControlStates()
         mxFTTextDelay->set_sensitive( nPos != 0 );
     }
 
-    nPos = mxLBSound->get_active();
-    mxPBSoundPreview->set_sensitive( nPos >= 2 );
+    if (comphelper::LibreOfficeKit::isActive())
+    {
+        mxFTSound->hide();
+        mxLBSound->hide();
+        mxPBSoundPreview->hide();
+    }
+    else
+    {
+        nPos = mxLBSound->get_active();
+        mxPBSoundPreview->set_sensitive( nPos >= 2 );
+    }
+
 }
 
 IMPL_LINK(CustomAnimationEffectTabPage, implClickHdl, weld::Button&, rBtn, void)


More information about the Libreoffice-commits mailing list