aboutsummaryrefslogtreecommitdiffstats
path: root/src/sandbox
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-01-11 11:27:03 +0000
committerJeremias Maerki <jeremias@apache.org>2009-01-11 11:27:03 +0000
commit04bb06d6912f18601d1623935ac0d202da372e67 (patch)
tree1fbba230b16501945e223b4c0bfe5b8019ce669b /src/sandbox
parente381d274f38598752ecc04a82085eea2962d5d4d (diff)
downloadxmlgraphics-fop-04bb06d6912f18601d1623935ac0d202da372e67.tar.gz
xmlgraphics-fop-04bb06d6912f18601d1623935ac0d202da372e67.zip
Added general support for the fox:conversion-mode inside the new IF.
Cleaned up usage of fox:conversion-mode foreign attribute. Plus additional cleanup. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@733455 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/sandbox')
-rw-r--r--src/sandbox/org/apache/fop/render/svg/SVGPainter.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/sandbox/org/apache/fop/render/svg/SVGPainter.java b/src/sandbox/org/apache/fop/render/svg/SVGPainter.java
index e1626e6f9..d427096be 100644
--- a/src/sandbox/org/apache/fop/render/svg/SVGPainter.java
+++ b/src/sandbox/org/apache/fop/render/svg/SVGPainter.java
@@ -41,12 +41,11 @@ import org.apache.xmlgraphics.image.loader.ImageException;
import org.apache.xmlgraphics.image.loader.ImageInfo;
import org.apache.xmlgraphics.image.loader.ImageManager;
import org.apache.xmlgraphics.image.loader.ImageSessionContext;
-import org.apache.xmlgraphics.util.QName;
import org.apache.xmlgraphics.xmp.Metadata;
import org.apache.fop.apps.MimeConstants;
import org.apache.fop.events.ResourceEventProducer;
-import org.apache.fop.fo.extensions.ExtensionElementMapping;
+import org.apache.fop.render.ImageHandlerUtil;
import org.apache.fop.render.RenderingContext;
import org.apache.fop.render.intermediate.AbstractIFPainter;
import org.apache.fop.render.intermediate.IFConstants;
@@ -193,9 +192,6 @@ public class SVGPainter extends AbstractIFPainter implements SVGConstants {
}
}
- private static final QName CONVERSION_MODE
- = new QName(ExtensionElementMapping.URI, null, "conversion-mode");
-
/** {@inheritDoc} */
public void drawImage(String uri, Rectangle rect) throws IFException {
try {
@@ -209,7 +205,8 @@ public class SVGPainter extends AbstractIFPainter implements SVGConstants {
String mime = info.getMimeType();
Map foreignAttributes = getContext().getForeignAttributes();
- String conversionMode = (String)foreignAttributes.get(CONVERSION_MODE);
+ String conversionMode = (String)foreignAttributes.get(
+ ImageHandlerUtil.CONVERSION_MODE);
if ("reference".equals(conversionMode)
&& (MimeConstants.MIME_GIF.equals(mime)
|| MimeConstants.MIME_JPEG.equals(mime)