To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=82420





------- Additional comments from [EMAIL PROTECTED] Thu Nov  1 05:45:20 +0000 
2007 -------
I worked this around by using enumeration to get accurate section order, 
something like the following :

Dim sect
sect=thisComponent.getTextSections().getByName("root")
Dim sectRange
sectRange = sect.getAnchor()
Dim sectText 
sectText = sectRange.getText()
dim prevSection
prevSection = "root"
Dim sectEnum
Dim orderStr 
orderStr = ""
sectEnum = sectText.createEnumeration()
while (sectEnum.hasMoreElements() )
        dim nextElem
        nextElem = sectEnum.nextElement()
        if (Not isnull(nextElem.TextSection)) then
           if (not IsEmpty(nextElem.TextSection)) then 
            dim tSect
            tSect = nextElem.TextSection.Name
            orderStr = orderStr + tSect + chr(13)+chr(10)
                end if
        
        end if
wend

msgbox orderStr

this would work even for frames since enumeration relies on visible structure 
of the document. Its more 
tedious, and definitely slower but it works. You would just need to check for 
TextFrame objects in the 
main enumeration loop, and enumerate for sections within those.


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to