Package com.sun.star.text

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


          .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.