summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java
diff options
context:
space:
mode:
authorStephan Wunderlich <sw@openoffice.org>2003-02-04 12:26:12 +0000
committerStephan Wunderlich <sw@openoffice.org>2003-02-04 12:26:12 +0000
commit61a89771d57e58d70e1d675047862846b94b1a88 (patch)
tree37d5a9c562920162ec83d6c9cbc47f6b1d676b7c /qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java
parent840c50f599e3c1748e4b238d2599a4e20e2ec9f8 (diff)
CHG: using AnyConverter instead of simple cast
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java
index 6714ac371547..c3138ca1a140 100644
--- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java
+++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_TextFieldEnumeration.java
@@ -2,9 +2,9 @@
*
* $RCSfile: ScIndexEnumeration_TextFieldEnumeration.java,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change:$Date: 2003-01-27 18:16:19 $
+ * last change:$Date: 2003-02-04 13:11:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -80,6 +80,9 @@ import lib.TestEnvironment;
import lib.TestParameters;
import util.SOfficeFactory;
+import com.sun.star.uno.AnyConverter;
+import com.sun.star.uno.Type;
+
/**
* Test for object that represents enumeration of a colection
* of text fields in a cell of a spreadsheet. <p>
@@ -155,7 +158,8 @@ public class ScIndexEnumeration_TextFieldEnumeration extends TestCase {
XSpreadsheets oSheets = xSheetDoc.getSheets() ;
XIndexAccess oIndexSheets = (XIndexAccess)
UnoRuntime.queryInterface(XIndexAccess.class, oSheets);
- XSpreadsheet oSheet = (XSpreadsheet)oIndexSheets.getByIndex(0);
+ XSpreadsheet oSheet = (XSpreadsheet) AnyConverter.toObject(
+ new Type(XSpreadsheet.class),oIndexSheets.getByIndex(0));
XCell oCell = oSheet.getCellByPosition(2,3);
oText = (XText)UnoRuntime.queryInterface(XText.class, oCell);