aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/AreaTreeHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/area/AreaTreeHandler.java')
-rw-r--r--src/java/org/apache/fop/area/AreaTreeHandler.java22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/java/org/apache/fop/area/AreaTreeHandler.java b/src/java/org/apache/fop/area/AreaTreeHandler.java
index a107da833..7454f4667 100644
--- a/src/java/org/apache/fop/area/AreaTreeHandler.java
+++ b/src/java/org/apache/fop/area/AreaTreeHandler.java
@@ -189,12 +189,12 @@ public class AreaTreeHandler extends FOEventHandler {
}
}
- /**
- * {@inheritDoc}
- * @param pageSequence
- * is the pageSequence being started
- */
+ /** {@inheritDoc} */
public void startPageSequence(PageSequence pageSequence) {
+ startAbstractPageSequence(pageSequence);
+ }
+
+ private void startAbstractPageSequence(AbstractPageSequence pageSequence) {
rootFObj = pageSequence.getRoot();
finishPrevPageSequence(pageSequence.getInitialPageNumber());
pageSequence.initPageNumber();
@@ -238,18 +238,12 @@ public class AreaTreeHandler extends FOEventHandler {
}
}
- /**
- * @see org.apache.fop.fo.FOEventHandler#startExternalDocument(org.apache.fop.fo.extensions.ExternalDocument)
- */
+ /** {@inheritDoc} */
public void startExternalDocument(ExternalDocument document) {
- rootFObj = document.getRoot();
- finishPrevPageSequence(document.getInitialPageNumber());
- document.initPageNumber();
+ startAbstractPageSequence(document);
}
- /**
- * @see org.apache.fop.fo.FOEventHandler#endExternalDocument(org.apache.fop.fo.extensions.ExternalDocument)
- */
+ /** {@inheritDoc} */
public void endExternalDocument(ExternalDocument document) {
if (statistics != null) {
statistics.end();