1 17 18 19 20 package org.apache.fop.fo.properties; 21 22 import org.apache.fop.fo.Constants; 23 import org.apache.fop.fo.PropertyList; 24 import org.apache.fop.fo.expr.PropertyException; 25 26 30 public class SpacePropertyMaker extends CorrespondingPropertyMaker { 31 32 35 public SpacePropertyMaker(PropertyMaker baseMaker) { 36 super(baseMaker); 37 } 38 39 42 public Property compute(PropertyList propertyList) throws PropertyException { 43 Property prop = super.compute(propertyList); 44 if (prop != null && prop instanceof SpaceProperty) { 45 ((SpaceProperty)prop).setConditionality( 46 EnumProperty.getInstance(Constants.EN_RETAIN, "RETAIN"), false); 47 } 48 return prop; 49 } 50 } 51 | Popular Tags |