diff options
Diffstat (limited to 'qadevOOo/runner/util/CalcTools.java')
-rw-r--r-- | qadevOOo/runner/util/CalcTools.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/qadevOOo/runner/util/CalcTools.java b/qadevOOo/runner/util/CalcTools.java index 08a8b945839a..f5c91af06dce 100644 --- a/qadevOOo/runner/util/CalcTools.java +++ b/qadevOOo/runner/util/CalcTools.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,9 +48,9 @@ import com.sun.star.uno.UnoRuntime; * and its sheets. */ public class CalcTools { - + /** - * fills a range of a calc sheet with computed data of type + * fills a range of a calc sheet with computed data of type * <CODE>Double</CODE>. * @param xSheetDoc the Clac documents wich should be filled * @param sheetNumber the number of the sheet of <CODE>xSheetDoc</CODE> @@ -72,10 +72,10 @@ public class CalcTools { throw new Exception( "Couldn't fill CalcSheet with content: " + e.toString()); } - } - + } + /** - * fills a range of a calc sheet with computed data of type + * fills a range of a calc sheet with computed data of type * <CODE>Double</CODE>. * @param xSheet the sheet to fill with content * @param startCellX the cell number of the X start point (row) of the range to fill @@ -84,10 +84,10 @@ public class CalcTools { * @param rangeLengthY the size of the range expansion in Y-direction * @throws java.lang.Exception on any error an <CODE>java.lang.Exception</CODE> was thrown */ - public static void fillCalcSheetWithContent(XSpreadsheet xSheet, + public static void fillCalcSheetWithContent(XSpreadsheet xSheet, int startCellX, int startCellY, int rangeLengthX, int rangeLengthY) throws java.lang.Exception { - + try{ // create a range with content Object[][] newData = new Object[rangeLengthY][rangeLengthX]; @@ -98,7 +98,7 @@ public class CalcTools { } XCellRange xRange = null; try { - xRange = xSheet.getCellRangeByPosition(startCellX, startCellY, + xRange = xSheet.getCellRangeByPosition(startCellX, startCellY, startCellX+rangeLengthX-1, startCellY+rangeLengthY-1); } catch ( IndexOutOfBoundsException e){ throw new Exception( @@ -113,9 +113,9 @@ public class CalcTools { "Couldn't fill CalcSheet with content: " + e.toString()); } } - + /** - * + * * returns an <CODE>XSpreadsheet</CODE> from a Calc document. * @param xSheetDoc the Calc docuent which containes the sheet * @param sheetNumber the number of the sheet to return @@ -125,7 +125,7 @@ public class CalcTools { */ public static XSpreadsheet getSpreadSheetFromSheetDoc(XComponent xSheetDoc, int sheetNumber) throws java.lang.Exception { - + XSpreadsheet xSheet = null; try{ @@ -154,7 +154,7 @@ public class CalcTools { } catch (Exception e){ throw new Exception( "Couldn't get sheet '" +sheetNumber + "' : " + e.toString()); - } + } return xSheet; } } |