Kaydet (Commit) 8da71d06 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS qadev6 (1.2.2); FILE MERGED

2003/05/21 10:58:03 sg 1.2.2.1: #109819# prepare devide of runner
üst f09452c7
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: AccessibleGraphicShape.java,v $ * $RCSfile: AccessibleGraphicShape.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-04-28 12:16:12 $ * last change:$Date: 2003-05-27 13:34:30 $
* *
* 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
...@@ -66,6 +66,7 @@ import com.sun.star.awt.XWindow; ...@@ -66,6 +66,7 @@ import com.sun.star.awt.XWindow;
import com.sun.star.drawing.XShape; import com.sun.star.drawing.XShape;
import com.sun.star.frame.XModel; import com.sun.star.frame.XModel;
import com.sun.star.lang.XComponent; import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import com.sun.star.accessibility.AccessibleRole; import com.sun.star.accessibility.AccessibleRole;
...@@ -87,7 +88,7 @@ public class AccessibleGraphicShape extends TestCase { ...@@ -87,7 +88,7 @@ public class AccessibleGraphicShape extends TestCase {
protected void initialize( TestParameters tParam, PrintWriter log ) { protected void initialize( TestParameters tParam, PrintWriter log ) {
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
try { try {
log.println( "creating a drawdoc" ); log.println( "creating a drawdoc" );
...@@ -119,7 +120,7 @@ public class AccessibleGraphicShape extends TestCase { ...@@ -119,7 +120,7 @@ public class AccessibleGraphicShape extends TestCase {
// first we write what we are intend to do to log file // first we write what we are intend to do to log file
log.println( "creating a test environment" ); log.println( "creating a test environment" );
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());
final XShape oShape = SOF.createShape(xDrawDoc, final XShape oShape = SOF.createShape(xDrawDoc,
5000,5000,1500,1000,"GraphicObject"); 5000,5000,1500,1000,"GraphicObject");
...@@ -128,7 +129,7 @@ public class AccessibleGraphicShape extends TestCase { ...@@ -128,7 +129,7 @@ public class AccessibleGraphicShape 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);
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: AccessibleOLEShape.java,v $ * $RCSfile: AccessibleOLEShape.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-04-28 12:16:15 $ * last change:$Date: 2003-05-27 13:34:41 $
* *
* 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
...@@ -67,6 +67,7 @@ import com.sun.star.beans.XPropertySet; ...@@ -67,6 +67,7 @@ import com.sun.star.beans.XPropertySet;
import com.sun.star.drawing.XShape; import com.sun.star.drawing.XShape;
import com.sun.star.frame.XModel; import com.sun.star.frame.XModel;
import com.sun.star.lang.XComponent; import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import com.sun.star.accessibility.AccessibleRole; import com.sun.star.accessibility.AccessibleRole;
...@@ -88,7 +89,7 @@ public class AccessibleOLEShape extends TestCase { ...@@ -88,7 +89,7 @@ public class AccessibleOLEShape extends TestCase {
protected void initialize( TestParameters tParam, PrintWriter log ) { protected void initialize( TestParameters tParam, PrintWriter log ) {
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
try { try {
log.println( "creating a drawdoc" ); log.println( "creating a drawdoc" );
...@@ -120,7 +121,7 @@ public class AccessibleOLEShape extends TestCase { ...@@ -120,7 +121,7 @@ public class AccessibleOLEShape extends TestCase {
// first we write what we are intend to do to log file // first we write what we are intend to do to log file
log.println( "creating a test environment" ); log.println( "creating a test environment" );
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF()); SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());
final XShape oShape = SOF.createShape final XShape oShape = SOF.createShape
(xDrawDoc,5000,5000,1500,1000,"OLE2"); (xDrawDoc,5000,5000,1500,1000,"OLE2");
...@@ -150,7 +151,7 @@ public class AccessibleOLEShape extends TestCase { ...@@ -150,7 +151,7 @@ public class AccessibleOLEShape 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);
at.printAccessibleTree(log,xRoot); at.printAccessibleTree(log,xRoot);
......
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