summaryrefslogtreecommitdiff
path: root/sc/qa/complex/sc/CalcRTL.java
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:04:32 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:04:32 +0200
commitc9ac7489ec5fd4652f0cff09722561ba5a27bcda (patch)
treee9fb41b01f699d5a4202e719d5dc7e087fa701c1 /sc/qa/complex/sc/CalcRTL.java
parent69bb367315288b644439dc46d34743a2575a3527 (diff)
recreated tag libreoffice-3.3.0.4 which had these commits:
commit 5e369f0d3b306be13606c1558ecf7d0aac0048f4 (tag: refs/tags/libreoffice-3.3.0.4) Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 18 19:01:15 2011 +0100 Version 3.3.0.4, tag libreoffice-3.3.0.4 (3.3-rc4) commit 2df81fdef39f29be15dc0a6e12031916de963f08 Author: Kohei Yoshida <kyoshida@novell.com> Date: Thu Jan 13 11:18:07 2011 -0500 Reverting the merge commit 0fe55349b05fae496a86a3fa958d184f0453916c. I created a patch between before and after the merge commit, and reverse-applied it. This is because if you revert a merge commit in git you are denying all future merges from that branch. I wasn't sure if we really wanted that. Signed-off-by: Petr Mladek <pmladek@suse.cz> sc/inc/document.hxx | 22 +------ sc/inc/drwlayer.hxx | 2 +- sc/inc/table.hxx | 16 +----- sc/source/core/data/document.cxx | 7 +-- sc/source/core/data/drwlayer.cxx | 6 +- sc/source/core/data/table1.cxx | 38 ++++-------- sc/source/core/data/table2.cxx | 91 ++++++------------------------ sc/source/core/data/table3.cxx | 71 +---------------------- sc/source/filter/xml/xmlrowi.cxx | 17 +---- sc/source/ui/docshell/externalrefmgr.cxx | 7 +- sc/source/ui/view/dbfunc.cxx | 5 +- sc/source/ui/view/tabvwshe.cxx | 4 +- 12 files changed, 52 insertions(+), 234 deletions(-) commit 9ce94f52e8c404a5e19154d38c18a44281d961f0 Author: Kohei Yoshida <kyoshida@novell.com> Date: Thu Jan 13 11:04:14 2011 -0500 Revert "This is also part of the merge." This reverts commit 0fe55349b05fae496a86a3fa958d184f0453916c. Signed-off-by: Petr Mladek <pmladek@suse.cz> sc/source/core/data/table3.cxx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 1e03f54cc4f8939867869a3570f56d0645b515f5 Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 11 22:59:36 2011 +0100 Branch libreoffice-3-3-0 This is 'libreoffice-3-3-0' - the stable branch for the 3.3.0 release. Only very safe changes, reviewed by three people are allowed. If you want to commit more complicated fix for the next 3.3.x release, please use the 'libreoffice-3-3' branch. If you want to build something cool, unstable, and risky, use master.
Notes
Notes: split repo tag: calc_libreoffice-3.3.0.4
Diffstat (limited to 'sc/qa/complex/sc/CalcRTL.java')
-rw-r--r--sc/qa/complex/sc/CalcRTL.java98
1 files changed, 49 insertions, 49 deletions
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) {