diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-04-24 13:06:41 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-04-24 13:06:41 +0000 |
commit | 1f76c268a10c32eff03245ff466e8e3ce82c3482 (patch) | |
tree | 33559f415bde92dfc7a117e984531ec05b4b1533 /odk | |
parent | 293e4e130fff781718d1fd0a2f047497ba690c03 (diff) |
INTEGRATION: CWS uno3 (1.5.10); FILE MERGED
2003/04/17 09:51:40 jsc 1.5.10.1: #108996# remove merged cells and extend docu
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/java/ToDo/ToDo.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/odk/examples/java/ToDo/ToDo.java b/odk/examples/java/ToDo/ToDo.java index e70d80bf088a..a96274f880b8 100644 --- a/odk/examples/java/ToDo/ToDo.java +++ b/odk/examples/java/ToDo/ToDo.java @@ -23,6 +23,7 @@ import com.sun.star.table.XCell; import com.sun.star.table.CellAddress; import com.sun.star.table.CellRangeAddress; import com.sun.star.table.XColumnRowRange; +import com.sun.star.table.XTableRows; import com.sun.star.beans.XPropertySet; import com.sun.star.text.XTextRange; import com.sun.star.text.XSimpleText; @@ -111,10 +112,10 @@ public class ToDo { static private final int INT_COLUMN_DUEDATE = 7; static private final int INT_COLUMN_STATUS = 8; - static private final int INT_ROW_FROM = 8; + static private final int INT_ROW_FROM = 14; // 8 - static private final int INT_ROW_HOLIDAYS_START = 3; - static private final int INT_COLUMN_HOLIDAYS_START = 10; + static private final int INT_ROW_HOLIDAYS_START = 4; + static private final int INT_COLUMN_HOLIDAYS_START = 7; // 10 static private final String STRING_SEPARATOR = "."; @@ -489,7 +490,8 @@ public class ToDo { UnoRuntime.queryInterface( XColumnRowRange.class, xcellrange ); // Inserting one row to the table - xcolumnrowrange.getRows().insertByIndex( intRowToInsert, 1 ); + XTableRows xTableRows = xcolumnrowrange.getRows(); + xTableRows.insertByIndex( intRowToInsert, 1 ); // Querying for the interface XCellRangeMovement on XCellRange XCellRangeMovement xcellrangemovement = ( XCellRangeMovement ) @@ -538,7 +540,7 @@ public class ToDo { } } catch( Exception exception ) { - this.showExceptionMessage( exception ); + showExceptionMessage( exception ); } } |