Hi Nick, I would bet it is a bug.
We can not be sure, as it seems the former programmer had forgotten to add some JavaDoc to tell us the reasoning behind the design. Fact is the method being used "findNext(TextListElement ..)" from AbstractListContainer is only searching on root level elements for lists. Instead of a iteration an improvement could be to traverse the ODF XML tree by recursion, or do the finding once (e.g. during parsing) and keep a reference table up to date during run-time. Sorry, not quite familiar with this module of this project. The Simple API was once forked and developed by IBM and later rejoined. By this split, a strict code review was avoided (e.g. JavaDoc otherwise MUST had public methods), as downside of their liberties there will be now no support by myself to problems they might have caused. Best regards, Svante On 31.07.2012 09:31, Nick De Graeve wrote: > Hi, > > > TextDocument.getListIterator() doen't include lists in Sections. Is this by > design or is this a bug? > > > Yours, > Nick >
