throw new StatusException("could not get '" + sDataSourceName + "'" , e) ;
} catch ( com.sun.star.lang.WrappedTargetException e){
throw new StatusException("could not get '" + sDataSourceName + "'" , e) ;
}
XDocumentDataSource xDDS = (XDocumentDataSource) UnoRuntime.queryInterface(XDocumentDataSource.class, oDataSource);
XModel xMod = (XModel) UnoRuntime.queryInterface(XModel.class, xDDS.getDatabaseDocument ());
Frame = xMod.getCurrentController().getFrame();
// get an instance of Frame
Object oFrame = null;
XTextDocument xTextDoc = null;;
SOfficeFactory SOF = null;
SOF = SOfficeFactory.getFactory( xMSF );
try {
log.println( "creating a textdocument" );
xTextDoc = SOF.createTextDoc( null );
} catch ( com.sun.star.uno.Exception e ) {
e.printStackTrace( log );
throw new StatusException( "Could not create document", e );
}
XModel xDocMod = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc);
XFrame xTextFrame = xDocMod.getCurrentController().getFrame();
Object[] params = new Object[3];
param1 = new PropertyValue();
param1.Name = "DataSourceName";
param1.Value = "Bibliography";