Package ag.ion.bion.officelayer.text

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


  public void removeTextContent(ITextContent textContent)
  throws TextException {
    try {
      xText.removeTextContent(textContent.getXTextContent());
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here


        xText.insertTextContent(targetRange, xTextContent, true);
        cleanupImage(textContent);
        cleanupTextShape(textContent);
      }
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

            .getXTextContent());
        cleanupImage(textContent);
        cleanupTextShape(textContent);
      }
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

        // newTextContent.getXTextContent());
        cleanupImage(textContent);
        cleanupTextShape(textContent);
      }
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

    try {
      XCell xCell = xTextTable.getCellByName(name);
      if(xCell != null)
        return new TextTableCell(textDocument, xCell);
      else
        throw new TextException("A column with the name " + name + " is not available.");
    }
    catch(Exception exception) {
      TextException textException = new TextException(exception.getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

      TextTableCellRangeName textTableCellRangeName = new TextTableCellRangeName(cellRangeName);
      TextTableCellRange textTableCellRange = new TextTableCellRange(textDocument,newXCellRange, textTableCellRangeName);
      return textTableCellRange;
    }
    catch(Exception exception) {
      TextException textException = new TextException(exception.getMessage());
      textException.initCause(exception);
      throw textException;
   
  }
View Full Code Here

  public void removeRow(int index) throws TextException {
    try {
      xTextTable.getRows().removeByIndex(index,1);
    }
    catch(Exception exception) {
      TextException textException = new TextException("The specified row could not be removed");
      textException.initCause(exception);
    }
  }
View Full Code Here

  public void removeRows(int index, int count) throws TextException {
    try {
      xTextTable.getRows().removeByIndex(index,count);
    }
    catch(Exception exception) {
      TextException textException = new TextException("The specified row could not be removed");
      textException.initCause(exception);
    }
  }
View Full Code Here

  public void remove() throws TextException {
    try {
      textDocument.getTextService().getTextContentService().removeTextContent(this);
    }
    catch(Exception exception) {
      TextException textException = new TextException("The specified table can not be removed");
      textException.initCause(exception);
    }
  }
View Full Code Here

  public void setRepeatHeadline(boolean repeatHeadline) throws TextException {
    try {
      getXPropertySet().setPropertyValue("RepeatHeadline",
          new Boolean(repeatHeadline));
    } catch (Exception exception) {
      TextException textException = new TextException(exception
          .getMessage());
      textException.initCause(exception);
      throw textException;
    }
  }
View Full Code Here

TOP

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

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.