Issue 79699 - runner: css.text.XTextContent::getAnchor()
Summary: runner: css.text.XTextContent::getAnchor()
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-17 14:19 UTC by chne
Modified: 2013-02-24 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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