On 22.01.2005 18:42:20 Glen Mazza wrote: > --- Jeremias Maerki <[EMAIL PROTECTED]> wrote: > > > > I'm beginning to think that the layout dimensions > > should be held and provided > > by the layout managers instead of the FObjs. > > (learning here...) > > Can you point me towards FObjs which are currently > holding the layout dimensions -- I want to try to > understand more of what you're talking about.
There are many. The layout dimension map is in FObj. Any FObj can hold certain layout dimensions. > I assume you mean the ipd and bpd values only, or are > there other values which constitute "layout > dimensions"? I'm not certain of the range of values > that layout dimensions consist of. There are other values, too. Have a look at org.apache.fop.datatypes.LengthBase and ...PercentBase which has a list of different values and value calculation rules. > > > To > > evaluate a > > percentage-enabled value the layout manager would > > have to call > > getLength() with some kind of context object that > > allows it to fetch the > > right base values for percentage calculations. > > I assume you're referring to "property contexts" as in > [1] below, correct? > > [1] > http://www.w3.org/TR/2001/REC-xsl-20011015/slice5.html#section-N6968-Property-Context Not exactly. There's some relation but essentially I'm talking about a simple Java interface or object which provides context information for the value calculations. Jeremias Maerki