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


Hi,

On Thu, Dec 07, 2017 at 07:51:56PM +0100, Jens Tröger <jens.troeger@light-speed.de> wrote:
Two things.  First, I had to call update() on the ToC document index
object in order to get all links in the document.

Aha, sounds like the two questions from your previous mail are for the
ToC object which is created from the API, not via the UI. If you insert
the ToC on the UI, it's automatically updated after insertion.

 Second, calling update() _duplicated_ each and every entry in the ToC
 which looks like a bug to me (LO 5.3.6.1)…

5.3 is quite old, almost EOL; to discuss problems on this dev list, the
best is if you first try your problem on master (towards 6.1) first.

I’m still curious though: iterating over the paragraphs, is there any
other indication than the par’s name that the par is in fact part of the
ToC index object?

If you know what are the properties of the ToC object (does it only
contain Heading 1 paragraphs? Or also Heading 2? etc), then just
querying the outline numbering property ("OutlineLevel" is the UNO
property name) of the paragraph should work. Or check if it has a
RefHeading bookmark (see my previous mail) if that works better for you.

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.