Exemplo n.º 1
0
 /** returns the sheet with the given index */
 public XCellRange getSheet(int index) throws com.sun.star.uno.Exception {
   XIndexAccess sheets = UnoRuntime.queryInterface(XIndexAccess.class, getSheets());
   return UnoRuntime.queryInterface(XCellRange.class, sheets.getByIndex(index));
 }
Exemplo n.º 2
0
 /** returns the sheets collection */
 public XSpreadsheets getSheets() {
   XSpreadsheetDocument spreadsheetDoc =
       UnoRuntime.queryInterface(XSpreadsheetDocument.class, getDocument());
   return spreadsheetDoc.getSheets();
 }