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

INTEGRATION: CWS qadev6 (1.3.4); FILE MERGED

2003/05/21 10:58:26 sg 1.3.4.1: #109819# prepare devide of runner
üst 209aa728
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: SwXMailMerge.java,v $ * $RCSfile: SwXMailMerge.java,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change:$Date: 2003-03-26 14:55:01 $ * last change:$Date: 2003-05-27 13:46:39 $
* *
* 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._sw; package mod._sw;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import java.io.PrintWriter; import java.io.PrintWriter;
import lib.StatusException; import lib.StatusException;
...@@ -110,7 +111,7 @@ public class SwXMailMerge extends TestCase { ...@@ -110,7 +111,7 @@ public class SwXMailMerge extends TestCase {
XJob Job = null; XJob Job = null;
try { try {
oObj = (XInterface) Param.getMSF().createInstance oObj = (XInterface) ((XMultiServiceFactory)Param.getMSF()).createInstance
("com.sun.star.text.MailMerge"); ("com.sun.star.text.MailMerge");
} catch (com.sun.star.uno.Exception e) { } catch (com.sun.star.uno.Exception e) {
throw new StatusException("Can't create object environment", e) ; throw new StatusException("Can't create object environment", e) ;
...@@ -119,7 +120,7 @@ public class SwXMailMerge extends TestCase { ...@@ -119,7 +120,7 @@ public class SwXMailMerge extends TestCase {
// <set some variables> // <set some variables>
String cTestDoc = utils.getFullTestURL("MailMerge.sxw"); String cTestDoc = utils.getFullTestURL("MailMerge.sxw");
//cMailMerge_DocumentURL = cTestDoc //cMailMerge_DocumentURL = cTestDoc
String cOutputURL = utils.getOfficeTemp(Param.getMSF()); String cOutputURL = utils.getOfficeTemp((XMultiServiceFactory)Param.getMSF());
String cDataSourceName = "Bibliography"; String cDataSourceName = "Bibliography";
String cDataCommand = "biblio"; String cDataCommand = "biblio";
Object[] sel = new Object[2]; Object[] sel = new Object[2];
...@@ -129,7 +130,7 @@ public class SwXMailMerge extends TestCase { ...@@ -129,7 +130,7 @@ public class SwXMailMerge extends TestCase {
// <create XResultSet> // <create XResultSet>
try { try {
oRowSet = (XInterface) Param.getMSF().createInstance oRowSet = (XInterface) ((XMultiServiceFactory)Param.getMSF()).createInstance
("com.sun.star.sdb.RowSet"); ("com.sun.star.sdb.RowSet");
} catch (com.sun.star.uno.Exception e) { } catch (com.sun.star.uno.Exception e) {
throw new StatusException("Can't create com.sun.star.sdb.RowSet", e); throw new StatusException("Can't create com.sun.star.sdb.RowSet", 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