Examples of XTableRows


Examples of com.sun.star.table.XTableRows

    if (textTableCellRange == null)
      return false;
    try {
      XTextTable xTextTable = (XTextTable) textTableCellRange.getCell(0,
          0).getTextTable().getXTextContent();
      XTableRows tableRows = xTextTable.getRows();
      int rowIndex = textTableCellRange.getRangeName()
          .getRangeStartRowIndex();
      Object row = tableRows.getByIndex(rowIndex);
      XPropertySet propertySetRow = (XPropertySet) UnoRuntime
          .queryInterface(XPropertySet.class, row);
      Boolean rowAutoHeight = (Boolean) propertySetRow
          .getPropertyValue("IsAutoHeight");
      return rowAutoHeight.booleanValue();
View Full Code Here

Examples of com.sun.star.table.XTableRows

    if (textTableCellRange == null)
      return;
    try {
      XTextTable xTextTable = (XTextTable) textTableCellRange.getCell(0,
          0).getTextTable().getXTextContent();
      XTableRows tableRows = xTextTable.getRows();
      Object row = tableRows.getByIndex(textTableCellRange.getRangeName()
          .getRangeStartRowIndex());
      XPropertySet propertySetRow = (XPropertySet) UnoRuntime
          .queryInterface(XPropertySet.class, row);
      propertySetRow.setPropertyValue("IsAutoHeight", new Boolean(
          autoHeight));
View Full Code Here

Examples of com.sun.star.table.XTableRows

            as(XSelectionSupplier.class, xController).select(new Any(new Type(XCellRange.class), xCellRange));
        }
    }

    public void deleteRow(int row) {
        XTableRows xTableRows = xTextTable.getRows();
        xTableRows.removeByIndex(row, 1);
    }
View Full Code Here

Examples of com.sun.star.table.XTableRows

        XTableRows xTableRows = xTextTable.getRows();
        xTableRows.removeByIndex(row, 1);
    }

    public void insertEmptyRow(int indexAfter) {
        XTableRows xTableRows = xTextTable.getRows();
        xTableRows.insertByIndex(indexAfter + 1, 1);
    }
View Full Code Here

Examples of com.sun.star.table.XTableRows

                new Type(XSpreadsheet.class),
                    oNames.getByName(oNames.getElementNames()[0]));

            XColumnRowRange oColumnRowRange = (XColumnRowRange)
                UnoRuntime.queryInterface(XColumnRowRange.class, xSpreadsheet);
            XTableRows oRows = (XTableRows) oColumnRowRange.getRows();
            XIndexAccess oIndexAccess = (XIndexAccess)
                UnoRuntime.queryInterface(XIndexAccess.class, oRows);
            oObj = (XInterface) AnyConverter.toObject(
                    new Type(XInterface.class),oIndexAccess.getByIndex(6));
        } catch(com.sun.star.lang.WrappedTargetException e) {
View Full Code Here

Examples of com.sun.star.table.XTableRows

        }

        XColumnRowRange oColumnRowRange = (XColumnRowRange)
            UnoRuntime.queryInterface(XColumnRowRange.class, xSpreadsheet);

        XTableRows oRows = (XTableRows) oColumnRowRange.getRows();
        oObj = oRows;

        log.println("creating a new environment for object");
        TestEnvironment tEnv = new TestEnvironment(oObj);
View Full Code Here

Examples of com.sun.star.table.XTableRows

        }

        XColumnRowRange oColumnRowRange = (XColumnRowRange)
            UnoRuntime.queryInterface(XColumnRowRange.class, xSpreadsheet);

        XTableRows oRows = (XTableRows) oColumnRowRange.getRows();
        oObj = oRows;

        log.println("creating a new environment for object");

        XEnumerationAccess ea = (XEnumerationAccess)
View Full Code Here

Examples of com.sun.star.table.XTableRows

  CurDBField = CurDBMetaData.getFieldColumnByFieldName(_FieldName);
        bIsGroupColumn = true;
        XTextRange xTextCell;
        XCell xCell;
        getTableColumns(TableName);
        XTableRows xRows = xTextTable.getRows();
        for (int n = 0; n < xTableColumns.getCount(); n++){
            for (int m = 0; m < xRows.getCount(); m++){
                xCell = xCellRange.getCellByPosition(n,m);
                xTextCell = (XTextRange) UnoRuntime.queryInterface(XTextRange.class, xCell);
                String CompString = TableName.substring(4);
                XTextCursor xLocCellCursor = TextDocument.createTextCursor(xCell);
                if (isNameCell(xLocCellCursor, CurDBField.FieldName, CompString)){
View Full Code Here

Examples of com.sun.star.table.XTableRows

     * @param table
     * @param start
     * @param count
     */
    public static void removeTableRows(Object table, int start, int count) {
        XTableRows rows = ((XTextTable)UnoRuntime.queryInterface(XTextTable.class,table)).getRows();
        rows.removeByIndex(start, count);
    }
View Full Code Here

Examples of com.sun.star.table.XTableRows

     * @param table
     * @param start
     * @param count
     */
    public static void insertTableRows(Object table, int start, int count) {
        XTableRows rows = ((XTextTable)UnoRuntime.queryInterface(XTextTable.class,table)).getRows();
        rows.insertByIndex(start, count);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.