Kaydet (Commit) c71d672f authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS qadev15 (1.3.18); FILE MERGED

2003/12/18 17:20:25 sw 1.3.18.1: #114449#
üst 9eff4a09
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: UnoControlContainerModel.java,v $ * $RCSfile: UnoControlContainerModel.java,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change:$Date: 2003-09-08 13:04:51 $ * last change:$Date: 2004-01-05 20:45:59 $
* *
* 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
...@@ -60,16 +60,17 @@ ...@@ -60,16 +60,17 @@
************************************************************************/ ************************************************************************/
package mod._toolkit; package mod._toolkit;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.uno.XInterface;
import java.io.PrintWriter; import java.io.PrintWriter;
import lib.StatusException; import lib.StatusException;
import lib.TestCase; import lib.TestCase;
import lib.TestEnvironment; import lib.TestEnvironment;
import lib.TestParameters; import lib.TestParameters;
import util.utils;
import com.sun.star.lang.XMultiServiceFactory; import util.utils;
import com.sun.star.uno.XInterface;
public class UnoControlContainerModel extends TestCase { public class UnoControlContainerModel extends TestCase {
...@@ -78,8 +79,8 @@ public class UnoControlContainerModel extends TestCase { ...@@ -78,8 +79,8 @@ public class UnoControlContainerModel extends TestCase {
XInterface oObj = null; XInterface oObj = null;
try { try {
oObj = (XInterface) ( (XMultiServiceFactory) param.getMSF()) oObj = (XInterface) ((XMultiServiceFactory) param.getMSF()).createInstance(
.createInstance("com.sun.star.awt.UnoControlContainerModel"); "com.sun.star.awt.UnoControlContainerModel");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(log); e.printStackTrace(log);
throw new StatusException("Couldn't create " + throw new StatusException("Couldn't create " +
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: UnoControlCurrencyField.java,v $ * $RCSfile: UnoControlCurrencyField.java,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change:$Date: 2003-09-08 13:05:04 $ * last change:$Date: 2004-01-05 20:46:25 $
* *
* 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
...@@ -60,17 +60,6 @@ ...@@ -60,17 +60,6 @@
************************************************************************/ ************************************************************************/
package mod._toolkit; package mod._toolkit;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import util.FormTools;
import util.SOfficeFactory;
import util.WriterTools;
import util.utils;
import com.sun.star.awt.XControl; import com.sun.star.awt.XControl;
import com.sun.star.awt.XControlModel; import com.sun.star.awt.XControlModel;
import com.sun.star.awt.XDevice; import com.sun.star.awt.XDevice;
...@@ -88,12 +77,25 @@ import com.sun.star.uno.XInterface; ...@@ -88,12 +77,25 @@ import com.sun.star.uno.XInterface;
import com.sun.star.util.XCloseable; import com.sun.star.util.XCloseable;
import com.sun.star.view.XControlAccess; import com.sun.star.view.XControlAccess;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import util.FormTools;
import util.SOfficeFactory;
import util.WriterTools;
import util.utils;
public class UnoControlCurrencyField extends TestCase { public class UnoControlCurrencyField extends TestCase {
XTextDocument xTextDoc; XTextDocument xTextDoc;
protected void initialize(TestParameters Param, PrintWriter log) { protected void initialize(TestParameters Param, PrintWriter log) {
SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory) Param.getMSF()); SOfficeFactory SOF = SOfficeFactory.getFactory(
(XMultiServiceFactory) Param.getMSF());
try { try {
log.println("creating a textdocument"); log.println("creating a textdocument");
...@@ -108,15 +110,7 @@ public class UnoControlCurrencyField extends TestCase { ...@@ -108,15 +110,7 @@ public class UnoControlCurrencyField extends TestCase {
protected void cleanup(TestParameters tParam, PrintWriter log) { protected void cleanup(TestParameters tParam, PrintWriter log) {
log.println(" disposing xTextDoc "); log.println(" disposing xTextDoc ");
try { util.DesktopTools.closeDoc(xTextDoc);
XCloseable closer = (XCloseable) UnoRuntime.queryInterface(
XCloseable.class, xTextDoc);
closer.close(true);
} catch (com.sun.star.util.CloseVetoException e) {
log.println("couldn't close document");
} catch (com.sun.star.lang.DisposedException e) {
log.println("couldn't close document");
}
} }
protected TestEnvironment createTestEnvironment(TestParameters Param, protected TestEnvironment createTestEnvironment(TestParameters Param,
......
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