diff options
Diffstat (limited to 'src/org/apache/fop/fo/pagination/Root.java')
-rw-r--r-- | src/org/apache/fop/fo/pagination/Root.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/org/apache/fop/fo/pagination/Root.java b/src/org/apache/fop/fo/pagination/Root.java index 23546b083..8eb2721e5 100644 --- a/src/org/apache/fop/fo/pagination/Root.java +++ b/src/org/apache/fop/fo/pagination/Root.java @@ -76,7 +76,8 @@ public class Root extends FObj { LayoutMasterSet layoutMasterSet; Vector pageSequences; - + PageSequence currentPageSequence; + protected Root(FObj parent, PropertyList propertyList) throws FOPException { super(parent, propertyList); @@ -113,13 +114,19 @@ public class Root extends FObj { Enumeration e = pageSequences.elements(); while (e.hasMoreElements()) { - ((PageSequence) e.nextElement()).format(areaTree); + currentPageSequence = (PageSequence) e.nextElement(); + currentPageSequence.format(areaTree); } } public void setLayoutMasterSet(LayoutMasterSet layoutMasterSet) { - this.layoutMasterSet = layoutMasterSet; + this.layoutMasterSet = layoutMasterSet; } + + public PageSequence getCurrentPageSequence() + { + return currentPageSequence; + } } |