diff --git a/qadevOOo/tests/java/mod/_forms/OFormsCollection.java b/qadevOOo/tests/java/mod/_forms/OFormsCollection.java index 6e1c86140424..a86c0001091e 100644 --- a/qadevOOo/tests/java/mod/_forms/OFormsCollection.java +++ b/qadevOOo/tests/java/mod/_forms/OFormsCollection.java @@ -2,9 +2,9 @@ * * $RCSfile: OFormsCollection.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change:$Date: 2003-01-27 18:15:08 $ + * last change:$Date: 2003-05-27 12:42:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,6 +62,7 @@ package mod._forms; import com.sun.star.container.XNameContainer; +import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.drawing.XDrawPage; import com.sun.star.form.XForm; import com.sun.star.lang.XComponent; @@ -119,7 +120,7 @@ public class OFormsCollection extends TestCase { protected void initialize( TestParameters tParam, PrintWriter log ) { log.println( "creating a draw document" ); - xDrawDoc = DrawTools.createDrawDoc( tParam.getMSF() ); + xDrawDoc = DrawTools.createDrawDoc( (XMultiServiceFactory)tParam.getMSF() ); } /** diff --git a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java b/qadevOOo/tests/java/mod/_forms/OGridControlModel.java index 9f5a2097003d..e9147cd8b9eb 100644 --- a/qadevOOo/tests/java/mod/_forms/OGridControlModel.java +++ b/qadevOOo/tests/java/mod/_forms/OGridControlModel.java @@ -2,9 +2,9 @@ * * $RCSfile: OGridControlModel.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change:$Date: 2003-01-27 18:15:07 $ + * last change:$Date: 2003-05-27 12:43:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,6 +62,7 @@ package mod._forms; import com.sun.star.beans.XPropertySet; +import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.container.XNameContainer; import com.sun.star.drawing.XControlShape; import com.sun.star.form.XGridColumnFactory; @@ -168,7 +169,7 @@ public class OGridControlModel extends TestCase { * Creates Drawing document. */ protected void initialize( TestParameters tParam, PrintWriter log ) { - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); + SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() ); log.println( "creating a draw document" ); try { @@ -223,7 +224,7 @@ public class OGridControlModel extends TestCase { //get GridControlModel - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF() ); + SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF() ); String objName = "Grid"; XControlShape shape = FormTools.insertControlShape (xDrawDoc, 5000, 7000, 2000, 2000, "GridControl") ; diff --git a/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java b/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java index e231d964ab96..3467f0df8bb6 100644 --- a/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java +++ b/qadevOOo/tests/java/mod/_forms/OGroupBoxControl.java @@ -2,9 +2,9 @@ * * $RCSfile: OGroupBoxControl.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change:$Date: 2003-01-27 18:15:07 $ + * last change:$Date: 2003-05-27 12:43:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,6 +62,7 @@ package mod._forms; import com.sun.star.awt.XControlModel; +import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.awt.XDevice; import com.sun.star.awt.XGraphics; import com.sun.star.awt.XToolkit; @@ -115,7 +116,7 @@ public class OGroupBoxControl extends TestCase { * Creates a new text document. */ protected void initialize ( TestParameters Param, PrintWriter log) { - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF() ); + SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF() ); try { log.println( "creating a textdocument" ); diff --git a/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java b/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java index 3c3271aa21aa..c05ba988a1f6 100644 --- a/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java +++ b/qadevOOo/tests/java/mod/_forms/OGroupBoxModel.java @@ -2,9 +2,9 @@ * * $RCSfile: OGroupBoxModel.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change:$Date: 2003-01-27 18:15:06 $ + * last change:$Date: 2003-05-27 12:43:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -62,6 +62,7 @@ package mod._forms; import com.sun.star.drawing.XControlShape; +import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.lang.XComponent; import com.sun.star.uno.XInterface; import java.io.PrintWriter; @@ -122,7 +123,7 @@ public class OGroupBoxModel extends TestCase { * Creates Drawing document. */ protected void initialize( TestParameters tParam, PrintWriter log ) { - SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() ); + SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() ); try { log.println( "creating a draw document" ); @@ -162,7 +163,7 @@ public class OGroupBoxModel extends TestCase { log.println( "creating a test environment" ); // get a soffice factory object - SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); + SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF()); //get GroupBoxModel String objName = "GroupBox";