]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Support for line-stacking-strategy.
authorFinn Bock <bckfnn@apache.org>
Tue, 7 Sep 2004 14:33:47 +0000 (14:33 +0000)
committerFinn Bock <bckfnn@apache.org>
Tue, 7 Sep 2004 14:33:47 +0000 (14:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197930 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FOPropertyMapping.java

index 03bb1ebb791725c502649fcd6c44617f135b1107..67f26fb7c084b110dca0dac1973fa655e63a07bd 100644 (file)
@@ -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