summaryrefslogtreecommitdiff
path: root/qadevOOo/tests
diff options
context:
space:
mode:
authorStephan Wunderlich <sw@openoffice.org>2003-03-25 13:41:23 +0000
committerStephan Wunderlich <sw@openoffice.org>2003-03-25 13:41:23 +0000
commit0bc56b36faa9780dab83602d8e03bddc2aa77417 (patch)
tree6154ff55cc0c7392a665bb9381e1d34ee0462910 /qadevOOo/tests
parent1db50ca368e3522890db149ea5d78a35f66312e1 (diff)
CHG: using drawdoc to have a 'moveable' scrollbar
Diffstat (limited to 'qadevOOo/tests')
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java
index dd8a45ec2fa7..3f3138703cd0 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleScrollBar.java
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleScrollBar.java,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change:$Date: 2003-01-27 18:19:28 $
+ * last change:$Date: 2003-03-25 14:41:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -67,7 +67,7 @@ import com.sun.star.awt.XWindow;
import com.sun.star.frame.XController;
import com.sun.star.frame.XDesktop;
import com.sun.star.frame.XModel;
-import com.sun.star.text.XTextDocument;
+import com.sun.star.lang.XComponent;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface;
import drafts.com.sun.star.accessibility.AccessibleRole;
@@ -116,7 +116,7 @@ import util.SOfficeFactory;
public class AccessibleScrollBar extends TestCase {
XDesktop the_Desk;
- XTextDocument xTextDoc;
+ XComponent xDoc;
/**
* Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>).
@@ -133,8 +133,8 @@ public class AccessibleScrollBar extends TestCase {
protected void cleanup( TestParameters Param, PrintWriter log) {
log.println("disposing xTextDoc");
- if (xTextDoc != null) {
- xTextDoc.dispose();
+ if (xDoc != null) {
+ xDoc.dispose();
}
}
@@ -162,14 +162,14 @@ public class AccessibleScrollBar extends TestCase {
log.println( "creating a test environment" );
- if (xTextDoc != null) xTextDoc.dispose();
+ if (xDoc != null) xDoc.dispose();
// get a soffice factory object
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF());
try {
log.println( "creating a text document" );
- xTextDoc = SOF.createTextDoc(null);
+ xDoc = SOF.createDrawDoc(null);
} catch ( com.sun.star.uno.Exception e ) {
// Some exception occures.FAILED
e.printStackTrace( log );
@@ -177,7 +177,7 @@ public class AccessibleScrollBar extends TestCase {
}
XModel aModel = (XModel)
- UnoRuntime.queryInterface(XModel.class, xTextDoc);
+ UnoRuntime.queryInterface(XModel.class, xDoc);
XController xController = aModel.getCurrentController();