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

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


   *             if the property store is not available
   *
   * @author Sebastian R�sgen
   */
  public ITextTablePropertyStore getPropertyStore() throws TextException {
    return new TextTablePropertyStore(this);
  }
View Full Code Here


   * @throws TextException if the property store is not available
   *
   * @author Sebastian R�sgen
   */
  public ITextTablePropertyStore getPropertyStore() throws TextException {
    return new TextTablePropertyStore(this);
  }
View Full Code Here

          textTableLast.addRow(helpRows);
        }
        int helpCount = count-helpRows;
        while(helpCount > 0) {
          int insert = helpCount;
          TextTablePropertyStore tablePropertyStore = new TextTablePropertyStore(textTableManagement.getFirstTextTable());
          if(tablePropertyStore.repeatHeadline()) {
            insert = insert + 1;
          }
          if(helpCount * columnCount > ITextTable.MAX_CELLS_IN_TABLE) {
            insert = maxRowsInTable;
          }
          ITextTable textTable = textDocument.getTextTableService().constructTextTable(1,columnCount);
          ITextTableProperties properties = textTable.getProperties();
          properties.setRepeatHeadline(tablePropertyStore.repeatHeadline());
          textDocument.getTextService().getTextContentService().insertTextContentAfter(textTable,textTableLast);
          properties.setTableColumnSeparators(tablePropertyStore.getTableColumnSeparators());
          IDestinationPosition destinationPosition = new DestinationPosition(textTable.getCell("A1"));
          if(tablePropertyStore.repeatHeadline()) {
            textTableCellRangeHeaderClone.getCloneService().cloneToPositionNoReturn(destinationPosition,null);
            destinationPosition = new DestinationPosition(textTable.getCell("A2"));
            textTableCellRangeClone.getCloneService().cloneToPositionNoReturn(destinationPosition,false,null);
          }
          else {
View Full Code Here

          textTableLast.addRow(helpRows);
        }
        int helpCount = count - helpRows;
        while (helpCount > 0) {
          int insert = helpCount;
          TextTablePropertyStore tablePropertyStore = new TextTablePropertyStore(
              textTableManagement.getFirstTextTable());
          if (tablePropertyStore.repeatHeadline()) {
            insert = insert + 1;
          }
          if (helpCount * columnCount > ITextTable.MAX_CELLS_IN_TABLE) {
            insert = maxRowsInTable;
          }
          ITextTable textTable = textDocument.getTextTableService()
              .constructTextTable(1, columnCount);
          ITextTableProperties properties = textTable.getProperties();
          properties.setRepeatHeadline(tablePropertyStore
              .repeatHeadline());
          textDocument.getTextService().getTextContentService()
              .insertTextContentAfter(textTable, textTableLast);
          properties.setTableColumnSeparators(tablePropertyStore
              .getTableColumnSeparators());
          IDestinationPosition destinationPosition = new DestinationPosition(
              textTable.getCell("A1"));
          if (tablePropertyStore.repeatHeadline()) {
            textTableCellRangeHeaderClone.getCloneService()
                .cloneToPositionNoReturn(destinationPosition,
                    null);
            destinationPosition = new DestinationPosition(textTable
                .getCell("A2"));
View Full Code Here

TOP

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

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.