Apache OpenOffice (AOO) Bugzilla – Issue 79699
runner: css.text.XTextContent::getAnchor()
Last modified: 2013-02-24 21:06:24 UTC
The UNO-API-Test should be enhanced in an way to check if the Anchor returns the correct position. Example: public void _getAnchor() { log.println("getAnchor()"); oAnchor = oObj.getAnchor(); XTextRange sEnd = oAnchor.getEnd(); XTextRange sStart = oAnchor.getStart(); XTextRange aRange = (XTextRange) tEnv.getObjRelation("RANGE"); System.out.println("aRange: " + aRange.getText().getString()); XTextCursor xCur = aRange.getText().createTextCursorByRange(sEnd); XParagraphCursor xParaCrsr = (XParagraphCursor)UnoRuntime.queryInterface(XParagraphCursor.class, xCur ); xParaCrsr.gotoStartOfParagraph(true); log.println("cur: " + xParaCrsr.getString()); tRes.tested("getAnchor()", oAnchor != null ) ; } // end getAnchor()
accepted
change owner