diff options
author | George Wood <gwoodcode@gmail.com> | 2018-07-30 14:54:47 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-08-30 22:52:55 +0200 |
commit | 934e34ef756a3ece569d2f47a0979b4e6ed67a27 (patch) | |
tree | 77997e4ecbdc03d1527d2437a4a280be772f9010 | |
parent | d9fab1c4bb4a2c629a64dc301fcecdc16f589bc2 (diff) |
Hide macro selector button in kit mode.
Change-Id: If068d23a5aeb9be6d8e1736543c002bf2e68dacb
Reviewed-on: https://gerrit.libreoffice.org/78321
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
-rw-r--r-- | cui/source/dialogs/hltpbase.cxx | 14 |
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 |