Package ag.ion.bion.officelayer.text

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


   * @author Markus Kr�ger
   */
  public int getPageCount() {
    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


   */
  public int getPageCount() {
    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

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.