Kaydet (Commit) 0419f475 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED

2003/05/21 10:57:41 sg 1.1.8.1: #109819# prepare devide of runner
üst ad08344f
......@@ -2,9 +2,9 @@
*
* $RCSfile: SdUnoOutlineView.java,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change:$Date: 2003-01-27 18:17:28 $
* last change:$Date: 2003-05-27 13:23:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -69,6 +69,7 @@ import com.sun.star.frame.XDispatchProvider;
import com.sun.star.frame.XFrame;
import com.sun.star.frame.XModel;
import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface;
import com.sun.star.util.URL;
......@@ -121,7 +122,8 @@ public class SdUnoOutlineView extends TestCase {
protected void initialize(TestParameters Param, PrintWriter log) {
the_Desk = (XDesktop)
UnoRuntime.queryInterface(
XDesktop.class, DesktopTools.createDesktop(Param.getMSF()) );
XDesktop.class, DesktopTools.createDesktop(
(XMultiServiceFactory)Param.getMSF()) );
}
/**
......@@ -168,7 +170,7 @@ public class SdUnoOutlineView extends TestCase {
log.println( "creating a test environment" );
// get a soffice factory object
SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF());
try {
log.println( "creating a impress document" );
......@@ -191,7 +193,7 @@ public class SdUnoOutlineView extends TestCase {
UnoRuntime.queryInterface( XDispatchProvider.class, oObj );
XURLTransformer xParser = (com.sun.star.util.XURLTransformer)
UnoRuntime.queryInterface(XURLTransformer.class,
Param.getMSF().createInstance("com.sun.star.util.URLTransformer"));
((XMultiServiceFactory)Param.getMSF()).createInstance("com.sun.star.util.URLTransformer"));
// Because it's an in/out parameter we must use an array of URL objects.
URL[] aParseURL = new URL[1];
aParseURL[0] = new URL();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment