summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <nopower@novell.com>2011-03-15 16:02:56 +0100
committerPetr Mladek <pmladek@suse.cz>2011-03-15 16:02:56 +0100
commit893b6751feac5ecd53eb147ca90eabb8372e7883 (patch)
treee943419df3c2a5d70cd4f0c094a17ae2a905ddc2
parente9e01d2ee217366161553bcf6b55acdb387ea55b (diff)
fix non-working VBA container controls
They use the imported VBA projectname as the library name for imported macros. Without this change the event handling code doesn't find the event handlers. Signed-off-by: Petr Mladek <pmmladek@suse.cz>
-rw-r--r--patches/vba/vba-container-controls.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/vba/vba-container-controls.diff b/patches/vba/vba-container-controls.diff
index 928f06e2f..1e0746f87 100644
--- a/patches/vba/vba-container-controls.diff
+++ b/patches/vba/vba-container-controls.diff
@@ -1161,6 +1161,17 @@ index 5e6e0ff..add8f8e 100755
member. Do not create the Basic library, if there are no modules
specified. */
if( !aModules.empty() ) try
+@@ -374,7 +374,9 @@ void VbaProject::importVba( StorageBase& rVbaPrjStrg, const GraphicHelper& rGrap
+ // set library container to VBA compatibility mode
+ try
+ {
+- Reference< XVBACompatibility >( getLibraryContainer( PROP_BasicLibraries ), UNO_QUERY_THROW )->setVBACompatibilityMode( sal_True );
++ Reference< XVBACompatibility > xVBACompat( getLibraryContainer( PROP_BasicLibraries ), UNO_QUERY_THROW );
++ xVBACompat->setVBACompatibilityMode( sal_True );
++ xVBACompat->setProjectName( maPrjName );
+ }
+ catch( Exception& )
+ {
diff --git oox/source/token/properties.txt oox/source/token/properties.txt
index 2a7960a..cb18e82 100644
--- oox/source/token/properties.txt