Bläddra i källkod

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
pull/42/head
jtauber 24 år sedan
förälder
incheckning
48454fef63

+ 1
- 1
STATUS Visa fil

@@ -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:

+ 4
- 1
src/org/apache/fop/fo/flow/Table.java Visa fil

@@ -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);

+ 4
- 1
src/org/apache/fop/fo/flow/TableCell.java Visa fil

@@ -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);

+ 5
- 1
src/org/apache/fop/fo/flow/TableRow.java Visa fil

@@ -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);


Laddar…
Avbryt
Spara