diff options
author | arved <arved@unknown> | 2001-02-10 03:32:05 +0000 |
---|---|---|
committer | arved <arved@unknown> | 2001-02-10 03:32:05 +0000 |
commit | 84c0fc6074c41b54f9d97506cba73023d6aabcc6 (patch) | |
tree | 70da163096a724bec1d9292b59231f179498d51b /src | |
parent | d6d03eedd79c1295909f00badd0bbd3892226e23 (diff) | |
download | xmlgraphics-fop-84c0fc6074c41b54f9d97506cba73023d6aabcc6.tar.gz xmlgraphics-fop-84c0fc6074c41b54f9d97506cba73023d6aabcc6.zip |
store FO creator (MIF support)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194039 13f79535-47bb-0310-9956-ffa450edef68
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; + } + } |