summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-27 12:33:55 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-27 12:33:55 +0000
commit1bd1e47c091bc461157d0322eefddc841a685bbc (patch)
tree2608e3e2770017fe35440fe5817ab19c4e81de57 /qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
parent3d6a3f86808dce81885656ed99bc6e151ec31e4f (diff)
INTEGRATION: CWS qadev6 (1.2.2); FILE MERGED
2003/05/21 10:58:01 sg 1.2.2.1: #109819# prepare devide of runner
Diffstat (limited to 'qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java')
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
index 347bcc633f80..b27c94f7b910 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleTreeListBox.java,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change:$Date: 2003-04-28 12:17:52 $
+ * last change:$Date: 2003-05-27 13:33:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,6 +65,7 @@ import java.io.PrintWriter;
import com.sun.star.awt.XWindow;
import com.sun.star.beans.PropertyValue;
+import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.frame.XController;
import com.sun.star.frame.XDesktop;
import com.sun.star.frame.XDispatch;
@@ -120,7 +121,7 @@ public class AccessibleTreeListBox 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 +169,7 @@ public class AccessibleTreeListBox extends TestCase {
if (xTextDoc != null) xTextDoc.dispose();
// get a soffice factory object
- SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());
try {
log.println( "creating a text document" );
@@ -213,7 +214,7 @@ public class AccessibleTreeListBox extends TestCase {
XInterface oObj = null;
try {
- oObj = (XInterface) tParam.getMSF().createInstance
+ oObj = (XInterface) ((XMultiServiceFactory)tParam.getMSF()).createInstance
("com.sun.star.awt.Toolkit") ;
} catch (com.sun.star.uno.Exception e) {
log.println("Couldn't get toolkit");
@@ -296,4 +297,4 @@ public class AccessibleTreeListBox extends TestCase {
}
}
-} \ No newline at end of file
+}