diff options
author | George Wood <gwoodcode@gmail.com> | 2018-07-30 14:54:47 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-09-22 10:07:55 +0200 |
commit | ebaa3261fdb727ef99ab075ce5e40c32c37de427 (patch) | |
tree | 8bde77ae572cb41e94409f765f54f77949ed12da /cui | |
parent | 471e7939ed587b7b3d4707f0fea76563b5714e29 (diff) |
Hide macro selector button in kit mode.
Change-Id: If068d23a5aeb9be6d8e1736543c002bf2e68dacb
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/79278
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'cui')
-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 2992611d7ffe..dd346b071f1f 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/event.hxx> #include <sfx2/frame.hxx> @@ -288,10 +289,17 @@ void SvxHyperlinkTabPageBase::FillStandardDlgFields ( const SvxHyperlinkItem* pH mpEdText->SetText ( pHyperlinkItem->GetIntName() ); // Script-button - if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE ) - mpBtScript->Disable(); + if (!comphelper::LibreOfficeKit::isActive()) + { + if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE ) + mpBtScript->Disable(); + else + mpBtScript->Enable(); + } else - mpBtScript->Enable(); + { + mpBtScript->Hide(); + } } // Any action to do after apply-button is pressed |