From: Finn Bock Date: Tue, 7 Sep 2004 14:33:47 +0000 (+0000) Subject: Support for line-stacking-strategy. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~561 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=780d6e7c77f410f4cc33feb31e6afec0738ab1cc;p=xmlgraphics-fop.git Support for line-stacking-strategy. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197930 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java index 03bb1ebb7..67f26fb7c 100644 --- a/src/java/org/apache/fop/fo/FOPropertyMapping.java +++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java @@ -1494,9 +1494,12 @@ public class FOPropertyMapping implements Constants { addPropertyMaker("line-height-shift-adjustment", m); // line-stacking-strategy - m = new ToBeImplementedProperty.Maker(PR_LINE_STACKING_STRATEGY); + m = new EnumProperty.Maker(PR_LINE_STACKING_STRATEGY); m.setInherited(true); - m.setDefault("line-height"); + m.addEnum("line-height", makeEnumProperty(LINE_HEIGHT, "LINE_HEIGHT")); + m.addEnum("font-height", makeEnumProperty(FONT_HEIGHT, "FONT_HEIGHT")); + m.addEnum("max-height", makeEnumProperty(MAX_HEIGHT, "MAX_HEIGHT")); + m.setDefault("max-height"); addPropertyMaker("line-stacking-strategy", m); // linefeed-treatment