From 756dd55686904d22f3c0850f0978e7e2caf28cae Mon Sep 17 00:00:00 2001 From: Finn Bock Date: Tue, 7 Sep 2004 12:42:03 +0000 Subject: [PATCH] Use the position shorthand for [absolute|relative]-position. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197925 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/FOPropertyMapping.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java index d8cde86d7..016f051de 100644 --- a/src/java/org/apache/fop/fo/FOPropertyMapping.java +++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java @@ -39,6 +39,7 @@ import org.apache.fop.fo.properties.LengthRangeProperty; import org.apache.fop.fo.properties.LineHeightPropertyMaker; import org.apache.fop.fo.properties.ListProperty; import org.apache.fop.fo.properties.NumberProperty; +import org.apache.fop.fo.properties.PositionShorthandParser; import org.apache.fop.fo.properties.Property; import org.apache.fop.fo.properties.PropertyMaker; import org.apache.fop.fo.properties.ShorthandParser; @@ -511,6 +512,7 @@ public class FOPropertyMapping implements Constants { m.addEnum("fixed", makeEnumProperty(FIXED, "FIXED")); m.addEnum("absolute", makeEnumProperty(ABSOLUTE, "ABSOLUTE")); m.setDefault("auto"); + m.addShorthand(s_generics[PR_POSITION]); addPropertyMaker("absolute-position", m); // top @@ -1257,7 +1259,8 @@ public class FOPropertyMapping implements Constants { m = new ToBeImplementedProperty.Maker(PR_RELATIVE_POSITION); m.setInherited(false); m.setDefault("static"); - addPropertyMaker("relative-position", m); + m.addShorthand(s_generics[PR_POSITION]); + addPropertyMaker("relative-position", m); } private void createAreaAlignmentProperties() { @@ -2503,6 +2506,7 @@ public class FOPropertyMapping implements Constants { m.addEnum("absolute", makeEnumProperty(ABSOLUTE, "ABSOLUTE")); m.addEnum("fixed", makeEnumProperty(FIXED, "FIXED")); m.setDefault("static"); + m.setDatatypeParser(new PositionShorthandParser()); addPropertyMaker("position", m); // size -- 2.39.5