summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-08-18 09:59:53 -0400
committerJan Holesovsky <kendy@collabora.com>2019-04-30 18:06:21 +0200
commit446ebf9ce4080861a423899aafab48f92966005c (patch)
tree37c8bdbe047cafa547206f80b69a2e9d888e8742 /sd
parent2587e5423657d9e25accfbb7391fdc1acfa033fe (diff)
sidebar: hide preview and play controls in lokit
Change-Id: I7fc9470082612af4c4d7e56ff704936da5c63ce4
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 59a483e9e1f7..6375774cb999 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -50,6 +50,7 @@
#include <vcl/combobox.hxx>
#include <vcl/scrbar.hxx>
+#include <comphelper/lok.hxx>
#include <comphelper/sequence.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/sidebar/Theme.hxx>
@@ -497,8 +498,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 df96aa23f34a..f08c171a3ae5 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -33,6 +33,7 @@
#include <DrawController.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
+#include <comphelper/lok.hxx>
#include <svtools/controldims.hxx>
#include <svx/gallery.hxx>
#include <unotools/pathoptions.hxx>
@@ -693,8 +694,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;