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

INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED

2003/05/21 10:59:08 sg 1.1.8.1: #109819# prepare devide of runner
üst 2af4da16
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: UnoControlComboBoxModel.java,v $ * $RCSfile: UnoControlComboBoxModel.java,v $
* *
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
* last change:$Date: 2003-01-27 18:19:23 $ * last change:$Date: 2003-05-27 14:02:01 $
* *
* 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 com.sun.star.text.XTextDocument; import com.sun.star.text.XTextDocument;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import java.io.PrintWriter; import java.io.PrintWriter;
import lib.StatusException; import lib.StatusException;
...@@ -81,7 +82,7 @@ public class UnoControlComboBoxModel extends TestCase { ...@@ -81,7 +82,7 @@ public class UnoControlComboBoxModel extends TestCase {
protected void initialize( TestParameters tParam, PrintWriter log ) { protected void initialize( TestParameters tParam, PrintWriter log ) {
log.println( "creating a textdocument" ); log.println( "creating a textdocument" );
xTextDoc = WriterTools.createTextDoc(tParam.getMSF()); xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)tParam.getMSF());
} }
/** /**
...@@ -100,7 +101,7 @@ public class UnoControlComboBoxModel extends TestCase { ...@@ -100,7 +101,7 @@ public class UnoControlComboBoxModel extends TestCase {
XInterface oObj = null; XInterface oObj = null;
try { try {
oObj = (XInterface) Param.getMSF().createInstance( oObj = (XInterface) ((XMultiServiceFactory)Param.getMSF()).createInstance(
"com.sun.star.awt.UnoControlComboBoxModel"); "com.sun.star.awt.UnoControlComboBoxModel");
} catch (Exception e) { } catch (Exception e) {
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: UnoControlContainer.java,v $ * $RCSfile: UnoControlContainer.java,v $
* *
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
* last change:$Date: 2003-01-27 18:19:22 $ * last change:$Date: 2003-05-27 14:02:11 $
* *
* 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 com.sun.star.awt.XControl; import com.sun.star.awt.XControl;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.awt.XControlModel; import com.sun.star.awt.XControlModel;
import com.sun.star.awt.XDevice; import com.sun.star.awt.XDevice;
import com.sun.star.awt.XToolkit; import com.sun.star.awt.XToolkit;
...@@ -95,8 +96,8 @@ public class UnoControlContainer extends TestCase { ...@@ -95,8 +96,8 @@ public class UnoControlContainer extends TestCase {
protected void initialize(TestParameters param, PrintWriter log) { protected void initialize(TestParameters param, PrintWriter log) {
try { try {
log.println( "creating a textdocument" ); log.println( "creating a textdocument" );
xTD2 = WriterTools.createTextDoc(param.getMSF()); xTD2 = WriterTools.createTextDoc((XMultiServiceFactory)param.getMSF());
xTextDoc = WriterTools.createTextDoc(param.getMSF()); xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)param.getMSF());
} catch ( Exception e ) { } catch ( Exception e ) {
// Some exception occures.FAILED // Some exception occures.FAILED
e.printStackTrace( log ); e.printStackTrace( log );
...@@ -188,7 +189,7 @@ public class UnoControlContainer extends TestCase { ...@@ -188,7 +189,7 @@ public class UnoControlContainer extends TestCase {
// finished create Object Relations ----------------------------------- // finished create Object Relations -----------------------------------
// create the UnoControlContainer // create the UnoControlContainer
try { try {
oObj = (XInterface) param.getMSF().createInstance( oObj = (XInterface) ((XMultiServiceFactory)param.getMSF()).createInstance(
"com.sun.star.awt.UnoControlContainer"); "com.sun.star.awt.UnoControlContainer");
XControl xCtrl = (XControl) XControl xCtrl = (XControl)
UnoRuntime.queryInterface(XControl.class, oObj); UnoRuntime.queryInterface(XControl.class, oObj);
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: UnoControlContainerModel.java,v $ * $RCSfile: UnoControlContainerModel.java,v $
* *
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
* last change:$Date: 2003-01-27 18:19:22 $ * last change:$Date: 2003-05-27 14:02:22 $
* *
* 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 com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import com.sun.star.lang.XMultiServiceFactory;
import java.io.PrintWriter; import java.io.PrintWriter;
import lib.StatusException; import lib.StatusException;
import lib.TestCase; import lib.TestCase;
...@@ -75,7 +76,7 @@ public class UnoControlContainerModel extends TestCase { ...@@ -75,7 +76,7 @@ public class UnoControlContainerModel extends TestCase {
PrintWriter log) { PrintWriter log) {
XInterface oObj = null; XInterface oObj = null;
try { try {
oObj = (XInterface) param.getMSF().createInstance oObj = (XInterface) ((XMultiServiceFactory)param.getMSF()).createInstance
("com.sun.star.awt.UnoControlContainerModel"); ("com.sun.star.awt.UnoControlContainerModel");
} }
catch (Exception e) { catch (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