Association between ToC index object and its paragraph content
jens.troeger at light-speed.de
Thu Dec 7 05:04:08 UTC 2017
While walking all paragraphs of a Writer document and visiting their text
content, I come across text portions (the Heading N) which have Bookmarks
whose name is something like “_Toc263250771”. However, when I walk the
paragraphs and text portions that actually make up the ToC of the document
itself, I see no indication or reference to these bookmarks.
Likewise, when I get the ToC of the document I can find some information
about entries, where it’s anchored on the page, but no actual “unfolded”
Question is also posted in the forum including some code snippets:
Is there an association between the XDocumentIndex object (the ToC index
of the document) and the XTextContent objects (paragraphs that make the
actual ToC content) and how can I find it?
More information about the LibreOffice