Kaydet (Commit) e130c53c authored tarafından George Wood's avatar George Wood Kaydeden (comit) Michael Meeks

Hide macro selector button in kit mode.

Change-Id: If068d23a5aeb9be6d8e1736543c002bf2e68dacb
Signed-off-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst 52a615a5
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <memory> #include <memory>
#include <sal/config.h> #include <sal/config.h>
#include <comphelper/lok.hxx>
#include <osl/file.hxx> #include <osl/file.hxx>
#include <sfx2/event.hxx> #include <sfx2/event.hxx>
#include <sfx2/frame.hxx> #include <sfx2/frame.hxx>
...@@ -271,10 +272,17 @@ void SvxHyperlinkTabPageBase::FillStandardDlgFields ( const SvxHyperlinkItem* pH ...@@ -271,10 +272,17 @@ void SvxHyperlinkTabPageBase::FillStandardDlgFields ( const SvxHyperlinkItem* pH
mpEdText->SetText ( pHyperlinkItem->GetIntName() ); mpEdText->SetText ( pHyperlinkItem->GetIntName() );
// Script-button // Script-button
if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE ) if (!comphelper::LibreOfficeKit::isActive())
mpBtScript->Disable(); {
if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE )
mpBtScript->Disable();
else
mpBtScript->Enable();
}
else else
mpBtScript->Enable(); {
mpBtScript->Hide();
}
} }
// Any action to do after apply-button is pressed // Any action to do after apply-button is pressed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment