On Nov 16, 2005, at 11:51, Luca Furini wrote:

<snip />
There are other properties with a "validity range" and a fallback value: column-count, initial-page-number, column-number, number- columns-repeated, number-columns-spanned, number-rows-spanned, hyphenation-{push, remain}-character-count; only hyphenation-ladder- count does not have a fallback value in 1.0, so maybe this was just an oversight. Note that the fallback value is different, in general, from the default value, as it is derived from the illegal value by rounding.

I guess we'll have to have a look at all these properties to see how the fallbacks are dealt with. I remember that, when I implemented the default value for the column- number property (+/- 2 months ago), the described fallback value in case of zero-or-negative values wasn't provided, but the "error" (= no error according to the Rec) was dealt with in the TableCell or TableColumn's bind() method. I coded this functionality into ColumnNumberPropertyMaker.get() [Didn't get around to rounding the value in case it's non-integer, since I wasn't sure how to check for that... there's still a TODO for that]

Anyway, it was quite straightforward to implement that logic into the Property system. I'm thinking that, if this is shared by a number of properties, then the option should be investigated to abstract this out into a common Maker for the props in question.

I'll look into this as soon as I find some spare time.


Cheers,

Andreas

Reply via email to