summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
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;