diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2005-09-23 19:33:04 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2005-09-23 19:33:04 +0000 |
commit | 85d86accdbe79182fbfdea5407e96e9d3de0be47 (patch) | |
tree | 70c284bba29fd5870fc45be23e90d27f16db8aac /src/java/org/apache/fop/fo/flow | |
parent | 0af742ffbc9e8c5d9dc67c24f1a196f49f3f8063 (diff) | |
download | xmlgraphics-fop-85d86accdbe79182fbfdea5407e96e9d3de0be47.tar.gz xmlgraphics-fop-85d86accdbe79182fbfdea5407e96e9d3de0be47.zip |
Added warning for non-applicable borders in case of separate border-model
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@291194 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/TableFObj.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/flow/TableFObj.java b/src/java/org/apache/fop/fo/flow/TableFObj.java index 54fa15135..f40c46c89 100644 --- a/src/java/org/apache/fop/fo/flow/TableFObj.java +++ b/src/java/org/apache/fop/fo/flow/TableFObj.java @@ -77,6 +77,14 @@ public abstract class TableFObj extends FObj { borderBeforePrecedence = pList.get(PR_BORDER_BEFORE_PRECEDENCE).getNumeric(); borderEndPrecedence = pList.get(PR_BORDER_END_PRECEDENCE).getNumeric(); borderStartPrecedence = pList.get(PR_BORDER_START_PRECEDENCE).getNumeric(); + //Complain if table has separate border-model and fo is not a table or cell + //see: Rec 6.7.4, 6.7.6 - 6.7.9 + if (getNameId() != FO_TABLE && getNameId() != FO_TABLE_CELL + && getTable().isSeparateBorderModel() + && getCommonBorderPaddingBackground().hasBorderInfo()) { + getLogger().warn("Borders on " + getName() + + " non-applicable for table with border-collapse=\"separate\""); + } } /** @@ -85,7 +93,7 @@ public abstract class TableFObj extends FObj { * @return the "border-precedence" value for the given side */ public Numeric getBorderPrecedence(int side) { - switch( side ) { + switch (side) { case CommonBorderPaddingBackground.BEFORE: return borderBeforePrecedence; case CommonBorderPaddingBackground.AFTER: @@ -98,7 +106,7 @@ public abstract class TableFObj extends FObj { return null; } } - + /** * Returns the current column index of the given TableFObj * (overridden for Table, TableBody, TableRow) |