Package ag.ion.bion.officelayer.text

Examples of ag.ion.bion.officelayer.text.ITextTableRow


   */
  public ITextTableRow getRow(int index) {
    if (xCellRange == null)
      xCellRange = (XCellRange) UnoRuntime.queryInterface(
          XCellRange.class, xTextTable);
    ITextTableRow textTableRow = null;
    try {
      String[] cellNames = xTextTable.getCellNames();
      String endCellName = "A" + (index + 1);
      for (int i = 0; i < cellNames.length; i++) {
        if (TextTableCellNameHelper.getRowIndex(cellNames[i]) == index) {
View Full Code Here


   */
  private void analyseTableFormulas() {
    formulaCells = new ArrayList();
    ITextTableRow[] tableRows = getRows();
    for (int i = 0; i < tableRows.length; i++) {
      ITextTableRow tableRow = tableRows[i];
      if (tableRow != null) {
        ITextTableCell[] cells = tableRow.getCells();
        for (int j = 0; j < cells.length; j++) {
          ITextTableCell cell = cells[j];
          if (cell != null) {
            IFormulaService formulaService = cell
                .getFormulaService();
View Full Code Here

      }
     
      // add a new row at the end of the table
      textTable.addRow(1);
     
      ITextTableRow row = textTable.getRow(textTable.getRowCount()-1);
      ITextTableColumn[] columns = textTable.getColumns();
      // we want the sum of each column in the last row
      for(int i=0;i<columns.length;i++) {
        ITextTableCell[][] cells = columns[i].getCellRange().getCells();
       
        //we need all but the last cell in the column (the last will be the formula)       
        StringBuffer cellNames = new StringBuffer();       
        for(int x=0;x<cells.length-1;x++) {
            cellNames.append("<"+cells[x][0].getName().getName()+">");
            if(x<cells.length-2) {
              cellNames.append("+");
            }
        }
       
        ITextTableCell formulaCell= row.getCells()[i];
        formulaCell.getFormulaService().setFormula(cellNames.toString());
      }
    }
    catch (TextException exception) {
      exception.printStackTrace();
View Full Code Here

      textDocument.getTextService().getTextContentService().insertTextContent(secondTextTable);
      ITextTableRow[] rows = secondTextTable.getRows();
     
      // we will iterate through it in a different manner than before
      for(int i=0;i<rows.length;i++) {
        ITextTableRow currentRow = rows[i];
        ITextTableCell[] cellsOfRow = currentRow.getCells();
        for(int j=0;j<cellsOfRow.length;j++) {
          String cellContent = "Column: " + (j+1) + " Row: " + (i+1);
          //that which follows is alrady known from Snippet3
          cellsOfRow[j].getTextService().getText().setText(cellContent);
        }
View Full Code Here

   * @author Markus Kr�ger
   */
  public ITextTableRow getRow(int index) {
    if(xCellRange == null)
      xCellRange = (XCellRange)UnoRuntime.queryInterface(XCellRange.class, xTextTable);
    ITextTableRow textTableRow = null;
    try {
      String[] cellNames = xTextTable.getCellNames();
      String endCellName = "A" + (index+1);
      for(int i = 0; i < cellNames.length; i++) {
        if(TextTableCellNameHelper.getRowIndex(cellNames[i]) == index) {
View Full Code Here

   */
  private void analyseTableFormulas() {
    formulaCells = new ArrayList();
    ITextTableRow[] tableRows = getRows();
    for(int i = 0; i < tableRows.length; i++) {
      ITextTableRow tableRow = tableRows[i];
      if(tableRow != null) {
        ITextTableCell[] cells = tableRow.getCells();
        for(int j = 0; j < cells.length; j++) {
          ITextTableCell cell = cells[j];
          if(cell != null) {
            IFormulaService formulaService = cell.getFormulaService();
            if(formulaService != null) {
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.text.ITextTableRow

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.