summaryrefslogtreecommitdiff
path: root/cui/source/factory/dlgfact.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-12-03 13:17:29 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-12-03 15:23:45 +0100
commitd7736eb6aebbbd27d6aa5ec7b7631826e3c22f07 (patch)
treeecff724d67a5706c16a28f28aeb66f7e95e156ce /cui/source/factory/dlgfact.cxx
parent3e6ad944ac6a7ccd465ed7a862157c467730f86b (diff)
fix --disable-scripting build
Change-Id: I0b0113d5e3a1652280e0d84c1beba7c572ded191 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177736 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'cui/source/factory/dlgfact.cxx')
-rw-r--r--cui/source/factory/dlgfact.cxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index 2018878eaefa..bb1561f4803c 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -1003,13 +1003,31 @@ VclPtr<AbstractMacroManagerDialog>
AbstractDialogFactory_Impl::CreateMacroManagerDialog(weld::Window* pParent,
const Reference<frame::XFrame>& rxFrame)
{
+#if HAVE_FEATURE_SCRIPTING
return VclPtr<AbstractMacroManagerDialog_Impl>::Create(
std::make_shared<MacroManagerDialog>(pParent, rxFrame));
+#else
+ (void)pParent;
+ (void)rxFrame;
+ return nullptr;
+#endif
}
-OUString AbstractMacroManagerDialog_Impl::GetScriptURL() const { return m_xDlg->GetScriptURL(); }
+OUString AbstractMacroManagerDialog_Impl::GetScriptURL() const
+{
+#if HAVE_FEATURE_SCRIPTING
+ return m_xDlg->GetScriptURL();
+#else
+ return OUString();
+#endif
+}
-void AbstractMacroManagerDialog_Impl::LoadLastUsedMacro() const { m_xDlg->LoadLastUsedMacro(); }
+void AbstractMacroManagerDialog_Impl::LoadLastUsedMacro() const
+{
+#if HAVE_FEATURE_SCRIPTING
+ m_xDlg->LoadLastUsedMacro();
+#endif
+}
VclPtr<VclAbstractDialog> AbstractDialogFactory_Impl::CreateSvxScriptOrgDialog(weld::Window* pParent,
const OUString& rLanguage)