From cc21480a25f1a289c7dd1bc536699fcae1457fc8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 6 Aug 2021 16:04:39 +0100 Subject: make --disable-scripting compile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie2be232e062389b74408dd9f001b1cf4db7db7d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120123 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sc/source/ui/docshell/docsh.cxx | 3 ++- sc/source/ui/unoobj/servuno.cxx | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 7a5732e0a154..5801636d3cc2 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -435,7 +435,7 @@ public: void hide_ask() const { m_xWarningOnBox->set_visible(false); }; }; - +#if HAVE_FEATURE_SCRIPTING class VBAScriptListener : public ::cppu::WeakImplHelper< css::script::vba::XVBAScriptListener > { private: @@ -460,6 +460,7 @@ public: { } }; +#endif } diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index ac3e93771cb1..a66050487a34 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -83,6 +83,7 @@ static bool isInVBAMode( ScDocShell& rDocSh ) namespace { +#if HAVE_FEATURE_SCRIPTING class ScVbaObjectForCodeNameProvider : public ::cppu::WeakImplHelper< container::XNameAccess > { uno::Any maWorkbook; @@ -242,6 +243,8 @@ public: } }; +#endif + using Type = ScServiceProvider::Type; struct ProvNamesId_Type -- cgit