summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2018-09-19 13:21:56 +0300
committerTor Lillqvist <tml@iki.fi>2018-09-19 13:21:56 +0300
commitb6fa941a62c1f301982732f4d7ec1b42f9330af0 (patch)
tree7856bab9565793ac57d07ad2267005b147442854 /filter
parent83dd72cb85dc8bcd797e62d7a28b8ec2cfdb700a (diff)
Avoid unused functions in the !HAVE_FEATURE_SCRIPTING case
Change-Id: I4b3cb1d696adb7f9a6f35b8529e49d55bd5d957b
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msvbahelper.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx
index 6e611824e163..33ec4e3ce63a 100644
--- a/filter/source/msfilter/msvbahelper.cxx
+++ b/filter/source/msfilter/msvbahelper.cxx
@@ -78,6 +78,8 @@ static OUString trimMacroName( const OUString& rMacroName )
return aMacroName;
}
+#if HAVE_FEATURE_SCRIPTING
+
static SfxObjectShell* findShellForUrl( const OUString& sMacroURLOrPath )
{
SfxObjectShell* pFoundShell=nullptr;
@@ -224,6 +226,8 @@ static bool hasMacro( SfxObjectShell const * pShell, const OUString& sLibrary, O
return bFound;
}
+#endif
+
OUString getDefaultProjectName( SfxObjectShell const * pShell )
{
OUString aPrjName;
@@ -236,6 +240,8 @@ OUString getDefaultProjectName( SfxObjectShell const * pShell )
return aPrjName;
}
+#if HAVE_FEATURE_SCRIPTING
+
static void parseMacro( const OUString& sMacro, OUString& sContainer, OUString& sModule, OUString& sProcedure )
{
sal_Int32 nMacroDot = sMacro.lastIndexOf( '.' );
@@ -257,6 +263,8 @@ static void parseMacro( const OUString& sMacro, OUString& sContainer, OUString&
sProcedure = sMacro;
}
+#endif
+
OUString resolveVBAMacro( SfxObjectShell const * pShell, const OUString& rLibName, const OUString& rModuleName, const OUString& rMacroName )
{
#if !HAVE_FEATURE_SCRIPTING