You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/05/11 17:06:44 UTC
cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr/table GridUnit.java
jeremias 2005/05/11 08:06:43
Modified: src/java/org/apache/fop/layoutmgr/table Tag:
Temp_KnuthStylePageBreaking GridUnit.java
Log:
spanned grid units may have a different table-row element associated with them. This is important for border resolution.
Revision Changes Path
No revision
No revision
1.1.2.7 +14 -2 xml-fop/src/java/org/apache/fop/layoutmgr/table/GridUnit.java
Index: GridUnit.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/table/GridUnit.java,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -r1.1.2.6 -r1.1.2.7
--- GridUnit.java 4 May 2005 15:10:19 -0000 1.1.2.6
+++ GridUnit.java 11 May 2005 15:06:43 -0000 1.1.2.7
@@ -49,6 +49,8 @@
private PrimaryGridUnit primary;
/** Table cell which occupies this grid unit */
private TableCell cell;
+ /** Table row which occupied this grid unit (may be null) */
+ private TableRow row;
/** Table column that this grid unit belongs to */
private TableColumn column;
@@ -89,13 +91,23 @@
}
public TableRow getRow() {
- if (getCell().getParent() instanceof TableRow) {
+ if (this.row != null) {
+ return this.row;
+ } else if (getCell().getParent() instanceof TableRow) {
return (TableRow)getCell().getParent();
} else {
return null;
}
}
+ /**
+ * Sets the table-row FO, if applicable.
+ * @param rowFO the table-row FO
+ */
+ public void setRow(TableRow rowFO) {
+ this.row = rowFO;
+ }
+
public TableBody getBody() {
FONode node = getCell();
while (node != null && !(node instanceof TableBody)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org