From 66ed35f03e60d547a98b0508a237ff1249665be6 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Fri, 30 Aug 2002 15:53:44 +0000 Subject: [PATCH] Added inherited percentage reference and accessors git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195128 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/datatypes/Inherit.java | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/org/apache/fop/datatypes/Inherit.java b/src/org/apache/fop/datatypes/Inherit.java index 3a6b94a94..d7e2b3c6e 100644 --- a/src/org/apache/fop/datatypes/Inherit.java +++ b/src/org/apache/fop/datatypes/Inherit.java @@ -3,6 +3,7 @@ package org.apache.fop.datatypes; import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.AbstractPropertyValue; import org.apache.fop.fo.expr.PropertyValue; +import org.apache.fop.fo.expr.PropertyTriplet; import org.apache.fop.fo.Properties; import org.apache.fop.fo.PropertyConsts; @@ -32,6 +33,10 @@ public class Inherit extends AbstractPropertyValue { */ private int sourceProperty; + /** + */ + private PropertyTriplet inheritedPercentage = null; + /** * @param property the int index of the property on which * this value is being defined. @@ -90,6 +95,25 @@ public class Inherit extends AbstractPropertyValue { return sourceProperty; } + /** + * @return PropertyTriplet which contains or will contain the + * the computed value of the percentage being inherited. This field + * will be null except when a percentage is being inherited. If so, + * a null value will be returned. + */ + public PropertyTriplet getInheritedPercentage() { + return inheritedPercentage; + } + + /** + * @param percentageTriplet the PropertyTriplet which contains + * or will contain the the computed value of the percentage being + * inherited. + */ + public void setInheritedPercentage(PropertyTriplet percentage) { + inheritedPercentage = percentage; + } + /** * validate the Inherit against the associated property. */ -- 2.39.5