}
SOfficeFactory SOF = SOfficeFactory.getFactory(
(XMultiServiceFactory)tParam.getMSF() );
XURLTransformer xURLTrans = null;
// if frame is not contained in relations the writer frmame will be used.
if (frame == null) {
try {
log.println( "creating a textdocument" );
frameSup = SOF.createTextDoc( null );
Object oDsk = (
(XMultiServiceFactory)tParam.getMSF()).createInstance
("com.sun.star.frame.Desktop") ;
XDesktop dsk = (XDesktop) UnoRuntime.queryInterface
(XDesktop.class, oDsk) ;
frame = dsk.getCurrentFrame() ;
Object o = (
(XMultiServiceFactory)tParam.getMSF()).createInstance
("com.sun.star.util.URLTransformer") ;
xURLTrans = (XURLTransformer) UnoRuntime.queryInterface
(XURLTransformer.class, o) ;
} catch ( com.sun.star.uno.Exception e ) {
// Some exception occures.FAILED
e.printStackTrace( log );
throw new StatusException( "Couldn't create a document.", e );
}
}
URL[] urlS = new URL[1];
urlS[0] = new URL();
urlS[0].Complete = url;
boolean res = xURLTrans.parseStrict(urlS);
log.println("Parsing URL '" + url + "': " + res);
descr = new PropertyValue[1] ;
descr[0] = new PropertyValue();
descr[0].Name = "URL" ;
descr[0].Value = urlS[0] ;