import org.apache.fop.fo.properties.SpacePropertyMaker;
import org.apache.fop.fo.properties.SpacingPropertyMaker;
import org.apache.fop.fo.properties.StringProperty;
+import org.apache.fop.fo.properties.TableBorderPrecedence;
import org.apache.fop.fo.properties.TextDecorationProperty;
import org.apache.fop.fo.properties.ToBeImplementedProperty;
PropertyMaker sub;
// border-after-precedence
- m = new ToBeImplementedProperty.Maker(PR_BORDER_AFTER_PRECEDENCE);
+ m = new TableBorderPrecedence(PR_BORDER_AFTER_PRECEDENCE);
m.setInherited(false);
- m.setDefault("none");
+ m.addEnum("force", getEnumProperty(EN_FORCE, "FORCE"));
addPropertyMaker("border-after-precedence", m);
// border-before-precedence
- m = new ToBeImplementedProperty.Maker(PR_BORDER_BEFORE_PRECEDENCE);
+ m = new TableBorderPrecedence(PR_BORDER_BEFORE_PRECEDENCE);
m.setInherited(false);
- m.setDefault("none");
+ m.addEnum("force", getEnumProperty(EN_FORCE, "FORCE"));
addPropertyMaker("border-before-precedence", m);
// border-collapse
addPropertyMaker("border-collapse", m);
// border-end-precedence
- m = new ToBeImplementedProperty.Maker(PR_BORDER_END_PRECEDENCE);
+ m = new TableBorderPrecedence(PR_BORDER_END_PRECEDENCE);
m.setInherited(false);
- m.setDefault("none");
+ m.addEnum("force", getEnumProperty(EN_FORCE, "FORCE"));
addPropertyMaker("border-end-precedence", m);
// border-separation
addPropertyMaker("border-separation", m);
// border-start-precedence
- m = new ToBeImplementedProperty.Maker(PR_BORDER_START_PRECEDENCE);
+ m = new TableBorderPrecedence(PR_BORDER_START_PRECEDENCE);
m.setInherited(false);
- m.setDefault("none");
+ m.addEnum("force", getEnumProperty(EN_FORCE, "FORCE"));
addPropertyMaker("border-start-precedence", m);
// caption-side
package org.apache.fop.fo.flow;
-import org.xml.sax.Locator;
-
import java.util.List;
+import org.xml.sax.Locator;
+
import org.apache.fop.apps.FOPException;
+import org.apache.fop.datatypes.Numeric;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.PropertyList;
private CommonMarginBlock commonMarginBlock;
private CommonRelativePosition commonRelativePosition;
private LengthRangeProperty blockProgressionDimension;
- // private ToBeImplementedProperty borderAfterPrecedence;
- // private ToBeImplementedProperty borderBeforePrecedence;
+ private Numeric borderAfterPrecedence;
+ private Numeric borderBeforePrecedence;
private int borderCollapse;
- // private ToBeImplementedProperty borderEndPrecedence;
+ private Numeric borderEndPrecedence;
private LengthPairProperty borderSeparation;
- // private ToBeImplementedProperty borderStartPrecedence;
+ private Numeric borderStartPrecedence;
private int breakAfter;
private int breakBefore;
private String id;
commonMarginBlock = pList.getMarginBlockProps();
commonRelativePosition = pList.getRelativePositionProps();
blockProgressionDimension = pList.get(PR_BLOCK_PROGRESSION_DIMENSION).getLengthRange();
- // borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE);
- // borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE);
+ borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE).getNumeric();
+ borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE).getNumeric();
borderCollapse = pList.get(PR_BORDER_COLLAPSE).getEnum();
- // borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE);
+ borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE).getNumeric();
borderSeparation = pList.get(PR_BORDER_SEPARATION).getLengthPair();
- // borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE);
+ borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE).getNumeric();
breakAfter = pList.get(PR_BREAK_AFTER).getEnum();
breakBefore = pList.get(PR_BREAK_BEFORE).getEnum();
id = pList.get(PR_ID).getString();
tableOmitHeaderAtBreak = pList.get(PR_TABLE_OMIT_HEADER_AT_BREAK).getEnum();
//width = pList.get(PR_WIDTH).getLength();
writingMode = pList.get(PR_WRITING_MODE).getEnum();
-
+
//Create default column in case no table-columns will be defined.
defaultColumn = new TableColumn(this);
PropertyList colPList = new StaticPropertyList(defaultColumn, pList);
import org.xml.sax.Locator;
import org.apache.fop.apps.FOPException;
+import org.apache.fop.datatypes.Numeric;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.PropertyList;
private CommonAural commonAural;
private CommonBorderPaddingBackground commonBorderPaddingBackground;
private CommonRelativePosition commonRelativePosition;
- // private ToBeImplementedProperty borderAfterPrecedence;
- // private ToBeImplementedProperty borderBeforePrecedence;
- // private ToBeImplementedProperty borderEndPrecedence;
- // private ToBeImplementedProperty borderStartPrecedence;
+ private Numeric borderAfterPrecedence;
+ private Numeric borderBeforePrecedence;
+ private Numeric borderEndPrecedence;
+ private Numeric borderStartPrecedence;
private int visibility;
// End of property values
commonAural = pList.getAuralProps();
commonBorderPaddingBackground = pList.getBorderPaddingBackgroundProps();
commonRelativePosition = pList.getRelativePositionProps();
- // borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE);
- // borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE);
- // borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE);
- // borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE);
+ borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE).getNumeric();
+ borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE).getNumeric();
+ borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE).getNumeric();
+ borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE).getNumeric();
visibility = pList.get(PR_VISIBILITY).getEnum();
//Used by convertCellsToRows()
private CommonAural commonAural;
private CommonBorderPaddingBackground commonBorderPaddingBackground;
private CommonRelativePosition commonRelativePosition;
- // private ToBeImplementedProperty borderAfterPrecedence;
- // private ToBeImplementedProperty borderBeforePrecedence;
- // private ToBeImplementedProperty borderEndPrecedence;
- // private ToBeImplementedProperty borderStartPrecedence;
+ private Numeric borderAfterPrecedence;
+ private Numeric borderBeforePrecedence;
+ private Numeric borderEndPrecedence;
+ private Numeric borderStartPrecedence;
private LengthRangeProperty blockProgressionDimension;
private int borderCollapse; //inherited from fo:table
private LengthPairProperty borderSeparation; //inherited from fo:table
commonAural = pList.getAuralProps();
commonBorderPaddingBackground = pList.getBorderPaddingBackgroundProps();
commonRelativePosition = pList.getRelativePositionProps();
- // borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE);
- // borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE);
- // borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE);
- // borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE);
+ borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE).getNumeric();
+ borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE).getNumeric();
+ borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE).getNumeric();
+ borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE).getNumeric();
blockProgressionDimension = pList.get(PR_BLOCK_PROGRESSION_DIMENSION).getLengthRange();
borderCollapse = pList.get(PR_BORDER_COLLAPSE).getEnum();
borderSeparation = pList.get(PR_BORDER_SEPARATION).getLengthPair();
public class TableColumn extends FObj {
// The value of properties relevant for fo:table-column.
private CommonBorderPaddingBackground commonBorderPaddingBackground;
- // private ToBeImplementedProperty borderAfterPrecedence;
- // private ToBeImplementedProperty borderBeforePrecedence;
- // private ToBeImplementedProperty borderEndPrecedence;
- // private ToBeImplementedProperty borderStartPrecedence;
+ private Numeric borderAfterPrecedence;
+ private Numeric borderBeforePrecedence;
+ private Numeric borderEndPrecedence;
+ private Numeric borderStartPrecedence;
private Numeric columnNumber;
private Length columnWidth;
private Numeric numberColumnsRepeated;
*/
public void bind(PropertyList pList) throws FOPException {
commonBorderPaddingBackground = pList.getBorderPaddingBackgroundProps();
- // borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE);
- // borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE);
- // borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE);
- // borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE);
+ borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE).getNumeric();
+ borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE).getNumeric();
+ borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE).getNumeric();
+ borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE).getNumeric();
columnNumber = pList.get(PR_COLUMN_NUMBER).getNumeric();
columnWidth = pList.get(PR_COLUMN_WIDTH).getLength();
numberColumnsRepeated = pList.get(PR_NUMBER_COLUMNS_REPEATED).getNumeric();
import org.apache.fop.apps.FOPException;
import org.apache.fop.datatypes.Length;
+import org.apache.fop.datatypes.Numeric;
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.PropertyList;
private CommonAural commonAural;
private CommonBorderPaddingBackground commonBorderPaddingBackground;
private CommonRelativePosition commonRelativePosition;
- // private ToBeImplementedProperty borderAfterPrecedence;
- // private ToBeImplementedProperty borderBeforePrecedence;
- // private ToBeImplementedProperty borderEndPrecedence;
- // private ToBeImplementedProperty borderStartPrecedence;
+ private Numeric borderAfterPrecedence;
+ private Numeric borderBeforePrecedence;
+ private Numeric borderEndPrecedence;
+ private Numeric borderStartPrecedence;
private int breakAfter;
private int breakBefore;
private Length height;
commonAural = pList.getAuralProps();
commonBorderPaddingBackground = pList.getBorderPaddingBackgroundProps();
commonRelativePosition = pList.getRelativePositionProps();
- // borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE);
- // borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE);
- // borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE);
- // borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE);
+ borderAfterPrecedence = pList.get(PR_BORDER_AFTER_PRECEDENCE).getNumeric();
+ borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE).getNumeric();
+ borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE).getNumeric();
+ borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE).getNumeric();
breakAfter = pList.get(PR_BREAK_AFTER).getEnum();
breakBefore = pList.get(PR_BREAK_BEFORE).getEnum();
id = pList.get(PR_ID).getString();