From cd600b952b6326195b1670e6a17af75d51f46b57 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 16 Dec 2005 14:40:20 +0000 Subject: XMLHandler interface changed so it reports whether it supports a particular Renderer instead of reporting the MIME type. One MIME type could be implemented by multiple Renderer implementations so conflicts could occur. Almost all XMLHandler implementations will have a dependency on a particular Renderer implementation. XMLHandlers are now configurable. Standard XMLHandlers now get registered through service lookup. Simplification: XMLHandlers don't need nested classes for the handling functionality anymore. If Batik, for example, is not in the classpath it will already be detected while registering the XMLHandlers. The RendererContextConstants interface now standardizes some of the keys used in the RendererContext and helps with actually decoupling the XMLHandler implementations from the renderers. This is one step towards making Batik an optional dependency and making it possible to move the SVG functionality to a separate place later. Extracted the SVG XMLHandler functionality from the sandbox SVGRenderer into a separate class following the example of the other renderers. Bugfix in PSSVGHandler: Fixed a copy/paste error which could lead to wrong clipping of an SVG image for PostScript output. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357166 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/META-INF/services/org.apache.fop.render.XMLHandler | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/java/META-INF/services/org.apache.fop.render.XMLHandler (limited to 'src/java/META-INF') diff --git a/src/java/META-INF/services/org.apache.fop.render.XMLHandler b/src/java/META-INF/services/org.apache.fop.render.XMLHandler new file mode 100644 index 000000000..96c44118c --- /dev/null +++ b/src/java/META-INF/services/org.apache.fop.render.XMLHandler @@ -0,0 +1,3 @@ +org.apache.fop.render.pdf.PDFSVGHandler +org.apache.fop.render.ps.PSSVGHandler +org.apache.fop.render.java2d.Java2DSVGHandler \ No newline at end of file -- cgit v1.2.3