diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java b/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java index 2a69cb7e0404..b48e55d414d1 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.java +++ b/qadevOOo/tests/java/ifc/sheet/_XSheetOutline.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 @@ -44,7 +44,7 @@ public class _XSheetOutline extends MultiMethodTest { public XSheetOutline oObj = null; CellRangeAddress address = null; CellRangeAddress subaddress = null; - + public void before() { address = (CellRangeAddress)tEnv.getObjRelation("CellRangeAddress"); subaddress = (CellRangeAddress)tEnv.getObjRelation("CellRangeSubAddress"); @@ -53,7 +53,7 @@ public class _XSheetOutline extends MultiMethodTest { if (subaddress == null) throw new StatusException(Status.failed("Object relation CellRangeSubAddress not found")); } - + public void _autoOutline() { executeMethod("ungroup()"); boolean result = false; @@ -65,7 +65,7 @@ public class _XSheetOutline extends MultiMethodTest { result &= !isCellShown(subaddress); tRes.tested("autoOutline()", result); } - + public void _clearOutline() { executeMethod("autoOutline()"); boolean result = false; @@ -75,13 +75,13 @@ public class _XSheetOutline extends MultiMethodTest { result &= isCellShown(subaddress); tRes.tested("clearOutline()", result); } - + public void _group() { oObj.group(address, TableOrientation.COLUMNS); oObj.group(address, TableOrientation.ROWS); tRes.tested("group()", true); } - + public void _ungroup() { executeMethod("showDetail()"); oObj.ungroup(address, TableOrientation.COLUMNS); @@ -95,13 +95,13 @@ public class _XSheetOutline extends MultiMethodTest { oObj.hideDetail(address); tRes.tested("hideDetail()", !isCellShown(address)); } - + public void _showDetail() { executeMethod("showLevel()"); oObj.showDetail(address); tRes.tested("showDetail()", isCellShown(address)); } - + public void _showLevel() { executeMethod("hideDetail()"); boolean result = false; @@ -110,11 +110,11 @@ public class _XSheetOutline extends MultiMethodTest { result = isCellShown(address); oObj.showLevel((short)0, TableOrientation.COLUMNS); oObj.showLevel((short)0, TableOrientation.ROWS); - + result &= !isCellShown(address); tRes.tested("showLevel()", result); } - + private boolean isCellShown(CellRangeAddress range) { boolean isNotShown = true; XCellRangesQuery xCellRangesQuery = (XCellRangesQuery)UnoRuntime.queryInterface(XCellRangesQuery.class, oObj); @@ -131,9 +131,9 @@ public class _XSheetOutline extends MultiMethodTest { } return !isNotShown; } - + private boolean dotIsOutsideRange(int dotRow, int dotColumn, CellRangeAddress range) { - log.println("Checking dot(" + dotRow + "," + dotColumn + ") against row[" + log.println("Checking dot(" + dotRow + "," + dotColumn + ") against row[" + range.StartRow + ":" + range.EndRow + "] column[" + range.StartColumn + ":" + range.EndColumn + "]"); boolean isInside = true; |