From b6fa941a62c1f301982732f4d7ec1b42f9330af0 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 19 Sep 2018 13:21:56 +0300 Subject: Avoid unused functions in the !HAVE_FEATURE_SCRIPTING case Change-Id: I4b3cb1d696adb7f9a6f35b8529e49d55bd5d957b --- filter/source/msfilter/msvbahelper.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'filter') 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 -- cgit