summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-27 12:43:02 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-27 12:43:02 +0000
commit24369d6350533420da7b4116c5999b55a115f8af (patch)
treee6af3c606d1fe71f2ed32b47576d56118c8f6491 /qadevOOo/tests/java/mod/_sw/SwXBookmark.java
parentINTEGRATION: CWS qadev6 (1.2.8); FILE MERGED (diff)
downloadcore-24369d6350533420da7b4116c5999b55a115f8af.tar.gz
core-24369d6350533420da7b4116c5999b55a115f8af.zip
INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED
2003/05/21 10:58:20 sg 1.1.8.1: #109819# prepare devide of runner
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXBookmark.java')
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXBookmark.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
index a546478222cd..4e114f93a1bc 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXBookmark.java
@@ -2,9 +2,9 @@
*
* $RCSfile: SwXBookmark.java,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change:$Date: 2003-01-27 18:18:41 $
+ * last change:$Date: 2003-05-27 13:43:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,6 +62,7 @@
package mod._sw;
import com.sun.star.text.XTextContent;
+import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.text.XTextDocument;
import com.sun.star.text.XTextRange;
import com.sun.star.uno.UnoRuntime;
@@ -102,7 +103,7 @@ public class SwXBookmark extends TestCase {
* Creates text 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 textdocument" );
xTextDoc = SOF.createTextDoc( null );
@@ -125,7 +126,7 @@ public class SwXBookmark extends TestCase {
* a bookmark, it is inserted to the text document.
*/
protected synchronized TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) {
- SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF());
XInterface oObj = null;
Object instance = null;
log.println( "creating a test environment" );