diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/org/apache/fop/fo/flow/Table.java | 1 | ||||
-rw-r--r-- | src/org/apache/fop/fo/flow/TableBody.java | 1 | ||||
-rw-r--r-- | src/org/apache/fop/fo/flow/TableCell.java | 1 | ||||
-rw-r--r-- | src/org/apache/fop/fo/flow/TableColumn.java | 1 | ||||
-rw-r--r-- | src/org/apache/fop/fo/flow/TableRow.java | 1 | ||||
-rw-r--r-- | src/org/apache/fop/layout/Area.java | 9 |
6 files changed, 14 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/flow/Table.java b/src/org/apache/fop/fo/flow/Table.java index 53d47993e..279e7c4c1 100644 --- a/src/org/apache/fop/fo/flow/Table.java +++ b/src/org/apache/fop/fo/flow/Table.java @@ -184,6 +184,7 @@ public class Table extends FObj { this.areaContainer = new AreaContainer(fs, 0, 0, area.getAllocationWidth(), area.spaceLeft(), Position.STATIC); + areaContainer.foCreator=this; // G Seshadri areaContainer.setPage(area.getPage()); areaContainer.setBackgroundColor(backgroundColor); areaContainer.setBorderStyle(borderStyle, borderStyle, diff --git a/src/org/apache/fop/fo/flow/TableBody.java b/src/org/apache/fop/fo/flow/TableBody.java index 67d1931be..9f3ecae1b 100644 --- a/src/org/apache/fop/fo/flow/TableBody.java +++ b/src/org/apache/fop/fo/flow/TableBody.java @@ -172,6 +172,7 @@ public class TableBody extends FObj { -area.borderWidthTop + area.getHeight(), area.getAllocationWidth(), area.spaceLeft(), Position.RELATIVE); + areaContainer.foCreator=this; // G Seshadri areaContainer.setPage(area.getPage()); areaContainer.setBackgroundColor(backgroundColor); areaContainer.setBorderStyle(borderStyle, borderStyle, diff --git a/src/org/apache/fop/fo/flow/TableCell.java b/src/org/apache/fop/fo/flow/TableCell.java index b98e31bb5..0849c24d9 100644 --- a/src/org/apache/fop/fo/flow/TableCell.java +++ b/src/org/apache/fop/fo/flow/TableCell.java @@ -260,6 +260,7 @@ public class TableCell extends FObj { new AreaContainer(fs, startOffset - area.borderWidthLeft, - area.borderWidthTop + ((this.marker ==0) ? spaceBefore : 0), width, area.spaceLeft(), Position.RELATIVE); + areaContainer.foCreator=this; // G Seshadri areaContainer.setPage(area.getPage()); areaContainer.setPadding(paddingTop, paddingLeft, paddingBottom, paddingRight); diff --git a/src/org/apache/fop/fo/flow/TableColumn.java b/src/org/apache/fop/fo/flow/TableColumn.java index a543e3f32..a2430dc73 100644 --- a/src/org/apache/fop/fo/flow/TableColumn.java +++ b/src/org/apache/fop/fo/flow/TableColumn.java @@ -203,6 +203,7 @@ public class TableColumn extends FObj { this.areaContainer = new AreaContainer(fs, columnOffset - area.borderWidthLeft, -area.borderWidthTop, columnWidth, area.getHeight(), Position.RELATIVE); + areaContainer.foCreator=this; // G Seshadri areaContainer.setPage(area.getPage()); areaContainer.setPadding(paddingTop, paddingLeft, paddingBottom, paddingRight); diff --git a/src/org/apache/fop/fo/flow/TableRow.java b/src/org/apache/fop/fo/flow/TableRow.java index 048db3e3a..d3bc2cf34 100644 --- a/src/org/apache/fop/fo/flow/TableRow.java +++ b/src/org/apache/fop/fo/flow/TableRow.java @@ -393,6 +393,7 @@ public class TableRow extends FObj { this.areaContainer = new AreaContainer(fs, -area.borderWidthLeft, -area.borderWidthTop, area.getAllocationWidth(), area.spaceLeft(), Position.RELATIVE); + areaContainer.foCreator=this; // G Seshadri areaContainer.setPage(area.getPage()); areaContainer.setPadding(paddingTop, paddingLeft, paddingBottom, paddingRight); diff --git a/src/org/apache/fop/layout/Area.java b/src/org/apache/fop/layout/Area.java index 22489857a..a3abb46df 100644 --- a/src/org/apache/fop/layout/Area.java +++ b/src/org/apache/fop/layout/Area.java @@ -91,6 +91,10 @@ abstract public class Area extends Box { protected int paddingBottom; protected int paddingRight; + /* author : Seshadri G + ** the fo which created it */ + public org.apache.fop.fo.FObj foCreator; + public int borderWidthTop; public int borderWidthLeft; public int borderWidthRight; @@ -311,4 +315,9 @@ abstract public class Area extends Box { return idReferences; } + /* Author seshadri */ + public org.apache.fop.fo.FObj getfoCreator() { + return this.foCreator; + } + } |