summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/dialogs/hltpbase.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index 463cd12d6fec..dced754a2971 100644
--- a/cui/source/dialogs/hltpbase.cxx
+++ b/cui/source/dialogs/hltpbase.cxx
@@ -20,6 +20,7 @@
#include <memory>
#include <sal/config.h>
+#include <comphelper/lok.hxx>
#include <osl/file.hxx>
#include <sfx2/app.hxx>
#include <sfx2/event.hxx>
@@ -272,10 +273,17 @@ void SvxHyperlinkTabPageBase::FillStandardDlgFields ( const SvxHyperlinkItem* pH
mxEdText->set_text( pHyperlinkItem->GetIntName() );
// Script-button
- if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE )
- mxBtScript->set_sensitive(false);
+ if (!comphelper::LibreOfficeKit::isActive())
+ {
+ if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE )
+ mxBtScript->set_sensitive(false);
+ else
+ mxBtScript->set_sensitive(true);
+ }
else
- mxBtScript->set_sensitive(true);
+ {
+ mxBtScript->hide();
+ }
}
// Any action to do after apply-button is pressed