Issue 79699

Summary: runner: css.text.XTextContent::getAnchor()
Product: App Dev Reporter: chne
Component: apiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 3.3.0 or older (OOo)   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: TASK Latest Confirmation in: ---
Developer Difficulty: ---

Description chne 2007-07-17 14:19:03 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()
Comment 1 chne 2007-08-07 12:21:07 UTC
accepted
Comment 2 chne 2009-04-20 09:23:34 UTC
change owner