Examples of XTextCursor


Examples of com.sun.star.text.XTextCursor

    }
   
    public void insertTextSection(String GroupName, String TemplateName, boolean _bAddParagraph) {
    try {
      if (_bAddParagraph){
            XTextCursor xTextCursor = xText.createTextCursor();
            xText.insertControlCharacter(xTextCursor, ControlCharacter.PARAGRAPH_BREAK, false);
            //    Helper.setUnoPropertyValue(xTextCursor, "PageDescName", "First Page");
            xTextCursor.collapseToEnd();
      }
        XTextCursor xSecondTextCursor = xText.createTextCursor();
        xSecondTextCursor.gotoEnd(false);
        insertTextSection( GroupName, TemplateName, xSecondTextCursor );
    }
    catch (IllegalArgumentException e) {
        e.printStackTrace(System.out);
    }}
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.