aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjtauber <jtauber@unknown>1999-12-03 11:17:47 +0000
committerjtauber <jtauber@unknown>1999-12-03 11:17:47 +0000
commit2e715ee1a4fa519fe751eb32d93258535fbe4b83 (patch)
tree507b58a1b8d87f4bd2c31c700ea40f7da7f39d3e
parentb32c96b1206439b04a8ff2985302af1971a2d577 (diff)
downloadxmlgraphics-fop-2e715ee1a4fa519fe751eb32d93258535fbe4b83.tar.gz
xmlgraphics-fop-2e715ee1a4fa519fe751eb32d93258535fbe4b83.zip
background-color now works on list-block (contributed by Eric Schaeffer)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193265 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--STATUS1
-rw-r--r--src/org/apache/fop/fo/flow/ListBlock.java5
2 files changed, 6 insertions, 0 deletions
diff --git a/STATUS b/STATUS
index 8191e0d62..1304f4502 100644
--- a/STATUS
+++ b/STATUS
@@ -36,6 +36,7 @@ Done since 0.12.0 release:
basic support for padding-{top,left,bottom,right} on blocks.
implemented simple-link (don't think it works, though)
XTCommandLine now works again
+background color works on list-block
Done for 0.12.0 release:
diff --git a/src/org/apache/fop/fo/flow/ListBlock.java b/src/org/apache/fop/fo/flow/ListBlock.java
index 931251adb..cad844d3e 100644
--- a/src/org/apache/fop/fo/flow/ListBlock.java
+++ b/src/org/apache/fop/fo/flow/ListBlock.java
@@ -54,6 +54,7 @@ package org.apache.fop.fo.flow;
// FOP
import org.apache.fop.fo.*;
import org.apache.fop.fo.properties.*;
+import org.apache.fop.datatypes.*;
import org.apache.fop.layout.Area;
import org.apache.fop.layout.BlockArea;
import org.apache.fop.layout.FontState;
@@ -88,6 +89,7 @@ public class ListBlock extends FObj {
int provisionalDistanceBetweenStarts;
int provisionalLabelSeparation;
int spaceBetweenListRows = 0;
+ ColorType backgroundColor;
public ListBlock(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
@@ -126,6 +128,8 @@ public class ListBlock extends FObj {
this.provisionalLabelSeparation =
this.properties.get("provisional-label-separation").getLength().mvalue();
this.spaceBetweenListRows = 0; // not used at present
+ this.backgroundColor =
+ this.properties.get("background-color").getColorType();
this.marker = 0;
@@ -148,6 +152,7 @@ public class ListBlock extends FObj {
area.spaceLeft(), startIndent, endIndent, 0,
align, alignLast, lineHeight);
blockArea.setPage(area.getPage());
+ blockArea.setBackgroundColor(backgroundColor);
blockArea.start();
int numChildren = this.children.size();