aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjtauber <jtauber@unknown>1999-11-22 18:09:40 +0000
committerjtauber <jtauber@unknown>1999-11-22 18:09:40 +0000
commitafe7f2ed9c43dd1b52b7618fe13918e73f0fafe1 (patch)
tree7fd9d2b55b8a9352bb38c458f3a4bbcb7e1ed96d
parentc1ad1ad85e81ef103443fe944172ed98d91f68d4 (diff)
downloadxmlgraphics-fop-afe7f2ed9c43dd1b52b7618fe13918e73f0fafe1.tar.gz
xmlgraphics-fop-afe7f2ed9c43dd1b52b7618fe13918e73f0fafe1.zip
added Eric Schaeffer's fixes for when tables are in static-content
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193237 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--STATUS2
-rw-r--r--src/org/apache/fop/fo/flow/Table.java5
-rw-r--r--src/org/apache/fop/fo/flow/TableCell.java5
-rw-r--r--src/org/apache/fop/fo/flow/TableRow.java6
4 files changed, 14 insertions, 4 deletions
diff --git a/STATUS b/STATUS
index 470d66694..e12212087 100644
--- a/STATUS
+++ b/STATUS
@@ -9,7 +9,7 @@ Get images working
[PARTIAL] Incorporate Arved Sandstrom's simple-link implementation
Switch to using Status object as return from layout()
Implement basic keeps
-Incorporate Eric Schaeffer's fix to tables in static-content
+[DONE]Incorporate Eric Schaeffer's fix to tables in static-content
[DONE] Incorporate Kelly Campell's fixes to GifJpegImage
Other Bugs to fix:
diff --git a/src/org/apache/fop/fo/flow/Table.java b/src/org/apache/fop/fo/flow/Table.java
index eff120aa5..a41c938e6 100644
--- a/src/org/apache/fop/fo/flow/Table.java
+++ b/src/org/apache/fop/fo/flow/Table.java
@@ -22,7 +22,7 @@
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.
- 4. The names "Fop" and "Apache Software Foundation" must not be used to
+ 4. The names "FOP" and "Apache Software Foundation" must not be used to
endorse or promote products derived from this software without prior
written permission. For written permission, please contact
apache@apache.org.
@@ -153,6 +153,9 @@ public class Table extends FObj {
blockArea.setPage(area.getPage());
blockArea.start();
+ // added by Eric Shaeffer
+ currentColumnNumber = 0;
+
int numChildren = this.children.size();
for (int i = this.marker; i < numChildren; i++) {
FONode fo = (FONode) children.elementAt(i);
diff --git a/src/org/apache/fop/fo/flow/TableCell.java b/src/org/apache/fop/fo/flow/TableCell.java
index 5abe8c578..f3bc0c063 100644
--- a/src/org/apache/fop/fo/flow/TableCell.java
+++ b/src/org/apache/fop/fo/flow/TableCell.java
@@ -22,7 +22,7 @@
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.
- 4. The names "Fop" and "Apache Software Foundation" must not be used to
+ 4. The names "FOP" and "Apache Software Foundation" must not be used to
endorse or promote products derived from this software without prior
written permission. For written permission, please contact
apache@apache.org.
@@ -142,6 +142,9 @@ public class TableCell extends FObj {
blockArea.setPage(area.getPage());
blockArea.start();
+ // added by Eric Shaeffer
+ height = 0;
+
int numChildren = this.children.size();
for (int i = this.marker; i < numChildren; i++) {
FObj fo = (FObj) children.elementAt(i);
diff --git a/src/org/apache/fop/fo/flow/TableRow.java b/src/org/apache/fop/fo/flow/TableRow.java
index 9578f0ea3..8f4549345 100644
--- a/src/org/apache/fop/fo/flow/TableRow.java
+++ b/src/org/apache/fop/fo/flow/TableRow.java
@@ -22,7 +22,7 @@
Alternately, this acknowledgment may appear in the software itself, if
and wherever such third-party acknowledgments normally appear.
- 4. The names "Fop" and "Apache Software Foundation" must not be used to
+ 4. The names "FOP" and "Apache Software Foundation" must not be used to
endorse or promote products derived from this software without prior
written permission. For written permission, please contact
apache@apache.org.
@@ -148,6 +148,10 @@ public class TableRow extends FObj {
return OK;
}
+ // added by Eric Schaeffer
+ widthOfCellsSoFar = 0;
+ largestCellHeight = 0;
+
for (int i = this.marker; i < numChildren; i++) {
TableCell cell = (TableCell) children.elementAt(i);