diff options
author | Finn Bock <bckfnn@apache.org> | 2004-02-26 15:33:42 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-02-26 15:33:42 +0000 |
commit | 4da95ec834623cd0927311fb92243815156efd2b (patch) | |
tree | fbd3ef400749b45c7c413cb19ee609a027e97052 /src/java/org/apache/fop/fo/expr/PPColWidthFunction.java | |
parent | 527ca4bef01d01d759eb0a3eb10e019fb8048b7a (diff) | |
download | xmlgraphics-fop-4da95ec834623cd0927311fb92243815156efd2b.tar.gz xmlgraphics-fop-4da95ec834623cd0927311fb92243815156efd2b.zip |
Support for percentages in property expression.
The different length properties all implement a Length interface
and all clients of the property subsystem must use the Length interface
when retrieving lengths.
The two different numerics (absolute and relative) both implement a
Numeric interface and all property calculations are done in terms of
the Numeric interface.
Lengths can be cast to numeric and can thus participate in expresions and
numerics can be cast to length (when dimension is 1) and can thus be used
as a length by the clients.
The call to Length.getValue() will cause relative lengths to be resolved
against their base length, and care must be taken to ensure that
getLength() is only called after all baselength has been assigned to the
FO elements.
PR: 26778 (first part).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197380 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/expr/PPColWidthFunction.java')
-rw-r--r-- | src/java/org/apache/fop/fo/expr/PPColWidthFunction.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java b/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java index 06edf8d41..a34c77399 100644 --- a/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java +++ b/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java @@ -89,7 +89,7 @@ public class PPColWidthFunction extends FunctionBase { + "may only be used on table-column FO"); } // Check if table-layout is "fixed"... - return new TableColLength(d.doubleValue()); + return new TableColLength(d.doubleValue(), pInfo.getFO()); } } |