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

INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED

2003/05/21 10:57:46 sg 1.1.8.1: #109819# prepare devide of runner
üst 4c558c18
......@@ -2,9 +2,9 @@
*
* $RCSfile: SfxMacroLoader.java,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change:$Date: 2003-01-27 18:17:36 $
* last change:$Date: 2003-05-27 13:25:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -62,6 +62,7 @@
package mod._sfx;
import com.sun.star.uno.XInterface;
import com.sun.star.lang.XMultiServiceFactory;
import java.io.PrintWriter;
import lib.Status;
import lib.StatusException;
......@@ -105,8 +106,8 @@ public class SfxMacroLoader extends TestCase {
//now get the OButtonControl
try {
oInterface = Param.getMSF().createInstance
("com.sun.star.comp.sfx2.SfxMacroLoader") ;
oInterface = ((XMultiServiceFactory)Param.getMSF()).createInstance
("com.sun.star.comp.sfx2.SfxMacroLoader");
} catch (com.sun.star.uno.Exception e) {
log.println("Couldn't get service");
e.printStackTrace(log);
......@@ -128,7 +129,7 @@ public class SfxMacroLoader extends TestCase {
// adding relation for XFrameLoader
tEnv.addObjRelation("XDispatchProvider.URL",
"macro:tools.UCB.CreateFolder(\"" +
utils.getOfficeTemp(Param.getMSF()) + "/SfxMacroLoader\")") ;
utils.getOfficeTemp((XMultiServiceFactory)Param.getMSF()) + "/SfxMacroLoader\")") ;
return tEnv;
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: StandaloneDocumentInfo.java,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change:$Date: 2003-01-27 18:17:36 $
* last change:$Date: 2003-05-27 13:26:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -116,10 +116,10 @@ public class StandaloneDocumentInfo extends TestCase {
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
String srcUrl = utils.getFullTestURL("SfxStandaloneDocInfoObject.sdw") ;
destUrl = utils.getOfficeTemp(tParam.getMSF()) +
destUrl = utils.getOfficeTemp((XMultiServiceFactory)tParam.getMSF()) +
"SfxStandaloneDocInfoObject.sdw";
utils.overwriteFile(tParam.getMSF(), srcUrl, destUrl) ;
utils.overwriteFile((XMultiServiceFactory)tParam.getMSF(), srcUrl, destUrl) ;
}
/**
......@@ -135,7 +135,7 @@ public class StandaloneDocumentInfo extends TestCase {
*/
protected TestEnvironment createTestEnvironment
(TestParameters tParam, PrintWriter log) {
XMultiServiceFactory xMSF = tParam.getMSF();
XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF();
XInterface oObj = null;
try {
......
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