At 10:25 AM 5/10/02 +0100, Tomas Frydrych wrote: >The other thing related to this, is that we will really need a set of >document-wide properties stored within our document, from which >the sections would inherit, the overall document direction being one >of such properties.
Yep. Once we have this in place, that'd be a great place to store the default lang as well. The current solution (attaching it to each block) evidently works, but it's kinda bloaty. >It has to propagate hardcoded-default- >>document->section->block; at the moment it propagates >hardcoded-default->section->block. Yep. >I suspect the best way of >handling this would be exactly the same as we handle section >properties in the PT, Are you suggesting that we mirror the existing generic PROPS= mechanism for these few inheritable CSS-like properties? Off the cuff, that's fine with me. Upgrading the PROPS mechanism slightly so that it can store all behind-the-scenes formatter info sounds like a big design win. >eventhough this will affect lot of the present >code that querries properties. When I originally did the property propagation, I didn't encapsulate that lookup logic because there just weren't that many instances. If it's gotten out of hand in the mean time, then a tad more refactoring is probably in order. Paul
