Package ag.ion.bion.officelayer.text

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


   */
  public boolean nextMatch() {
    if (maxIndex != -1) {
      index++;
      if (index <= maxIndex) {
        ITextRange textRange = getTextRange(index);
        try {
          document.setSelection(new TextRangeSelection(textRange));
          return true;
        } catch (NOAException exception) {
          // do not consume
View Full Code Here


   */
  public boolean previousMatch() {
    if (maxIndex != -1) {
      index--;
      if (index >= 0) {
        ITextRange textRange = getTextRange(index);
        try {
          document.setSelection(new TextRangeSelection(textRange));
          return true;
        } catch (NOAException exception) {
          // do not consume
View Full Code Here

  private String integrateInText(TextInfo textInfo,
      TextPosition position) {
    OODocument ooDocument = (OODocument) position.getTutorialDocument();
    ITextDocument textDocument = (ITextDocument) ooDocument.getDocument();
    ITextRange textRange = position.getTextRange();

    ITextContentService textContentService = textDocument.getTextService().getTextContentService();

    ITextDocumentTextShape textDocumentTextShape = null;
    try {
View Full Code Here

    if(xText != null){
      XTextCursor xTextCursor = xText.createTextCursor();
      xTextCursor.gotoStart(false);

      IViewCursor viewCursor = textDoc.getViewCursorService().getViewCursor();
      ITextRange textRange;
      try {
        textRange = textDoc.getTextService().getTextContentService().constructNewTextRange(textDoc, xTextCursor.getStart());
      } catch (TextException e1) {
        textRange = null;
        e1.printStackTrace();
View Full Code Here

  private String integrateInText(GraphicInfo graphicInfo,
      TextPosition position) {
    OODocument ooDocument = (OODocument) position.getTutorialDocument();
    ITextDocument textDocument = (ITextDocument) ooDocument.getDocument();
    ITextRange textRange = position.getTextRange();

    ITextContentService textContentService = textDocument.getTextService()
        .getTextContentService();

    ITextDocumentImage textDocumentImage = null;
View Full Code Here

            "No valid type for the position.");
        throw cloneException;
      }

      if (ITextRange.class.isAssignableFrom(position.getType())) {
        ITextRange range = (ITextRange) position.getDestinationObject();
        if (textTableService == null)
          textTableService = textDocument.getTextTableService();
        newTable = (ITextTable) textTableService.constructTextTable(
            rowCount, columnCount);
        newTable.getProperties().setRepeatHeadline(
View Full Code Here

  private IClonedObject clonePreprocessor(IDestinationPosition position,
      boolean adoptContent, boolean createSpace,
      boolean generateReturnValue,
      PropertyKeysContainer propertyKeysContainer) throws CloneException {
    try {
      ITextRange range = null;
      if (position.getType() != null
          && ITextRange.class.isAssignableFrom(position.getType())) {
        range = (ITextRange) position.getDestinationObject();
      }
      ITextDocument textDocument = textTable.getTextDocument();
View Full Code Here

TOP

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

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.