diff options
author | Andras Timar <andras.timar@collabora.com> | 2020-04-12 17:03:09 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-04-12 20:07:08 +0200 |
commit | 4c099dcdbd2b96fc586d920b6a22139bd1a4c705 (patch) | |
tree | eb589f93ceb18bed48ac453a08b9b79109d30f81 /sd/source/ui/animations | |
parent | 4632e049d5c96a53789b6eee4c873501fe3d66e9 (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/+/92087
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sd/source/ui/animations')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationDialog.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
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) |