diff options
author | Peter Herweg <pherweg@apache.org> | 2006-01-15 17:34:33 +0000 |
---|---|---|
committer | Peter Herweg <pherweg@apache.org> | 2006-01-15 17:34:33 +0000 |
commit | cbdd6cb8f0eb28813bd04bf892609003448e31cc (patch) | |
tree | fb8ee1f03019eca103843f9c14a51f0b7ed4440e /src/java | |
parent | 2414f465110f00dd1be8d8ab3dd98c0cdd1a1509 (diff) | |
download | xmlgraphics-fop-cbdd6cb8f0eb28813bd04bf892609003448e31cc.tar.gz xmlgraphics-fop-cbdd6cb8f0eb28813bd04bf892609003448e31cc.zip |
support for background-color at fo:table
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369235 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/render/rtf/TableAttributesConverter.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java index c82d31dc2..90d1cac21 100644 --- a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java +++ b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java @@ -129,12 +129,24 @@ public class TableAttributesConverter { if (fobj.getParent() instanceof TableRow) { TableRow parentRow=(TableRow)fobj.getParent(); brd = parentRow.getCommonBorderPaddingBackground(); + color = brd.backgroundColor; } else if (fobj.getParent() instanceof TableHeader) { TableHeader parentHeader=(TableHeader)fobj.getParent(); brd = parentHeader.getCommonBorderPaddingBackground(); + color = brd.backgroundColor; } - color = brd.backgroundColor; + if (color == null + && fobj.getParent()!=null + && fobj.getParent().getParent()!=null + && fobj.getParent().getParent().getParent() instanceof Table) { + + Table table = (Table)fobj.getParent().getParent().getParent(); + brd = table.getCommonBorderPaddingBackground(); + color = brd.backgroundColor; + } + + } if ((color != null) && (color.getAlpha() != 0 |