summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2020-04-12 17:03:09 +0200
committerAndras Timar <andras.timar@collabora.com>2020-04-12 21:07:34 +0200
commite69fbd9352ffb440be0cd0f08b815e71d23efbce (patch)
tree51db5c21aff5c6edbf2137f3cb9abf28cee3705d /sd/source
parent985aa0bb1881ecda17c5e00e1d24e131a69737fa (diff)
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/+/92085 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/animations/CustomAnimationDialog.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx
index 09552e8cbf27..8141f9d5f6ce 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.cxx
@@ -36,6 +36,7 @@
#include <memory>
+#include <comphelper/lok.hxx>
#include <i18nutil/unicode.hxx>
#include <unotools/pathoptions.hxx>
#include <vcl/tabctrl.hxx>
@@ -1981,8 +1982,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)