summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-08-18 09:59:53 -0400
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-25 10:57:51 +0200
commita59b4a2dcec4ad2131350a9999185ebcd07c5fc8 (patch)
treefb1f3c7d5accbf48d3404f978bf36e1e2bf074b4 /sd
parentd2025bdc33cc8d9e2f6c9f90da4574275ed6b0e4 (diff)
sidebar: hide preview and play controls in lokit
Change-Id: I7fc9470082612af4c4d7e56ff704936da5c63ce4 Reviewed-on: https://gerrit.libreoffice.org/73501 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx14
-rw-r--r--sd/source/ui/animations/SlideTransitionPane.cxx14
2 files changed, 24 insertions, 4 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index ee1807187fbd..082d150d5a99 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -51,6 +51,7 @@
#include <vcl/button.hxx>
+#include <comphelper/lok.hxx>
#include <comphelper/sequence.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/sidebar/Theme.hxx>
@@ -472,8 +473,17 @@ void CustomAnimationPane::updateControls()
mpFTDuration->Enable( mxView.is() );
mpCBXDuration->Enable( mxView.is() );
mpCustomAnimationList->Enable( mxView.is() );
- mpPBPlay->Enable( mxView.is() );
- mpCBAutoPreview->Enable( mxView.is() );
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ mpPBPlay->Hide();
+ mpCBAutoPreview->Check(false);
+ mpCBAutoPreview->Hide();
+ }
+ else
+ {
+ mpPBPlay->Enable( mxView.is() );
+ mpCBAutoPreview->Enable( mxView.is() );
+ }
if( !mxView.is() )
{
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx
index e7b3442b6b1d..998b0c58ef6b 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -33,6 +33,7 @@
#include <strings.hrc>
#include <EventMultiplexer.hxx>
+#include <comphelper/lok.hxx>
#include <sal/log.hxx>
#include <tools/debug.hxx>
#include <svx/gallery.hxx>
@@ -684,8 +685,17 @@ void SlideTransitionPane::updateControls()
mpMF_ADVANCE_AUTO_AFTER->SetValue( aEffect.mfTime * 100.0);
}
- SdOptions* pOptions = SD_MOD()->GetSdOptions(DocumentType::Impress);
- mpCB_AUTO_PREVIEW->Check( pOptions->IsPreviewTransitions() );
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ mpPB_PLAY->Hide();
+ mpCB_AUTO_PREVIEW->Check(false);
+ mpCB_AUTO_PREVIEW->Hide();
+ }
+ else
+ {
+ SdOptions* pOptions = SD_MOD()->GetSdOptions(DocumentType::Impress);
+ mpCB_AUTO_PREVIEW->Check( pOptions->IsPreviewTransitions() );
+ }
mbUpdatingControls = false;