aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/area/Footnote.java
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-11-09 22:02:34 +0000
committerKaren Lease <klease@apache.org>2001-11-09 22:02:34 +0000
commit83b0a60b919627a1b8fd45789c2f34e73328433c (patch)
tree335143e1787f73065fef10905c300506f85fbc52 /src/org/apache/fop/area/Footnote.java
parent5516b1d89ca96b33dc5086d08992c3bc6103178e (diff)
downloadxmlgraphics-fop-83b0a60b919627a1b8fd45789c2f34e73328433c.tar.gz
xmlgraphics-fop-83b0a60b919627a1b8fd45789c2f34e73328433c.zip
Add some methods needed by the LayoutManager classes (subject to discussion)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194543 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/area/Footnote.java')
-rw-r--r--src/org/apache/fop/area/Footnote.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/org/apache/fop/area/Footnote.java b/src/org/apache/fop/area/Footnote.java
index d36a769bc..cff6fc2fc 100644
--- a/src/org/apache/fop/area/Footnote.java
+++ b/src/org/apache/fop/area/Footnote.java
@@ -12,7 +12,7 @@ import java.util.List;
import java.util.ArrayList;
// may combine with before float into a conditional area
-public class Footnote implements Serializable {
+public class Footnote extends BlockParent {
Block separator = null;
// footnote has an optional separator
@@ -42,4 +42,17 @@ public class Footnote implements Serializable {
public List getBlocks() {
return blocks;
}
+
+ public MinOptMax getMaxBPD() {
+ MinOptMax maxbpd = parent.getMaxBPD();
+ BodyRegion body = (BodyRegion)parent;
+ Area a = body.getMainReference();
+ if (a != null) {
+ maxbpd = MinOptMax.subtract(maxbpd, a.getContentBPD());
+ }
+ if ((a=body.getBeforeFloat()) != null) {
+ maxbpd = MinOptMax.subtract(maxbpd, a.getContentBPD());
+ }
+ return maxbpd;
+ }
}