aboutsummaryrefslogtreecommitdiffstats
path: root/src/sandbox
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2009-10-13 16:41:13 +0000
committerVincent Hennebert <vhennebert@apache.org>2009-10-13 16:41:13 +0000
commit26cd587bf66b2895575a231e8a94d8d1b2721b23 (patch)
treed0dcf65b9a598873275e0eea303b58326c3b9431 /src/sandbox
parentd3551e5d341ef9ef2ba2091dd9aa91c279bd9515 (diff)
parenta267cc5fa78c67e2b6257a9b54c0726a18b1a51b (diff)
downloadxmlgraphics-fop-26cd587bf66b2895575a231e8a94d8d1b2721b23.tar.gz
xmlgraphics-fop-26cd587bf66b2895575a231e8a94d8d1b2721b23.zip
Merged changes from Trunk up to revision 824832
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824839 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/sandbox')
-rw-r--r--src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java11
-rw-r--r--src/sandbox/org/apache/fop/render/svg/SVGPrintDocumentHandler.java3
2 files changed, 9 insertions, 5 deletions
diff --git a/src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java b/src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java
index 42ca17e08..6c775f177 100644
--- a/src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java
+++ b/src/sandbox/org/apache/fop/render/svg/SVGDocumentHandler.java
@@ -45,15 +45,17 @@ import org.xml.sax.helpers.AttributesImpl;
import org.apache.commons.io.IOUtils;
+import org.apache.fop.render.bitmap.BitmapRendererEventProducer;
import org.apache.fop.render.bitmap.MultiFileRenderingUtil;
import org.apache.fop.render.intermediate.DelegatingFragmentContentHandler;
+import org.apache.fop.render.intermediate.IFDocumentHandler;
import org.apache.fop.render.intermediate.IFException;
import org.apache.fop.render.intermediate.IFPainter;
import org.apache.fop.util.GenerationHelperContentHandler;
import org.apache.fop.util.XMLUtil;
/**
- * {@code IFDocumentHandler} implementation that writes SVG 1.1.
+ * {@link IFDocumentHandler} implementation that writes SVG 1.1.
*/
public class SVGDocumentHandler extends AbstractSVGDocumentHandler {
@@ -209,9 +211,10 @@ public class SVGDocumentHandler extends AbstractSVGDocumentHandler {
} else {
out = this.multiFileUtil.createOutputStream(index);
if (out == null) {
- //TODO Convert to event
- throw new IFException(
- "No filename information available. Stopping after first page.", null);
+ BitmapRendererEventProducer eventProducer
+ = BitmapRendererEventProducer.Provider.get(
+ getUserAgent().getEventBroadcaster());
+ eventProducer.stoppingAfterFirstPageNoFilename(this);
}
}
} catch (IOException ioe) {
diff --git a/src/sandbox/org/apache/fop/render/svg/SVGPrintDocumentHandler.java b/src/sandbox/org/apache/fop/render/svg/SVGPrintDocumentHandler.java
index 9746fe8ec..e5832eba1 100644
--- a/src/sandbox/org/apache/fop/render/svg/SVGPrintDocumentHandler.java
+++ b/src/sandbox/org/apache/fop/render/svg/SVGPrintDocumentHandler.java
@@ -27,12 +27,13 @@ import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
import org.apache.fop.render.intermediate.IFConstants;
+import org.apache.fop.render.intermediate.IFDocumentHandler;
import org.apache.fop.render.intermediate.IFException;
import org.apache.fop.render.intermediate.IFPainter;
import org.apache.fop.util.XMLUtil;
/**
- * {@code IFDocumentHandler} implementation that writes SVG Print.
+ * {@link IFDocumentHandler} implementation that writes SVG Print.
*/
public class SVGPrintDocumentHandler extends AbstractSVGDocumentHandler {