summaryrefslogtreecommitdiff
path: root/sc/qa/complex
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/complex')
-rwxr-xr-xsc/qa/complex/calcPreview/ViewForwarder.java2
-rwxr-xr-xsc/qa/complex/cellRanges/CheckXCellRangesQuery.java6
-rw-r--r--sc/qa/complex/dataPilot/CheckDataPilot.java2
-rw-r--r--sc/qa/complex/dataPilot/interfaceTests/beans/_XPropertySet.java14
-rw-r--r--sc/qa/complex/dataPilot/interfaceTests/container/_XNamed.java6
-rw-r--r--sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotDescriptor.java2
-rw-r--r--sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotTable.java8
-rw-r--r--sc/qa/complex/sc/CalcRTL.java98
8 files changed, 69 insertions, 69 deletions
diff --git a/sc/qa/complex/calcPreview/ViewForwarder.java b/sc/qa/complex/calcPreview/ViewForwarder.java
index 160dc1ebd20a..56fa3dc82e96 100755
--- a/sc/qa/complex/calcPreview/ViewForwarder.java
+++ b/sc/qa/complex/calcPreview/ViewForwarder.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
diff --git a/sc/qa/complex/cellRanges/CheckXCellRangesQuery.java b/sc/qa/complex/cellRanges/CheckXCellRangesQuery.java
index b23abe2d6a57..0a48e6584903 100755
--- a/sc/qa/complex/cellRanges/CheckXCellRangesQuery.java
+++ b/sc/qa/complex/cellRanges/CheckXCellRangesQuery.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
@@ -48,7 +48,7 @@ import java.io.PrintWriter;
import util.SOfficeFactory;
/**
- * Check the XCellRangesQuery interface on the SheetCell service. test was
+ * Check the XCellRangesQuery interface on the SheetCell service. test was
* created for bug i20044.
*/
public class CheckXCellRangesQuery extends ComplexTestCase {
@@ -65,7 +65,7 @@ public class CheckXCellRangesQuery extends ComplexTestCase {
}
/**
- * Creates Spreadsheet document and the test object,
+ * Creates Spreadsheet document and the test object,
* before the actual test starts.
*/
public void before() {
diff --git a/sc/qa/complex/dataPilot/CheckDataPilot.java b/sc/qa/complex/dataPilot/CheckDataPilot.java
index d013daa24e1f..8774bdd7c33b 100644
--- a/sc/qa/complex/dataPilot/CheckDataPilot.java
+++ b/sc/qa/complex/dataPilot/CheckDataPilot.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
diff --git a/sc/qa/complex/dataPilot/interfaceTests/beans/_XPropertySet.java b/sc/qa/complex/dataPilot/interfaceTests/beans/_XPropertySet.java
index 57d6474f51b8..09e4d7e6eeb1 100644
--- a/sc/qa/complex/dataPilot/interfaceTests/beans/_XPropertySet.java
+++ b/sc/qa/complex/dataPilot/interfaceTests/beans/_XPropertySet.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
@@ -63,7 +63,7 @@ public class _XPropertySet {
* The object that is testsed.
*/
private XPropertySet oObj = null;
-
+
/**
* The test parameters
*/
@@ -79,7 +79,7 @@ public class _XPropertySet {
*/
boolean propertyChanged = false;
-
+
/**
* The own property change listener
*/
@@ -149,7 +149,7 @@ public class _XPropertySet {
this.log = log;
this.param = param;
}
-
+
/**
* Tests method <code>getPropertySetInfo</code>. After test completed
* call {@link #getPropsToTest} method to retrieve different kinds
@@ -250,7 +250,7 @@ public class _XPropertySet {
vetoableChanged = false;
boolean result = true;
-
+
if ( PTT.constrained.equals("none") ) {
log.println("*** No constrained properties found ***");
} else {
@@ -306,7 +306,7 @@ public class _XPropertySet {
Object gValue = null;
Object sValue = null;
-
+
boolean result = true;
if ( PTT.normal.equals("none") ) {
@@ -400,7 +400,7 @@ public class _XPropertySet {
propertyChanged = false;
boolean result = true;
-
+
if ( PTT.bound.equals("none") ) {
log.println("*** No bound properties found ***");
} else {
diff --git a/sc/qa/complex/dataPilot/interfaceTests/container/_XNamed.java b/sc/qa/complex/dataPilot/interfaceTests/container/_XNamed.java
index 97763be2b199..b38659a9729d 100644
--- a/sc/qa/complex/dataPilot/interfaceTests/container/_XNamed.java
+++ b/sc/qa/complex/dataPilot/interfaceTests/container/_XNamed.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
@@ -54,7 +54,7 @@ public class _XNamed {
/**
* The object that is testsed.
*/
- public XNamed oObj = null;
+ public XNamed oObj = null;
/**
* The test parameters
@@ -65,7 +65,7 @@ public class _XNamed {
* The log writer
*/
private LogWriter log = null;
-
+
/**
* Constructor: gets the object to test, a logger and the test parameters
* @param xObj The test object
diff --git a/sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotDescriptor.java b/sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotDescriptor.java
index 8358e5bb6106..d5651b604379 100644
--- a/sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotDescriptor.java
+++ b/sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotDescriptor.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
diff --git a/sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotTable.java b/sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotTable.java
index d7f6e81b91e5..9fa0abf0baa3 100644
--- a/sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotTable.java
+++ b/sc/qa/complex/dataPilot/interfaceTests/sheet/_XDataPilotTable.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
@@ -62,7 +62,7 @@ public class _XDataPilotTable {
XCell xCellForCheck = null;
CellAddress OutputRange = null;
int changeValue = 0;
-
+
/**
* The test parameters
*/
@@ -72,14 +72,14 @@ public class _XDataPilotTable {
* The log writer
*/
private LogWriter log = null;
-
+
/**
* Constructor: gets the object to test, a logger and the test parameters
* @param xObj The test object
* @param log A log writer
* @param param The test parameters
*/
- public _XDataPilotTable(XDataPilotTable xObj,
+ public _XDataPilotTable(XDataPilotTable xObj,
LogWriter log, TestParameters param) {
oObj = xObj;
this.log = log;
diff --git a/sc/qa/complex/sc/CalcRTL.java b/sc/qa/complex/sc/CalcRTL.java
index 9528c34b9267..fb39b7ca069c 100644
--- a/sc/qa/complex/sc/CalcRTL.java
+++ b/sc/qa/complex/sc/CalcRTL.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
@@ -76,7 +76,7 @@ public class CalcRTL extends ComplexTestCase {
*/
public String[] getTestMethodNames() {
return new String[] {
- "checkSpreadsheetProperties", "checkShapeProperties",
+ "checkSpreadsheetProperties", "checkShapeProperties",
"checkInfluenceOfSpreadsheetChange"
};
}
@@ -97,19 +97,19 @@ public class CalcRTL extends ComplexTestCase {
XPropertySet set = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, getSpreadsheet());
- assure("Problems when setting property 'IsVisible'",
+ assure("Problems when setting property 'IsVisible'",
changeProperty(set, "IsVisible", Boolean.FALSE));
- assure("Problems when setting property 'IsVisible'",
+ assure("Problems when setting property 'IsVisible'",
changeProperty(set, "IsVisible", Boolean.TRUE));
- assure("Problems when setting property 'PageStyle'",
+ assure("Problems when setting property 'PageStyle'",
changeProperty(set, "PageStyle", "Report"));
- assure("Problems when setting property 'PageStyle'",
+ assure("Problems when setting property 'PageStyle'",
changeProperty(set, "PageStyle", "Default"));
- assure("Problems when setting property 'TableLayout'",
- changeProperty(set, "TableLayout",
+ assure("Problems when setting property 'TableLayout'",
+ changeProperty(set, "TableLayout",
new Short(com.sun.star.text.WritingMode2.RL_TB)));
- assure("Problems when setting property 'TableLayout'",
- changeProperty(set, "TableLayout",
+ assure("Problems when setting property 'TableLayout'",
+ changeProperty(set, "TableLayout",
new Short(com.sun.star.text.WritingMode2.LR_TB)));
assure("Couldn't close document", closeSpreadsheetDocument());
}
@@ -132,17 +132,17 @@ public class CalcRTL extends ComplexTestCase {
XPropertySet.class, getInsertedShape());
try {
- assure("Problems when setting property 'Anchor'",
- changeProperty(set, "Anchor",
+ assure("Problems when setting property 'Anchor'",
+ changeProperty(set, "Anchor",
getSpreadsheet().getCellByPosition(5, 5)));
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
assure("Problems when setting property 'Anchor'", false);
}
- assure("Problems when setting property 'HoriOrientPosition'",
+ assure("Problems when setting property 'HoriOrientPosition'",
changeProperty(set, "HoriOrientPosition", new Integer(1000)));
- assure("Problems when setting property 'VertOrientPosition'",
+ assure("Problems when setting property 'VertOrientPosition'",
changeProperty(set, "VertOrientPosition", new Integer(1000)));
assure("Couldn't close document", closeSpreadsheetDocument());
@@ -158,31 +158,31 @@ public class CalcRTL extends ComplexTestCase {
XPropertySet.class, oShape);
String[] previous = getShapeProps(shapeProps, oShape);
- assure("Problems when setting property 'TableLayout'",
- changeProperty(sheetProps, "TableLayout",
+ assure("Problems when setting property 'TableLayout'",
+ changeProperty(sheetProps, "TableLayout",
new Short(com.sun.star.text.WritingMode2.RL_TB)));
String[] RL_TB = getShapeProps(shapeProps, oShape);
- assure("Problems when setting property 'TableLayout'",
- changeProperty(sheetProps, "TableLayout",
+ assure("Problems when setting property 'TableLayout'",
+ changeProperty(sheetProps, "TableLayout",
new Short(com.sun.star.text.WritingMode2.LR_TB)));
String[] LR_TB = getShapeProps(shapeProps, oShape);
- assure("Anchor has changed",
+ assure("Anchor has changed",
(previous[0].equals(RL_TB[0]) && previous[0].equals(LR_TB[0])));
- assure("HoriOrientPosition has changed",
+ assure("HoriOrientPosition has changed",
(Integer.valueOf(previous[1]).intValue() + Integer.valueOf(
RL_TB[1])
- .intValue() +
+ .intValue() +
Integer.valueOf(LR_TB[1]).intValue() == 2099));
- assure("VertOrientPosition has changed",
+ assure("VertOrientPosition has changed",
(Integer.valueOf(previous[2]).intValue() + Integer.valueOf(
RL_TB[2])
- .intValue() +
+ .intValue() +
Integer.valueOf(LR_TB[2]).intValue() == 3*Integer.valueOf(previous[2]).intValue()));
- assure("x-position hasn't changed",
- (previous[3].equals(LR_TB[3]) &&
- ((Integer.valueOf(previous[3]).intValue() * (-1)) -
+ assure("x-position hasn't changed",
+ (previous[3].equals(LR_TB[3]) &&
+ ((Integer.valueOf(previous[3]).intValue() * (-1)) -
oShape.getSize().Width != Integer.valueOf(LR_TB[2])
.intValue())));
assure("Couldn't close document", closeSpreadsheetDocument());
@@ -203,7 +203,7 @@ public class CalcRTL extends ComplexTestCase {
log.println("\t Anchor :" + reValue[0]);
log.println("\t HoriOrientPosition :" + reValue[1]);
log.println("\t VertOrientPosition :" + reValue[2]);
- log.println("\t Shape Position (x,y) : (" + oShape.getPosition().X +
+ log.println("\t Shape Position (x,y) : (" + oShape.getPosition().X +
"," + oShape.getPosition().Y + ")");
return reValue;
@@ -292,7 +292,7 @@ public class CalcRTL extends ComplexTestCase {
* @param pName : The name of the Property that has to be changed
* @param pValue : The value, the property should be changed too.
*/
- protected boolean changeProperty(XPropertySet set, String pName,
+ protected boolean changeProperty(XPropertySet set, String pName,
Object pValue) {
boolean worked = true;
@@ -322,10 +322,10 @@ public class CalcRTL extends ComplexTestCase {
// checking results
- worked = checkResult(set, pName, oldValue, pValue, resValue,
+ worked = checkResult(set, pName, oldValue, pValue, resValue,
exception);
} catch (Exception e) {
- System.out.println("Exception occured while testing property '" +
+ System.out.println("Exception occured while testing property '" +
pName + "'");
e.printStackTrace();
worked = false;
@@ -344,8 +344,8 @@ public class CalcRTL extends ComplexTestCase {
* @param resValue : the value getPropertyValue returned for the property
* @param exception : the exeption thrown during the change of the property
*/
- protected boolean checkResult(XPropertySet set, String propName,
- Object oldValue, Object newValue,
+ protected boolean checkResult(XPropertySet set, String propName,
+ Object oldValue, Object newValue,
Object resValue, Exception exception)
throws Exception {
XPropertySetInfo info = set.getPropertySetInfo();
@@ -373,7 +373,7 @@ public class CalcRTL extends ComplexTestCase {
return false;
} else if (oldValue == null) {
- log.println(propName +
+ log.println(propName +
" has null value, and therefore can't be changed");
return true;
@@ -411,14 +411,14 @@ public class CalcRTL extends ComplexTestCase {
// if no exception - check that value
// has not changed
if (!ValueComparer.equalValue(resValue, oldValue)) {
- log.println("Read only property '" + propName +
+ log.println("Read only property '" + propName +
"' has changed");
try {
- if (!util.utils.isVoid(oldValue) &&
+ if (!util.utils.isVoid(oldValue) &&
oldValue instanceof Any) {
oldValue = AnyConverter.toObject(
- new Type(((Any) oldValue).getClass()),
+ new Type(((Any) oldValue).getClass()),
oldValue);
}
@@ -430,7 +430,7 @@ public class CalcRTL extends ComplexTestCase {
return false;
} else {
- log.println("Read only property '" + propName +
+ log.println("Read only property '" + propName +
"' hasn't changed");
log.println("Property '" + propName + "' OK");
@@ -441,16 +441,16 @@ public class CalcRTL extends ComplexTestCase {
if (exception == null) {
// if no exception thrown
// check that the new value is set
- if ((!ValueComparer.equalValue(resValue, newValue)) ||
+ if ((!ValueComparer.equalValue(resValue, newValue)) ||
(ValueComparer.equalValue(resValue, oldValue))) {
- log.println("Value for '" + propName +
+ log.println("Value for '" + propName +
"' hasn't changed as expected");
try {
- if (!util.utils.isVoid(oldValue) &&
+ if (!util.utils.isVoid(oldValue) &&
oldValue instanceof Any) {
oldValue = AnyConverter.toObject(
- new Type(((Any) oldValue).getClass()),
+ new Type(((Any) oldValue).getClass()),
oldValue);
}
@@ -461,7 +461,7 @@ public class CalcRTL extends ComplexTestCase {
}
if (resValue != null) {
- if ((!ValueComparer.equalValue(resValue, oldValue)) ||
+ if ((!ValueComparer.equalValue(resValue, oldValue)) ||
(!resValue.equals(oldValue))) {
log.println("But it has changed.");
@@ -478,10 +478,10 @@ public class CalcRTL extends ComplexTestCase {
log.println("Property '" + propName + "' OK");
try {
- if (!util.utils.isVoid(oldValue) &&
+ if (!util.utils.isVoid(oldValue) &&
oldValue instanceof Any) {
oldValue = AnyConverter.toObject(
- new Type(((Any) oldValue).getClass()),
+ new Type(((Any) oldValue).getClass()),
oldValue);
}
@@ -515,9 +515,9 @@ public class CalcRTL extends ComplexTestCase {
if (UnoRuntime.queryInterface(XCellRangeAddressable.class, obj) != null) {
XCellRangeAddressable aCell = (XCellRangeAddressable) UnoRuntime.queryInterface(
- XCellRangeAddressable.class,
+ XCellRangeAddressable.class,
obj);
- value = "Cell in Column " + aCell.getRangeAddress().StartColumn +
+ value = "Cell in Column " + aCell.getRangeAddress().StartColumn +
" and Row " + aCell.getRangeAddress().StartRow;
} else {
return obj;
@@ -536,18 +536,18 @@ public class CalcRTL extends ComplexTestCase {
log.println("getting Drawpages");
XDrawPagesSupplier oDPS = (XDrawPagesSupplier) UnoRuntime.queryInterface(
- XDrawPagesSupplier.class,
+ XDrawPagesSupplier.class,
xSheetDoc);
XDrawPages oDP = (XDrawPages) oDPS.getDrawPages();
XDrawPage firstDrawPage = (XDrawPage) UnoRuntime.queryInterface(
- XDrawPage.class,
+ XDrawPage.class,
oDP.getByIndex(0));
SOfficeFactory SOF = SOfficeFactory.getFactory(
(XMultiServiceFactory) param.getMSF());
XComponent xComp = (XComponent) UnoRuntime.queryInterface(
XComponent.class, xSheetDoc);
- insertedShape = SOF.createShape(xComp, 5000, 3500, 700, 500,
+ insertedShape = SOF.createShape(xComp, 5000, 3500, 700, 500,
"Rectangle");
DrawTools.getShapes(firstDrawPage).add(insertedShape);
} catch (com.sun.star.lang.WrappedTargetException e) {