ooo-build r15363 - in trunk: . patches/vba



Author: noelpwer
Date: Wed Feb 18 10:44:26 2009
New Revision: 15363
URL: http://svn.gnome.org/viewvc/ooo-build?rev=15363&view=rev

Log:
2009-02-17  Noel Power <noel power novell com>

        * patches/vba/vba-word-support.diff: fix excel events
        * patches/vba/vba-word-support-m0.diff: 



Modified:
   trunk/ChangeLog
   trunk/patches/vba/vba-word-support-m0.diff
   trunk/patches/vba/vba-word-support.diff

Modified: trunk/patches/vba/vba-word-support-m0.diff
==============================================================================
--- trunk/patches/vba/vba-word-support-m0.diff	(original)
+++ trunk/patches/vba/vba-word-support-m0.diff	Wed Feb 18 10:44:26 2009
@@ -31293,3 +31293,21 @@
 +	local:
 +		*;
 +};
+diff --git vbahelper/source/vbahelper/vbahelper.cxx vbahelper/source/vbahelper/vbahelper.cxx
+index 4e3ce8e..9d66ee0 100644
+--- vbahelper/source/vbahelper/vbahelper.cxx
++++ vbahelper/source/vbahelper/vbahelper.cxx
+@@ -907,10 +907,12 @@ String docMacroExists( SfxObjectShell* pShell, const String& sMod, const String&
+ 	// called at this stage tdoc content handler stuff is not set up
+ 	// so it fails
+ 
+-    const static String sLibrary( RTL_CONSTASCII_USTRINGPARAM("Standard"));
++        String sLibrary( RTL_CONSTASCII_USTRINGPARAM("Standard"));
+ 	BasicManager* pBasicMgr = pShell-> GetBasicManager();
+ 	if ( pBasicMgr )
+ 	{
++		if ( pBasicMgr->GetName().Len() )
++			sLibrary =  pBasicMgr->GetName();
+ 		StarBASIC* pBasic = pBasicMgr->GetLib( sLibrary );
+ 		if ( !pBasic )
+ 		{

Modified: trunk/patches/vba/vba-word-support.diff
==============================================================================
--- trunk/patches/vba/vba-word-support.diff	(original)
+++ trunk/patches/vba/vba-word-support.diff	Wed Feb 18 10:44:26 2009
@@ -31291,3 +31291,21 @@
 +	local:
 +		*;
 +};
+diff --git vbahelper/source/vbahelper/vbahelper.cxx vbahelper/source/vbahelper/vbahelper.cxx
+index 4e3ce8e..9d66ee0 100644
+--- vbahelper/source/vbahelper/vbahelper.cxx
++++ vbahelper/source/vbahelper/vbahelper.cxx
+@@ -907,10 +907,12 @@ String docMacroExists( SfxObjectShell* pShell, const String& sMod, const String&
+ 	// called at this stage tdoc content handler stuff is not set up
+ 	// so it fails
+ 
+-    const static String sLibrary( RTL_CONSTASCII_USTRINGPARAM("Standard"));
++        String sLibrary( RTL_CONSTASCII_USTRINGPARAM("Standard"));
+ 	BasicManager* pBasicMgr = pShell-> GetBasicManager();
+ 	if ( pBasicMgr )
+ 	{
++		if ( pBasicMgr->GetName().Len() )
++			sLibrary =  pBasicMgr->GetName();
+ 		StarBASIC* pBasic = pBasicMgr->GetLib( sLibrary );
+ 		if ( !pBasic )
+ 		{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]