Kaydet (Commit) aae50540 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS qadev11 (1.2.14); FILE MERGED

2003/09/03 15:35:47 sw 1.2.14.1: #112049#
üst 21a384a8
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLSettingsImporter.java,v $ * $RCSfile: XMLSettingsImporter.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-05-27 14:14:59 $ * last change:$Date: 2003-09-08 13:18:52 $
* *
* 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
...@@ -61,20 +61,21 @@ ...@@ -61,20 +61,21 @@
package mod._xmloff.Impress; package mod._xmloff.Impress;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import util.SOfficeFactory;
import com.sun.star.beans.XPropertySet; import com.sun.star.beans.XPropertySet;
import com.sun.star.document.XImporter;
import com.sun.star.frame.XController; import com.sun.star.frame.XController;
import com.sun.star.frame.XModel; import com.sun.star.frame.XModel;
import com.sun.star.lang.XComponent; import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import util.SOfficeFactory;
/** /**
* Test for object which is represented by service * Test for object which is represented by service
...@@ -155,7 +156,6 @@ public class XMLSettingsImporter extends TestCase { ...@@ -155,7 +156,6 @@ public class XMLSettingsImporter extends TestCase {
XInterface oObj = null; XInterface oObj = null;
Object oInt = null ; Object oInt = null ;
final String impValue = "XMLImporter_test" ;
// creation of testobject here // creation of testobject here
// first we write what we are intend to do to log file // first we write what we are intend to do to log file
...@@ -166,9 +166,7 @@ public class XMLSettingsImporter extends TestCase { ...@@ -166,9 +166,7 @@ public class XMLSettingsImporter extends TestCase {
try { try {
oInt = xMSF.createInstance oInt = xMSF.createInstance
("com.sun.star.comp.Impress.XMLSettingsImporter") ; ("com.sun.star.comp.Impress.XMLSettingsImporter") ;
XImporter imp = (XImporter)
UnoRuntime.queryInterface(XImporter.class, oInt) ;
//imp.setTargetDocument(xImpressDoc);
} catch (com.sun.star.uno.Exception e) { } catch (com.sun.star.uno.Exception e) {
e.printStackTrace(log) ; e.printStackTrace(log) ;
throw new StatusException("Can't create component.", e) ; throw new StatusException("Can't create component.", e) ;
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLStylesExporter.java,v $ * $RCSfile: XMLStylesExporter.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-05-27 14:15:10 $ * last change:$Date: 2003-09-08 13:19:02 $
* *
* 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
...@@ -61,6 +61,15 @@ ...@@ -61,6 +61,15 @@
package mod._xmloff.Impress; package mod._xmloff.Impress;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import util.SOfficeFactory;
import util.XMLTools;
import com.sun.star.container.XNameAccess; import com.sun.star.container.XNameAccess;
import com.sun.star.container.XNameContainer; import com.sun.star.container.XNameContainer;
import com.sun.star.document.XExporter; import com.sun.star.document.XExporter;
...@@ -74,13 +83,6 @@ import com.sun.star.uno.Type; ...@@ -74,13 +83,6 @@ import com.sun.star.uno.Type;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import com.sun.star.xml.sax.XDocumentHandler; import com.sun.star.xml.sax.XDocumentHandler;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import util.SOfficeFactory;
import util.XMLTools;
/** /**
* Test for object which is represented by service * Test for object which is represented by service
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLStylesImporter.java,v $ * $RCSfile: XMLStylesImporter.java,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change:$Date: 2003-05-27 14:15:20 $ * last change:$Date: 2003-09-08 13:19:13 $
* *
* 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
...@@ -61,6 +61,14 @@ ...@@ -61,6 +61,14 @@
package mod._xmloff.Impress; package mod._xmloff.Impress;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import util.SOfficeFactory;
import com.sun.star.container.XNameAccess; import com.sun.star.container.XNameAccess;
import com.sun.star.document.XImporter; import com.sun.star.document.XImporter;
import com.sun.star.lang.XComponent; import com.sun.star.lang.XComponent;
...@@ -68,12 +76,6 @@ import com.sun.star.lang.XMultiServiceFactory; ...@@ -68,12 +76,6 @@ import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.style.XStyleFamiliesSupplier; import com.sun.star.style.XStyleFamiliesSupplier;
import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import util.SOfficeFactory;
/** /**
* Test for object which is represented by service * Test for object which is represented by service
...@@ -165,9 +167,7 @@ public class XMLStylesImporter extends TestCase { ...@@ -165,9 +167,7 @@ public class XMLStylesImporter extends TestCase {
try { try {
oInt = xMSF.createInstance oInt = xMSF.createInstance
("com.sun.star.comp.Impress.XMLStylesImporter") ; ("com.sun.star.comp.Impress.XMLStylesImporter") ;
XImporter imp = (XImporter) UnoRuntime.queryInterface
(XImporter.class, oInt) ;
//imp.setTargetDocument(xImpressDoc);
} catch (com.sun.star.uno.Exception e) { } catch (com.sun.star.uno.Exception e) {
e.printStackTrace(log) ; e.printStackTrace(log) ;
throw new StatusException("Can't create component.", e) ; throw new StatusException("Can't create component.", 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