summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java')
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java
index eac4a5a31d10..082bcd42fb74 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ import com.sun.star.uno.UnoRuntime;
* <ul>
* <li>"SHEET": an XSpreadSheet object
* </li>
- * <li>"XCellRangesQuery.EXPECTEDRESULTS": the expected results for the test
+ * <li>"XCellRangesQuery.EXPECTEDRESULTS": the expected results for the test
* methods as a String array.<br>
* @see mod._sc.ScCellCurserObj or
* @see mod._sc.ScCellObj for an example how this should look like.
@@ -73,7 +73,7 @@ public class _XCellRangesQuery extends MultiMethodTest {
public static final int QUERYINTERSECTION = 4;
public static final int QUERYROWDIFFERENCES = 5;
public static final int QUERYVISIBLECELLS = 6;
-
+
protected void before() {
oSheet = (XSpreadsheet) tEnv.getObjRelation("SHEET");
@@ -94,13 +94,13 @@ public class _XCellRangesQuery extends MultiMethodTest {
"XCellRangesQuery.EXPECTEDRESULTS");
XColumnRowRange oColumnRowRange = (XColumnRowRange) UnoRuntime.queryInterface(
- XColumnRowRange.class,
+ XColumnRowRange.class,
oSheet);
oRows = (XTableRows)oColumnRowRange.getRows();
oColumns = (XTableColumns) oColumnRowRange.getColumns();
- // set this in object if the interface has to make its own settings
- // and the environment has to be disposed: this is necessary for objects
+ // set this in object if the interface has to make its own settings
+ // and the environment has to be disposed: this is necessary for objects
// that do not make entries on the sheet themselves
Object o = tEnv.getObjRelation("XCellRangesQuery.CREATEENTRIES");
if (o != null && o instanceof Boolean) {
@@ -116,7 +116,7 @@ public class _XCellRangesQuery extends MultiMethodTest {
oSheet.getCellByPosition(2, 1).setFormula("=B2+B3");
oSheet.getCellByPosition(1, 3).setFormula("=B2+B4");
oSheet.getCellByPosition(3, 2).setFormula("");
- oSheet.getCellByPosition(3, 3).setFormula("");
+ oSheet.getCellByPosition(3, 3).setFormula("");
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
log.println("Couldn't fill cells " + e.getLocalizedMessage());
}
@@ -125,7 +125,7 @@ public class _XCellRangesQuery extends MultiMethodTest {
}
/**
- * Tested method returns each cell of each column that is different to the
+ * Tested method returns each cell of each column that is different to the
* cell in a given row
*/
public void _queryColumnDifferences() {
@@ -145,7 +145,7 @@ public class _XCellRangesQuery extends MultiMethodTest {
}
/**
- * Tested method returns all cells of a given type, defind in
+ * Tested method returns all cells of a given type, defind in
* CellFlags
* @see com.sun.star.sheet.CellFlags
*/
@@ -173,17 +173,17 @@ public class _XCellRangesQuery extends MultiMethodTest {
XSheetCellRanges ranges = oObj.queryEmptyCells();
getting = ranges.getRangeAddressesAsString();
expected = mExpectedResults[QUERYEMPTYCELLS];
-
+
int startIndex = 0;
int endIndex = -5;
String checkString = null;
-
+
while (endIndex != -1) {
startIndex = endIndex + 5;
endIndex = expected.indexOf(" ... ", startIndex);
if (endIndex == -1) {
checkString = expected.substring(startIndex);
- }
+ }
else {
checkString = expected.substring(startIndex, endIndex);
}
@@ -199,7 +199,7 @@ public class _XCellRangesQuery extends MultiMethodTest {
}
/**
- * Tested method returns all cells of a given type, defind in
+ * Tested method returns all cells of a given type, defind in
* FormulaResult
* @see com.sun.star.sheet.FormulaResult
*/
@@ -236,7 +236,7 @@ public class _XCellRangesQuery extends MultiMethodTest {
}
/**
- * Tested method returns each cell of each row that is different to the
+ * Tested method returns each cell of each row that is different to the
* cell in a given column
*/
public void _queryRowDifferences() {
@@ -276,22 +276,22 @@ public class _XCellRangesQuery extends MultiMethodTest {
protected void setRowVisible(boolean vis) {
try {
XPropertySet rowProp = (XPropertySet) UnoRuntime.queryInterface(
- XPropertySet.class,
+ XPropertySet.class,
oRows.getByIndex(0));
rowProp.setPropertyValue("IsVisible", new Boolean(vis));
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
log.println("couldn't get Row " + e.getLocalizedMessage());
} catch (com.sun.star.lang.WrappedTargetException e) {
- log.println("problems setting Property 'isVisible' " +
+ log.println("problems setting Property 'isVisible' " +
e.getLocalizedMessage());
} catch (com.sun.star.beans.UnknownPropertyException e) {
- log.println("problems setting Property 'isVisible' " +
+ log.println("problems setting Property 'isVisible' " +
e.getLocalizedMessage());
} catch (com.sun.star.beans.PropertyVetoException e) {
- log.println("problems setting Property 'isVisible' " +
+ log.println("problems setting Property 'isVisible' " +
e.getLocalizedMessage());
} catch (com.sun.star.lang.IllegalArgumentException e) {
- log.println("problems setting Property 'isVisible' " +
+ log.println("problems setting Property 'isVisible' " +
e.getLocalizedMessage());
}
}