bckfnn 2004/09/07 05:42:03 Modified: src/java/org/apache/fop/fo FOPropertyMapping.java Log: Use the position shorthand for [absolute|relative]-position. Revision Changes Path 1.19 +6 -2 xml-fop/src/java/org/apache/fop/fo/FOPropertyMapping.java Index: FOPropertyMapping.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FOPropertyMapping.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- FOPropertyMapping.java 7 Sep 2004 12:23:34 -0000 1.18 +++ FOPropertyMapping.java 7 Sep 2004 12:42:03 -0000 1.19 @@ -39,6 +39,7 @@ 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 @@ 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 @@ 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 @@ m.addEnum("absolute", makeEnumProperty(ABSOLUTE, "ABSOLUTE")); m.addEnum("fixed", makeEnumProperty(FIXED, "FIXED")); m.setDefault("static"); + m.setDatatypeParser(new PositionShorthandParser()); addPropertyMaker("position", m); // size
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]