Subject: Re: commit: piecetable changes
From: Matti Picus (matti@picus.org)
Date: Sat Nov 10 2001 - 16:41:08 CST
Currently the paragraph style holds a dummy attribute called "list-decimal"
that basically provides the functionality you describe. Its value is never
used within list label creation, but somehow its presence enables undo
functionality to work properly.
I propose that someone (I wanted to do it, but real work is getting in the
way) replace it with a "list-style" attribute, whose value is one of a
limited number of list styles for the document (bullet, single level
numbering, multi-level numbering) and a "list-level" attribute, whose value
indicates a level of nesting of the list item, which corresponds to a
particular indent and label formatting scheme.
Matti
At 05:49 PM 10/11/2001 +0000, you wrote:
>Because the list-specific attributes are not part of
>the style definitions, applying say Normal style to a list style will
>not remove the numbering, etc. It would seem to me that the best
>thing would be to add function to the style class bool
>isNumbered(), which would return true for all the list styles,
>numbered headings, etc., and which could be used to determine
>whether to remove the list-specific attributes and related stuff.
>
>Tomas
This archive was generated by hypermail 2b25 : Sat Nov 10 2001 - 16:43:43 CST