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


Hello,

I’d like to get some confirmation on how Writer document represent numbered paragraphs. See the 
paragraph properties service, 
https://www.openoffice.org/api/docs/common/ref/com/sun/star/style/ParagraphProperties.html 
<https://www.openoffice.org/api/docs/common/ref/com/sun/star/style/ParagraphProperties.html>.

If `NumberingIsNumber` is True then it’s a list item of sorts: `NumberingLevel` tells me which 
level in the nesting hierarchy it might be but really just counts the numbers of tab-indents. 
There’s a max of 10 levels (i.e. tab-indents). For each of the levels there exists a set of “rules” 
(`NumberingRules`) that contain the “type” (`NumberingType`) for each level. Meaning that I can get 
more information about a list item by getting its type = rules[level].

The `NumberingIsOutline` values seems to be unreliable, and `OutlineLevel` is greater than 1 if the 
paragraph is a heading of sorts. By default, “Title” and “Heading 1” are both 1. So checking 
whether a paragraph is a heading depends on the `OutlineLevel` rather than the `NumberingIsOutline` 
boolean.

Is that about right? What did I miss with respect to document hierarchy?

Cheers!
Jens

--
Jens Tröger
http://savage.light-speed.de/ <http://savage.light-speed.de/>

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.