summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/docshell/docsh.cxx3
-rw-r--r--sc/source/ui/unoobj/servuno.cxx3
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