Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


Hi Jens,

On Mon, Dec 11, 2017 at 11:32:49PM +0100, Jens Tröger <jens.troeger@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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.