libreoffice fonts dependency, MSO import

Meowthink meowthink at gmail.com
Wed Apr 25 15:03:52 UTC 2012


Yes if compiled with clang, as
ooo::vba::createVBAUnoAPIServiceWithArgs will raise an exception which
intent to be caught by SwDoc::GetVbaEventProcessor, at least compile
with gcc -fno-enforce-sh-specs - but clang won't.

There's a fix commit 707609c in master branch:

diff --git a/vbahelper/inc/vbahelper/vbaaccesshelper.hxx
b/vbahelper/inc/vbahelper/vbaaccesshelper.hxx
index 2533b5c..761d3a2 100644
--- a/vbahelper/inc/vbahelper/vbaaccesshelper.hxx
+++ b/vbahelper/inc/vbahelper/vbaaccesshelper.hxx
@@ -51,7 +51,7 @@ namespace ooo
             return xVBAFactory;
         }

-        VBAHELPER_DLLPRIVATE inline css::uno::Reference<
css::uno::XInterface > createVBAUnoAPIServiceWithArgs( SfxObjectShell*
pShell,  const sal_Char* _pAsciiName, const css::uno::Sequence<
css::uno::Any >& aArgs ) throw (css::uno::RuntimeException)
+        VBAHELPER_DLLPRIVATE inline css::uno::Reference<
css::uno::XInterface > createVBAUnoAPIServiceWithArgs( SfxObjectShell*
pShell,  const sal_Char* _pAsciiName, const css::uno::Sequence<
css::uno::Any >& aArgs ) throw (css::uno::Exception)
         {
             OSL_PRECOND( pShell, "createVBAUnoAPIService: no shell!" );
             ::rtl::OUString sVarName(
::rtl::OUString::createFromAscii( _pAsciiName ) );


More information about the freebsd-office mailing list