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


On 29.03.2016 23:03, Mohamed Thabet wrote:
Hello,

I'm working on this bug
https://bugs.documentfoundation.org/show_bug.cgi?id=44282

Currently I want to add a tab separator after the number in the table of
contents, but I can't get the correct tab stop position.

My goal is to mimic the behaviour of normal numbered lists, so how can I
determine the tab position?

hi Mohamed,

SwTextNode::GetLabelFollowedBy() to get the type of spacing.

SwTextNode::GetListTabStopPosition() would give a tab stop position but
i think it may be the wrong one for your case - we probably don't want
to apply a first-line indent of the paragraph to ToX entries.... and the
list style also may have indents which probably shouldn't be applied
either, although i'm less sure of that...

well i don't know the details of numbering well enough, the general idea
sounds right but it's not immediately obvious to me what exactly this
should do.

regards,
 michael

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.