aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fo')
-rw-r--r--src/java/org/apache/fop/fo/DelegatingFOEventHandler.java6
-rw-r--r--src/java/org/apache/fop/fo/FOEventHandler.java5
-rw-r--r--src/java/org/apache/fop/fo/FOTreeBuilder.java8
3 files changed, 12 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/fo/DelegatingFOEventHandler.java b/src/java/org/apache/fop/fo/DelegatingFOEventHandler.java
index e64106a80..50026c996 100644
--- a/src/java/org/apache/fop/fo/DelegatingFOEventHandler.java
+++ b/src/java/org/apache/fop/fo/DelegatingFOEventHandler.java
@@ -22,6 +22,7 @@ package org.apache.fop.fo;
import org.xml.sax.SAXException;
import org.apache.fop.apps.FOUserAgent;
+import org.apache.fop.apps.FormattingResults;
import org.apache.fop.fo.extensions.ExternalDocument;
import org.apache.fop.fo.flow.BasicLink;
import org.apache.fop.fo.flow.Block;
@@ -401,4 +402,9 @@ public abstract class DelegatingFOEventHandler extends FOEventHandler {
delegate.endExternalDocument(document);
}
+ @Override
+ public FormattingResults getResults() {
+ return delegate.getResults();
+ }
+
}
diff --git a/src/java/org/apache/fop/fo/FOEventHandler.java b/src/java/org/apache/fop/fo/FOEventHandler.java
index b7bcd4215..33cc507c5 100644
--- a/src/java/org/apache/fop/fo/FOEventHandler.java
+++ b/src/java/org/apache/fop/fo/FOEventHandler.java
@@ -22,6 +22,7 @@ package org.apache.fop.fo;
import org.xml.sax.SAXException;
import org.apache.fop.apps.FOUserAgent;
+import org.apache.fop.apps.FormattingResults;
import org.apache.fop.fo.extensions.ExternalDocument;
import org.apache.fop.fo.flow.BasicLink;
import org.apache.fop.fo.flow.Block;
@@ -557,5 +558,9 @@ public abstract class FOEventHandler {
public void endExternalDocument(ExternalDocument document) {
}
+ public FormattingResults getResults() {
+ return null;
+ }
+
}
diff --git a/src/java/org/apache/fop/fo/FOTreeBuilder.java b/src/java/org/apache/fop/fo/FOTreeBuilder.java
index 38f74d8fd..938efb8f9 100644
--- a/src/java/org/apache/fop/fo/FOTreeBuilder.java
+++ b/src/java/org/apache/fop/fo/FOTreeBuilder.java
@@ -224,13 +224,7 @@ public class FOTreeBuilder extends DefaultHandler {
* @return the results of the rendering process.
*/
public FormattingResults getResults() {
- if (getEventHandler() instanceof AreaTreeHandler) {
- return ((AreaTreeHandler) getEventHandler()).getResults();
- } else {
- //No formatting results available for output formats no
- //involving the layout engine.
- return null;
- }
+ return getEventHandler().getResults();
}
/**