Package ag.ion.bion.officelayer.internal.text.table

Examples of ag.ion.bion.officelayer.internal.text.table.TextTableCellRangeName


        xCellRange = (XCellRange) UnoRuntime.queryInterface(
            XCellRange.class, xTextTable);
      XCellRange newXCellRange = xCellRange.getCellRangeByPosition(
          firstColumnIndex, firstRowIndex, lastColumnIndex,
          lastRowIndex);
      TextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(
          cellRangeName);
      TextTableCellRange textTableCellRange = new TextTableCellRange(
          textDocument, newXCellRange, textTableCellRangeName);
      return textTableCellRange;
    } catch (Exception exception) {
View Full Code Here


    for (int i = 0; i < cellNames.length; i++) {
      int thisRowIndex = TextTableCellNameHelper
          .getRowIndex(cellNames[i]);
      if (thisRowIndex != lastRowIndex) {
        rangeName = rangeName + ":" + oldCellName;
        TextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(
            rangeName);
        TextTableCellRange textTableCellRange = new TextTableCellRange(
            textDocument, xCellRange.getCellRangeByName(rangeName),
            textTableCellRangeName);
        textTableRow[lastRowIndex] = new TextTableRow(
            textTableCellRange);
        rangeName = cellNames[i];
        lastRowIndex = thisRowIndex;
      }
      oldCellName = cellNames[i];
    }
    rangeName = rangeName + ":" + oldCellName;
    TextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(
        rangeName);
    TextTableCellRange textTableCellRange = new TextTableCellRange(
        textDocument, xCellRange.getCellRangeByName(rangeName),
        textTableCellRangeName);
    textTableRow[lastRowIndex] = new TextTableRow(textTableCellRange);
View Full Code Here

        if (TextTableCellNameHelper.getRowIndex(cellNames[i]) == index) {
          endCellName = cellNames[i];
        }
      }
      String rangeName = "A" + (index + 1) + ":" + endCellName;
      TextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(
          rangeName);
      TextTableCellRange textTableCellRange = new TextTableCellRange(
          textDocument, xCellRange.getCellRangeByName(rangeName),
          textTableCellRangeName);
      textTableRow = new TextTableRow(textTableCellRange);
View Full Code Here

    String cellRangeName = TextTableCellNameHelper.getRangeName(firstColumnIndex,firstRowIndex,lastColumnIndex,lastRowIndex);
    try {
      if(xCellRange == null)
        xCellRange = (XCellRange)UnoRuntime.queryInterface(XCellRange.class, xTextTable);
      XCellRange newXCellRange = xCellRange.getCellRangeByPosition(firstColumnIndex,firstRowIndex,lastColumnIndex,lastRowIndex);
      TextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(cellRangeName);
      TextTableCellRange textTableCellRange = new TextTableCellRange(textDocument,newXCellRange, textTableCellRangeName);
      return textTableCellRange;
    }
    catch(Exception exception) {
      TextException textException = new TextException(exception.getMessage());
View Full Code Here

      xCellRange = (XCellRange)UnoRuntime.queryInterface(XCellRange.class, xTextTable);
    for(int i = 0; i < cellNames.length; i++) {
      int thisRowIndex = TextTableCellNameHelper.getRowIndex(cellNames[i]);
      if(thisRowIndex != lastRowIndex) {
        rangeName = rangeName + ":" + oldCellName;
        TextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(rangeName);
        TextTableCellRange textTableCellRange = new TextTableCellRange(textDocument, xCellRange.getCellRangeByName(rangeName),textTableCellRangeName);
        textTableRow[lastRowIndex] = new TextTableRow(textTableCellRange)
        rangeName = cellNames[i];
        lastRowIndex = thisRowIndex;
      }     
      oldCellName = cellNames[i];
    }
    rangeName = rangeName + ":" + oldCellName;
    TextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(rangeName);
    TextTableCellRange textTableCellRange = new TextTableCellRange(textDocument, xCellRange.getCellRangeByName(rangeName),textTableCellRangeName);
    textTableRow[lastRowIndex] = new TextTableRow(textTableCellRange)
   
    return textTableRow;
  }
View Full Code Here

        if(TextTableCellNameHelper.getRowIndex(cellNames[i]) == index) {
          endCellName = cellNames[i];
        }
      }
      String rangeName = "A" + (index+1) + ":" + endCellName;
      TextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(rangeName);
      TextTableCellRange textTableCellRange = new TextTableCellRange(textDocument, xCellRange.getCellRangeByName(rangeName),textTableCellRangeName);
      textTableRow = new TextTableRow(textTableCellRange);
    }
    catch(Exception exception) {
      //do nothing     
View Full Code Here

        range[i] = (ITextTableCellRange)textTableCellRanges[i].getCloneService().cloneToPosition(destinationPosition,propertyKeysContainer).getClonedObject();
        table = range[i].getCell(0,0).getTextTable();
        eTextTable.addTable(table);
      }
      if(generateReturnValue) {
        ITextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(0,0,range[0].getColumnCount()-1,range[0].getRowCount());
        IETextTableCellRange cellRange = new ETextTableCellRange(range,textTableCellRangeName,eTextTable);
        return new ClonedObject(cellRange,cellRange.getClass());
      }
      else
        return null;
View Full Code Here

      textTableCellRanges[i] = ((ITextTableColumn)textTableColumns.get(i)).getCellRange();
      endRow = endRow + ((ITextTableColumn)textTableColumns.get(i)).getCellRange().getRowCount();
    }
   
    if(textTableCellRanges.length > 0) {
      ITextTableCellRangeName tableCellRangeName = new TextTableCellRangeName(textTableCellRanges[0].getRangeName().getRangeStartColumnIndex(),
          textTableCellRanges[0].getRangeName().getRangeStartRowIndex(),
          textTableCellRanges[textTableCellRanges.length-1].getRangeName().getRangeEndColumnIndex(),
          endRow-1);
     
      ETextTableCellRange textTableCellRange = new ETextTableCellRange(textTableCellRanges,tableCellRangeName,textTable);
View Full Code Here

      textTable = textTableManagement.getTextTable(lastTableNumber);
      textTableCellRanges.add(textTable.getCellRange(firstColumnIndex,0, lastColumnIndex, getRowIndexInTable(lastTableNumber,lastRowIndex)));
    }
    ITextTableCellRange[] tableCellRanges = new ITextTableCellRange[textTableCellRanges.size()];
    tableCellRanges = (ITextTableCellRange[])textTableCellRanges.toArray(tableCellRanges);
    ITextTableCellRangeName tableCellRangeName = new TextTableCellRangeName(firstColumnIndex,firstRowIndex,lastColumnIndex,lastRowIndex);
    IETextTableCellRange tableCellRange = new ETextTableCellRange(tableCellRanges,tableCellRangeName,this);
    return tableCellRange;
  }
View Full Code Here

    }
    ITextTableCellRange[] tableCellRanges = new ITextTableCellRange[textTableCellRanges
        .size()];
    tableCellRanges = (ITextTableCellRange[]) textTableCellRanges
        .toArray(tableCellRanges);
    ITextTableCellRangeName tableCellRangeName = new TextTableCellRangeName(
        firstColumnIndex, firstRowIndex, lastColumnIndex, lastRowIndex);
    IETextTableCellRange tableCellRange = new ETextTableCellRange(
        tableCellRanges, tableCellRangeName, this);
    return tableCellRange;
  }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.internal.text.table.TextTableCellRangeName

Copyright © 2018 www.massapicom. 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.