Package ag.ion.bion.officelayer.text

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


   *
   * @author Markus Kr�ger
   * @date 13.07.2006
   */
  public void jumpTo() {
    IViewCursor viewCursor = getTextDocument().getViewCursorService()
        .getViewCursor();
    viewCursor.goToRange(getTextRange(), false);
  }
View Full Code Here


    IDocument document = ooDocument.getDocument();

    if (!document.getDocumentType().equals(IDocument.WRITER))
      return false;

    IViewCursor viewCursor = ((ITextDocument) document)
        .getViewCursorService().getViewCursor();
    ITextCursor textCursor = viewCursor.getTextCursorFromEnd();
    try {
      if (tag.length() > 0) {
        textCursor.setString(tag);
        document.setModified(true);
      }
View Full Code Here

   * Jumps to the bookmark.
   *
   * @author Markus Kr�ger
   */
  public void jumpTo() {
    IViewCursor viewCursor = textDocument.getViewCursorService()
        .getViewCursor();
    viewCursor.goToRange(this, false);
  }
View Full Code Here

   *
   * @author Markus Kr�ger
   * @date 13.07.2006
   */
  public void jumpTo() {
    IViewCursor viewCursor = getTextDocument().getViewCursorService().getViewCursor();
    viewCursor.goToRange(getTextRange(),false);
  }
View Full Code Here

   *
   * @author Markus Kr�ger
   * @date 13.07.2006
   */
  public void jumpTo() {
    IViewCursor viewCursor = getTextDocument().getViewCursorService()
        .getViewCursor();
    viewCursor.goToRange(getTextRange(), false);
  }
View Full Code Here

   *         number could not be determined
   *
   * @author Markus Kr�ger
   */
  public short getStartPageNumber() {
    IViewCursor viewCursor = textDocument.getViewCursorService()
        .getViewCursor();
    IPageCursor pageCursor = viewCursor.getPageCursor();
    if (pageCursor != null) {
      viewCursor.goToRange(getStart(), false);
      return pageCursor.getPage();
    }
    return -1;
  }
View Full Code Here

   *         could not be determined
   *
   * @author Markus Kr�ger
   */
  public short getEndPageNumber() {
    IViewCursor viewCursor = textDocument.getViewCursorService()
        .getViewCursor();
    IPageCursor pageCursor = viewCursor.getPageCursor();
    if (pageCursor != null) {
      viewCursor.goToRange(getEnd(), false);
      return pageCursor.getPage();
    }
    return -1;
  }
View Full Code Here

  private void removeDummyString() {
    ITextDocument textDocument = null;

    textDocument = getCurrentTextDocument();

    IViewCursor viewCursor = textDocument.getViewCursorService()
        .getViewCursor();
    ITextCursor textCursor = viewCursor.getTextCursorFromEnd();
    textCursor.goLeft((short) DUMMY_INSERT_STRING.length(), true);
    textCursor.setString(""); //$NON-NLS-1$
  }
View Full Code Here

   *
   * @author Markus Kr�ger
   * @date 13.07.2006
   */
  public void jumpTo() {
    IViewCursor viewCursor = getTextDocument().getViewCursorService().getViewCursor();
    viewCursor.goToRange(getTextRange(),false);
  }
View Full Code Here

   * could not be determined
   *
   * @author Markus Kr�ger
   */
  public short getStartPageNumber() {
    IViewCursor viewCursor = textDocument.getViewCursorService().getViewCursor();
    IPageCursor pageCursor = viewCursor.getPageCursor();
    if(pageCursor != null) {
      viewCursor.goToRange(getStart(),false);
      return pageCursor.getPage();
    }
    return -1;
 
View Full Code Here

TOP

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

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.