INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED

2003/05/21 10:55:58 sg 1.1.8.1: #109819# prepare devide of runner
This commit is contained in:
Vladimir Glazounov
2003-05-27 11:44:28 +00:00
parent d359629e85
commit 953e697d8a
3 changed files with 15 additions and 12 deletions

View File

@ -2,9 +2,9 @@
*
* $RCSfile: OImageControlModel.java,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change:$Date: 2003-01-27 18:15:04 $
* last change:$Date: 2003-05-27 12:44:28 $
*
* 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.drawing.XControlShape;
import com.sun.star.drawing.XShape;
import com.sun.star.form.XLoadable;
@ -155,7 +156,7 @@ public class OImageControlModel extends TestCase {
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
log.println( "creating a text document" );
xTextDoc = WriterTools.createTextDoc(tParam.getMSF());
xTextDoc = WriterTools.createTextDoc((XMultiServiceFactory)tParam.getMSF());
}
/**
@ -198,7 +199,7 @@ public class OImageControlModel 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());
String objName = "DatabaseImageControl";
XControlShape aShape = FormTools.createControlShape(
@ -209,7 +210,7 @@ public class OImageControlModel extends TestCase {
XLoadable formLoader = null ;
try {
DBTools dbTools = new DBTools(Param.getMSF()) ;
DBTools dbTools = new DBTools((XMultiServiceFactory)Param.getMSF()) ;
dbTools.registerTestDB((String) System.getProperty("DOCPTH")) ;
formLoader = FormTools.bindForm(xTextDoc,