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

Examples of ag.ion.bion.officelayer.internal.text.TextTableCellRange


        if(rowStart + rowCount > newTableRowCount) {
          newTable.addRow(rowStart, (rowStart + rowCount)-newTableRowCount);
        }
      }
      else if(TextTableCellRange.class.isAssignableFrom(position.getType())) {
        TextTableCellRange tableCellRange = ((TextTableCellRange)position.getDestinationObject());
        int tmpColumnCount = tableCellRange.getColumnCount();
        int tmpRowCount = tableCellRange.getRowCount();
        if(tmpColumnCount == 0 || tmpRowCount==0) {
          CloneException cloneException =  new CloneException("No range selected.");
          throw cloneException;
        }
        newTable = tableCellRange.getCell(0,0).getTextTable();;
        ITextTableCellRangeName rangeName = tableCellRange.getRangeName();
        columnStart = rangeName.getRangeStartColumnIndex();
        rowStart = rangeName.getRangeStartRowIndex();
        if(tmpColumnCount != columnCount || tmpRowCount != rowCount) {
          CloneException cloneException =  new CloneException("The selected range is not valid.");
          throw cloneException;
        }
      }
      else if(TextTableRow.class.isAssignableFrom(position.getType())) {
        TextTableRow textTableRow = ((TextTableRow)position.getDestinationObject());       
        ITextTableCellRange tableCellRange = textTableRow.getCellRange();
        int tmpColumnCount = tableCellRange.getColumnCount();
        int tmpRowCount = tableCellRange.getRowCount();
        if(tmpColumnCount == 0 || tmpRowCount==0) {
          CloneException cloneException =  new CloneException("No range selected.");
          throw cloneException;
        }
        newTable = tableCellRange.getCell(0,0).getTextTable();;
        ITextTableCellRangeName rangeName = tableCellRange.getRangeName();
        columnStart = rangeName.getRangeStartColumnIndex();
        rowStart = rangeName.getRangeStartRowIndex();
        if(tmpColumnCount != columnCount || tmpRowCount != rowCount) {
          CloneException cloneException =  new CloneException("The selected range is not valid.");
          throw cloneException;
View Full Code Here


          newTable.addRow(rowStart, (rowStart + rowCount)
              - newTableRowCount);
        }
      } else if (TextTableCellRange.class.isAssignableFrom(position
          .getType())) {
        TextTableCellRange tableCellRange = ((TextTableCellRange) position
            .getDestinationObject());
        int tmpColumnCount = tableCellRange.getColumnCount();
        int tmpRowCount = tableCellRange.getRowCount();
        if (tmpColumnCount == 0 || tmpRowCount == 0) {
          CloneException cloneException = new CloneException(
              "No range selected.");
          throw cloneException;
        }
        newTable = tableCellRange.getCell(0, 0).getTextTable();
        ;
        ITextTableCellRangeName rangeName = tableCellRange
            .getRangeName();
        columnStart = rangeName.getRangeStartColumnIndex();
        rowStart = rangeName.getRangeStartRowIndex();
        if (tmpColumnCount != columnCount || tmpRowCount != rowCount) {
          CloneException cloneException = new CloneException(
              "The selected range is not valid.");
          throw cloneException;
        }
      } else if (TextTableRow.class.isAssignableFrom(position.getType())) {
        TextTableRow textTableRow = ((TextTableRow) position
            .getDestinationObject());
        ITextTableCellRange tableCellRange = textTableRow
            .getCellRange();
        int tmpColumnCount = tableCellRange.getColumnCount();
        int tmpRowCount = tableCellRange.getRowCount();
        if (tmpColumnCount == 0 || tmpRowCount == 0) {
          CloneException cloneException = new CloneException(
              "No range selected.");
          throw cloneException;
        }
        newTable = tableCellRange.getCell(0, 0).getTextTable();
        ;
        ITextTableCellRangeName rangeName = tableCellRange
            .getRangeName();
        columnStart = rangeName.getRangeStartColumnIndex();
        rowStart = rangeName.getRangeStartRowIndex();
        if (tmpColumnCount != columnCount || tmpRowCount != rowCount) {
          CloneException cloneException = new CloneException(
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.internal.text.TextTableCellRange

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.