Examples of jumpToPage()


Examples of ag.ion.bion.officelayer.text.IPageCursor.jumpToPage()

  public int getPageCount() {
    IPageCursor pageCursor = textDocument.getViewCursorService().getViewCursor().getPageCursor();
    short currentPage = pageCursor.getPage();
    pageCursor.jumpToLastPage();
    short lastPage = pageCursor.getPage();
    pageCursor.jumpToPage(currentPage)
    return lastPage;
  }
  //----------------------------------------------------------------------------
  /**
   * Returns page with the submitted index. The first page has the index 0.
View Full Code Here

Examples of ag.ion.bion.officelayer.text.IPageCursor.jumpToPage()

    IPageCursor pageCursor = textDocument.getViewCursorService()
        .getViewCursor().getPageCursor();
    short currentPage = pageCursor.getPage();
    pageCursor.jumpToLastPage();
    short lastPage = pageCursor.getPage();
    pageCursor.jumpToPage(currentPage);
    return lastPage;
  }

  // ----------------------------------------------------------------------------
  /**
 
View Full Code Here

Examples of com.sun.star.text.XPageCursor.jumpToPage()

    try {
      XController xController = textDocument.getXTextDocument().getCurrentController();
      XTextViewCursorSupplier xTextViewCursorSupplier = (XTextViewCursorSupplier)UnoRuntime.queryInterface(XTextViewCursorSupplier.class, xController);
      XTextViewCursor textViewCursor = xTextViewCursorSupplier.getViewCursor();
      XPageCursor pageCursor = (XPageCursor)UnoRuntime.queryInterface(XPageCursor.class, textViewCursor);
      pageCursor.jumpToPage((short)index);
      pageCursor.jumpToStartOfPage();
      XTextRange pageStart = textViewCursor.getStart();  
      PagePosition startPagePosition = new PagePosition(textDocument, pageStart);      
      pageCursor.jumpToEndOfPage();   
      XTextRange pageEnd = textViewCursor.getStart();
View Full Code Here

Examples of com.sun.star.text.XPageCursor.jumpToPage()

          .queryInterface(XTextViewCursorSupplier.class, xController);
      XTextViewCursor textViewCursor = xTextViewCursorSupplier
          .getViewCursor();
      XPageCursor pageCursor = (XPageCursor) UnoRuntime.queryInterface(
          XPageCursor.class, textViewCursor);
      pageCursor.jumpToPage((short) index);
      pageCursor.jumpToStartOfPage();
      XTextRange pageStart = textViewCursor.getStart();
      PagePosition startPagePosition = new PagePosition(textDocument,
          pageStart);
      pageCursor.jumpToEndOfPage();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.