aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/pagination
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination')
-rw-r--r--src/java/org/apache/fop/fo/pagination/Root.java25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/Root.java b/src/java/org/apache/fop/fo/pagination/Root.java
index 04014f6fc..c6346e9fb 100644
--- a/src/java/org/apache/fop/fo/pagination/Root.java
+++ b/src/java/org/apache/fop/fo/pagination/Root.java
@@ -27,6 +27,7 @@ import org.xml.sax.Locator;
import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.FOEventHandler;
import org.apache.fop.fo.FONode;
+import org.apache.fop.fo.FOTreeBuilderContext;
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.ValidationException;
@@ -59,6 +60,11 @@ public class Root extends FObj {
private int totalPagesGenerated = 0;
/**
+ * Context class used while building the FO tree.
+ */
+ private FOTreeBuilderContext builderContext;
+
+ /**
* FOEventHandler object for this FO Tree
*/
private FOEventHandler foEventHandler = null;
@@ -164,10 +170,23 @@ public class Root extends FObj {
return foEventHandler;
}
- /**
- * Gets the last page number generated by the previous page-sequence
- * @return the last page number, 0 if no page sequences yet generated
+ /**
+ * Sets the builder context for this FO tree.
+ * @param context the builder context to be used
*/
+ public void setBuilderContext(FOTreeBuilderContext context) {
+ this.builderContext = context;
+ }
+
+ /** {@inheritDoc} */
+ public FOTreeBuilderContext getBuilderContext() {
+ return this.builderContext;
+ }
+
+ /**
+ * Gets the last page number generated by the previous page-sequence
+ * @return the last page number, 0 if no page sequences yet generated
+ */
public int getEndingPageNumberOfPreviousSequence() {
return endingPageNumberOfPreviousSequence;
}