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

INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED

2003/05/21 10:58:22 sg 1.1.8.1: #109819# prepare devide of runner
üst 42f27ca6
......@@ -2,9 +2,9 @@
*
* $RCSfile: SwXDocumentIndex.java,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change:$Date: 2003-01-27 18:18:39 $
* last change:$Date: 2003-05-27 13:43:59 $
*
* 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.beans.XPropertySet;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.text.XText;
import com.sun.star.text.XTextContent;
import com.sun.star.text.XTextCursor;
......@@ -108,7 +109,7 @@ public class SwXDocumentIndex 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 );
......@@ -139,7 +140,7 @@ public class SwXDocumentIndex extends TestCase {
XPropertySet xPS = null;
Object instance = null;
SOfficeFactory SOF = SOfficeFactory.getFactory(tParam.getMSF());
SOfficeFactory SOF = SOfficeFactory.getFactory((XMultiServiceFactory)tParam.getMSF());
log.println( "creating a test environment" );
try {
xTC = SOF.createIndex(xTextDoc, "com.sun.star.text.DocumentIndex");
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: SwXDocumentIndexMark.java,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change:$Date: 2003-01-27 18:18:39 $
* last change:$Date: 2003-05-27 13:44:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -108,7 +108,7 @@ public class SwXDocumentIndexMark 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 );
......@@ -139,7 +139,7 @@ public class SwXDocumentIndexMark extends TestCase {
XTextContent xTC = null;
log.println( "creating a test environment" );
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
XText oText = xTextDoc.getText();
XTextCursor oCursor = oText.createTextCursor();
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: SwXDocumentIndexes.java,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change:$Date: 2003-01-27 18:18:38 $
* last change:$Date: 2003-05-27 13:44:21 $
*
* 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.XDocumentIndexesSupplier;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.text.XText;
import com.sun.star.text.XTextContent;
import com.sun.star.text.XTextCursor;
......@@ -100,7 +101,7 @@ public class SwXDocumentIndexes 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 );
......@@ -129,7 +130,7 @@ public class SwXDocumentIndexes extends TestCase {
public TestEnvironment createTestEnvironment(
TestParameters tParam, PrintWriter log ) throws StatusException {
XInterface oObj = null;
SOfficeFactory SOF = SOfficeFactory.getFactory( tParam.getMSF() );
SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() );
log.println( "creating a test environment" );
XTextContent xTC = null;
......
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