xmulticomponentfactory.createInstanceWithContext(
"org.openoffice.ToDo", xcomponentcontext );
if ( objectToDo != null ) {
// Querying for the interface XToDo
XToDo xToDo = ( XToDo )
UnoRuntime.queryInterface( XToDo.class, objectToDo );
// Recalculate the spreadsheet
xToDo.recalc( xspreadsheetdocument );
}
// Removing the XSingleServiceFactory of ToDo from the container
xsetMultiComponentFactory.remove( xsingleservicefactoryToDo );