Hi Jens,

On Mon, Dec 11, 2017 at 11:32:49PM +0100, Jens Tröger 
<jens.troe...@light-speed.de> wrote:
> How can I correlate these index_par objects with the paragraphs that I
> visit using the document's paragraph enumeration:
> 
>   parenum = document.Text.createEnumeration()                                 
>                     
>   while parenum.hasMoreElements():                                            
>                     
>       par = parenum.nextElement()                                             
>                      
>       # par is a paragraph (XTextContext) in the document
> 
> At some point a given `par` and `index_par` represent the same
> paragraph in the document, but how do I know?  Or does such an
> association not or very loosely exist?

https://lists.freedesktop.org/archives/libreoffice/2017-December/079050.html
has code samples on how the reference-to-bookmark is represented as a
HyperlinkURL property, and how the bookmark is a Bookmark text portion.
There is no closer connection between these two, I think.

Regards,

Miklos

Attachment: signature.asc
Description: Digital signature

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to