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

INTEGRATION: CWS qadev6 (1.2.2); FILE MERGED

2003/05/21 10:57:58 sg 1.2.2.1: #109819# prepare devide of runner
üst 8698078c
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: AccessibleBrowseBox.java,v $ * $RCSfile: AccessibleBrowseBox.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-04-28 12:17:14 $ * last change:$Date: 2003-05-27 13:32:03 $
* *
* 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
...@@ -74,6 +74,7 @@ import com.sun.star.frame.XDispatchProvider; ...@@ -74,6 +74,7 @@ import com.sun.star.frame.XDispatchProvider;
import com.sun.star.frame.XFrame; import com.sun.star.frame.XFrame;
import com.sun.star.frame.XModel; import com.sun.star.frame.XModel;
import com.sun.star.lang.XInitialization; import com.sun.star.lang.XInitialization;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.text.XTextDocument; import com.sun.star.text.XTextDocument;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
...@@ -107,7 +108,7 @@ public class AccessibleBrowseBox extends TestCase { ...@@ -107,7 +108,7 @@ public class AccessibleBrowseBox 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()) );
} }
/** /**
...@@ -142,7 +143,7 @@ public class AccessibleBrowseBox extends TestCase { ...@@ -142,7 +143,7 @@ public class AccessibleBrowseBox 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());
try { try {
log.println( "creating a text document" ); log.println( "creating a text document" );
...@@ -210,7 +211,7 @@ public class AccessibleBrowseBox extends TestCase { ...@@ -210,7 +211,7 @@ public class AccessibleBrowseBox extends TestCase {
shortWait(); shortWait();
try { try {
oObj = (XInterface) tParam.getMSF().createInstance oObj = (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) {
log.println("Couldn't get toolkit"); log.println("Couldn't get toolkit");
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: AccessibleBrowseBoxHeaderBar.java,v $ * $RCSfile: AccessibleBrowseBoxHeaderBar.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-04-28 12:17:19 $ * last change:$Date: 2003-05-27 13:32:16 $
* *
* 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
...@@ -71,6 +71,7 @@ import com.sun.star.frame.XDispatch; ...@@ -71,6 +71,7 @@ import com.sun.star.frame.XDispatch;
import com.sun.star.frame.XDispatchProvider; import com.sun.star.frame.XDispatchProvider;
import com.sun.star.frame.XFrame; import com.sun.star.frame.XFrame;
import com.sun.star.frame.XModel; import com.sun.star.frame.XModel;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.text.XTextDocument; import com.sun.star.text.XTextDocument;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
...@@ -112,7 +113,7 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase { ...@@ -112,7 +113,7 @@ public class AccessibleBrowseBoxHeaderBar 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()));
} }
/** /**
...@@ -156,7 +157,7 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase { ...@@ -156,7 +157,7 @@ public class AccessibleBrowseBoxHeaderBar 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());
try { try {
log.println( "creating a text document" ); log.println( "creating a text document" );
...@@ -201,7 +202,7 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase { ...@@ -201,7 +202,7 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase {
XInterface oObj = null; XInterface oObj = null;
try { try {
oObj = (XInterface) tParam.getMSF().createInstance oObj = (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) {
log.println("Couldn't get toolkit"); log.println("Couldn't get toolkit");
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: AccessibleBrowseBoxHeaderCell.java,v $ * $RCSfile: AccessibleBrowseBoxHeaderCell.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-04-28 12:17:22 $ * last change:$Date: 2003-05-27 13:32:27 $
* *
* 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
...@@ -71,6 +71,7 @@ import com.sun.star.frame.XDispatchProvider; ...@@ -71,6 +71,7 @@ import com.sun.star.frame.XDispatchProvider;
import com.sun.star.frame.XFrame; import com.sun.star.frame.XFrame;
import com.sun.star.frame.XModel; import com.sun.star.frame.XModel;
import com.sun.star.lang.XInitialization; import com.sun.star.lang.XInitialization;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.text.XTextDocument; import com.sun.star.text.XTextDocument;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
...@@ -112,7 +113,7 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase { ...@@ -112,7 +113,7 @@ public class AccessibleBrowseBoxHeaderCell 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()));
} }
/** /**
...@@ -159,7 +160,7 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase { ...@@ -159,7 +160,7 @@ public class AccessibleBrowseBoxHeaderCell 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());
try { try {
log.println( "creating a text document" ); log.println( "creating a text document" );
...@@ -224,7 +225,7 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase { ...@@ -224,7 +225,7 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase {
final Object[] fParams = params; final Object[] fParams = params;
try { try {
oObj = (XInterface) tParam.getMSF().createInstance oObj = (XInterface) ((XMultiServiceFactory)tParam.getMSF()).createInstance
("com.sun.star.awt.Toolkit"); ("com.sun.star.awt.Toolkit");
xInit.initialize(params); xInit.initialize(params);
} catch (com.sun.star.uno.Exception e) { } catch (com.sun.star.uno.Exception e) {
......
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