Kaydet (Commit) 0cdb456d authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS qadev6 (1.2.2); FILE MERGED

2003/05/21 10:59:04 sg 1.2.2.1: #109819# prepare devide of runner
üst cc0d93fd
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: AccessibleWindow.java,v $ * $RCSfile: AccessibleWindow.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-04-28 11:22:28 $ * last change:$Date: 2003-05-27 14:00:24 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
package mod._toolkit; package mod._toolkit;
import java.io.PrintWriter; import java.io.PrintWriter;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.awt.XWindow; import com.sun.star.awt.XWindow;
import com.sun.star.awt.Rectangle; import com.sun.star.awt.Rectangle;
...@@ -130,7 +131,7 @@ public class AccessibleWindow extends TestCase { ...@@ -130,7 +131,7 @@ public class AccessibleWindow extends TestCase {
*/ */
protected void initialize(TestParameters Param, PrintWriter log) { protected void initialize(TestParameters Param, PrintWriter log) {
the_Desk = (XDesktop) UnoRuntime.queryInterface( the_Desk = (XDesktop) UnoRuntime.queryInterface(
XDesktop.class, DesktopTools.createDesktop(Param.getMSF())); XDesktop.class, DesktopTools.createDesktop((XMultiServiceFactory)Param.getMSF()));
} }
/** /**
...@@ -176,14 +177,14 @@ public class AccessibleWindow extends TestCase { ...@@ -176,14 +177,14 @@ public class AccessibleWindow extends TestCase {
if (xTextDoc != null) xTextDoc.dispose(); if (xTextDoc != null) xTextDoc.dispose();
// get a soffice factory object // get a soffice factory object
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());
XInterface toolkit = null; XInterface toolkit = null;
try { try {
log.println( "creating a text document" ); log.println( "creating a text document" );
xTextDoc = SOF.createTextDoc(null); xTextDoc = SOF.createTextDoc(null);
toolkit = (XInterface) tParam.getMSF().createInstance( toolkit = (XInterface) ((XMultiServiceFactory)tParam.getMSF()).createInstance(
"com.sun.star.awt.Toolkit") ; "com.sun.star.awt.Toolkit") ;
} catch ( com.sun.star.uno.Exception e ) { } catch ( com.sun.star.uno.Exception e ) {
// Some exception occures.FAILED // Some exception occures.FAILED
...@@ -200,7 +201,7 @@ public class AccessibleWindow extends TestCase { ...@@ -200,7 +201,7 @@ public class AccessibleWindow extends TestCase {
AccessibilityTools at = new AccessibilityTools(); AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = at.getCurrentWindow(tParam.getMSF(), aModel); XWindow xWindow = at.getCurrentWindow((XMultiServiceFactory)tParam.getMSF(), aModel);
XAccessible xRoot = at.getAccessibleObject(xWindow); XAccessible xRoot = at.getAccessibleObject(xWindow);
...@@ -232,4 +233,4 @@ public class AccessibleWindow extends TestCase { ...@@ -232,4 +233,4 @@ public class AccessibleWindow extends TestCase {
return tEnv; return tEnv;
} }
} }
\ No newline at end of file
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