diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-06 16:04:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-06 21:15:31 +0200 |
commit | cc21480a25f1a289c7dd1bc536699fcae1457fc8 (patch) | |
tree | 1104825fee8a7c17495881a569ad5f8966f96a94 /sc | |
parent | 030cdbc7f8782eb196f09661bc2f116d790de9be (diff) |
make --disable-scripting compile
Change-Id: Ie2be232e062389b74408dd9f001b1cf4db7db7d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120123
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/unoobj/servuno.cxx | 3 |
2 files changed, 5 insertions, 1 deletions
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 |