Anonymous avatar Anonymous committed b76dd88

mib19: #163691# remember VBA object provider instance

Comments (0)

Files changed (3)

sc/inc/docuno.hxx

 	com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawMarkerTab;
 	com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawDashTab;
     com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xChartDataProv;
+	com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xObjProvider;
 
     ::cppu::OInterfaceContainerHelper maChangesListeners;
 

sc/source/ui/unoobj/docuno.cxx

 			case SC_SERVICE_MARKERTAB:	xRet.set(xDrawMarkerTab);	break;
 			case SC_SERVICE_DASHTAB:	xRet.set(xDrawDashTab); 	break;
             case SC_SERVICE_CHDATAPROV: xRet.set(xChartDataProv);   break;
+            case SC_SERVICE_VBAOBJECTPROVIDER: xRet.set(xObjProvider); break;
 		}
 
         // #i64497# If a chart is in a temporary document during clipoard paste,
 				case SC_SERVICE_MARKERTAB:	xDrawMarkerTab.set(xRet);	break;
 				case SC_SERVICE_DASHTAB:	xDrawDashTab.set(xRet); 	break;
                 case SC_SERVICE_CHDATAPROV: xChartDataProv.set(xRet);   break;
+                case SC_SERVICE_VBAOBJECTPROVIDER: xObjProvider.set(xRet); break;
 			}
 		}
 	}

sc/source/ui/vba/vbaworksheet.cxx

 ScVbaWorksheet::ScVbaWorksheet( uno::Sequence< uno::Any> const & args,
     uno::Reference< uno::XComponentContext> const & xContext ) throw ( lang::IllegalArgumentException ) :  WorksheetImpl_BASE( getXSomethingFromArgs< XHelperInterface >( args, 0 ), xContext ), mxModel( getXSomethingFromArgs< frame::XModel >( args, 1 ) ), mbVeryHidden( false )
 {
-	if ( args.getLength() < 2 )
+	if ( args.getLength() < 3 )
 		throw lang::IllegalArgumentException();
 
 	rtl::OUString sSheetName;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.