Examples of goToRange()


Examples of com.sun.star.text.XTextCursor.gotoRange()

    resetBreakTypeofTextTable(xTextTable);
      }
  }*/
  XTextRange xHeaderRange = (XTextRange) Tools.getUNOPropertyValue(oPageStyle, "HeaderText", XTextRange.class);
  if (com.sun.star.uno.AnyConverter.isVoid(xHeaderRange) == false){
      xViewTextCursor.gotoRange(xHeaderRange, false);
      xViewTextCursor.collapseToStart();
  }
  else
      System.out.println("No Headertext available");
  unlockallControllers();   
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoRange()

            XNameAccess xName = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oPageStyles);
            Object oPageStyle = xName.getByName("First Page");
            XIndexAccess xAllTextTables = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, oTextTableHandler.xTextTablesSupplier.getTextTables());
            XTextContent xTextTable = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, xAllTextTables.getByIndex(0));
            XTextRange xRange = (XTextRange) UnoRuntime.queryInterface(XTextRange.class, xTextTable.getAnchor().getText());
            xViewTextCursor.gotoRange(xRange, false);
//            if (xPageCursor.getPage() == (short) 1) {
//                Helper.setUnoPropertyValue(xTextTable, "PageDescName", "First Page");
//                TextTableHandler.resetBreakTypeofTextTable(xTextTable);
//            }
            //      }
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoRange()

//            }
            //      }
            XTextRange xHeaderRange = (XTextRange) Helper.getUnoPropertyValue(oPageStyle, "HeaderText", XTextRange.class);
            if (!com.sun.star.uno.AnyConverter.isVoid(xHeaderRange))
            {
                xViewTextCursor.gotoRange(xHeaderRange, false);
                xViewTextCursor.collapseToStart();
            }
            else
            {
                System.out.println("No Headertext available");
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoRange()

  XIndexAccess xAllTextTables = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, xTextTablesSupplier.getTextTables());
  int TextTablesCount = xAllTextTables.getCount();
  for (int i = 0; i<TextTablesCount; i++){
      xTextTable = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, xAllTextTables.getByIndex(i));
      xRange = (XTextRange) UnoRuntime.queryInterface(XTextRange.class, xTextTable.getAnchor().getText());
      xViewTextCursor.gotoRange(xRange, false);
      if (xPageCursor.getPage() == (short)1){
    Tools.setUNOPropertyValue(xTextTable, "PageDescName", "First Page");
    resetBreakTypeofTextTable(xTextTable);
      }
  }
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoRange()

    resetBreakTypeofTextTable(xTextTable);
      }
  }
  XTextRange xHeaderRange = (XTextRange) Tools.getUNOPropertyValue(oPageStyle, "HeaderText", XTextRange.class);
  if (com.sun.star.uno.AnyConverter.isVoid(xHeaderRange) == false){
      xViewTextCursor.gotoRange(xHeaderRange, false);
      xViewTextCursor.collapseToStart();
  }
  else
      System.out.println("No Headertext available");
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoRange()

        assure("goLeft(): succeeded", !bSuccess);
        bSuccess = xTextCursor.goRight((short)1, false);
        assure("goRight(): failed", bSuccess);
        bSuccess = xTextCursor.goRight((short)1000, false);
        assure("goRight(): succeeded", !bSuccess);
        xTextCursor.gotoRange(xStart, false);
        xTextCursor.gotoRange(xEnd, false);
        try {
            xTextCursor.gotoRange(xDocTextCursor, false);
            assure("gotoRange(): succeeded", false);
        } catch (RuntimeException e) { /* expected */ }
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoRange()

        bSuccess = xTextCursor.goRight((short)1, false);
        assure("goRight(): failed", bSuccess);
        bSuccess = xTextCursor.goRight((short)1000, false);
        assure("goRight(): succeeded", !bSuccess);
        xTextCursor.gotoRange(xStart, false);
        xTextCursor.gotoRange(xEnd, false);
        try {
            xTextCursor.gotoRange(xDocTextCursor, false);
            assure("gotoRange(): succeeded", false);
        } catch (RuntimeException e) { /* expected */ }

View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoRange()

        bSuccess = xTextCursor.goRight((short)1000, false);
        assure("goRight(): succeeded", !bSuccess);
        xTextCursor.gotoRange(xStart, false);
        xTextCursor.gotoRange(xEnd, false);
        try {
            xTextCursor.gotoRange(xDocTextCursor, false);
            assure("gotoRange(): succeeded", false);
        } catch (RuntimeException e) { /* expected */ }

        // XWordCursor
        xText.setString("Two words");
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoRange()

            XNameAccess xName = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, oPageStyles);
            Object oPageStyle = xName.getByName("First Page");
            XIndexAccess xAllTextTables = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, oTextTableHandler.xTextTablesSupplier.getTextTables());
            XTextContent xTextTable = (XTextContent) UnoRuntime.queryInterface(XTextContent.class, xAllTextTables.getByIndex(0));
            XTextRange xRange = (XTextRange) UnoRuntime.queryInterface(XTextRange.class, xTextTable.getAnchor().getText());
            xViewTextCursor.gotoRange(xRange, false);
//            if (xPageCursor.getPage() == (short) 1) {
//                Helper.setUnoPropertyValue(xTextTable, "PageDescName", "First Page");
//                TextTableHandler.resetBreakTypeofTextTable(xTextTable);
//            }
            //      }
View Full Code Here

Examples of com.sun.star.text.XTextCursor.gotoRange()

//            }
            //      }
            XTextRange xHeaderRange = (XTextRange) Helper.getUnoPropertyValue(oPageStyle, "HeaderText", XTextRange.class);
            if (!com.sun.star.uno.AnyConverter.isVoid(xHeaderRange))
            {
                xViewTextCursor.gotoRange(xHeaderRange, false);
                xViewTextCursor.collapseToStart();
            }
            else
            {
                System.out.println("No Headertext available");
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.