aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-04-03 07:44:09 +0000
committerJeremias Maerki <jeremias@apache.org>2009-04-03 07:44:09 +0000
commit600aabc6924d1f1964f6f7889a9667371a1cef03 (patch)
tree56536db0c6f0180e2550d52eda1da79d3254a03d /src/java
parentd4a7b0d540cc40bdc11f7715674f36c5165ae445 (diff)
downloadxmlgraphics-fop-600aabc6924d1f1964f6f7889a9667371a1cef03.tar.gz
xmlgraphics-fop-600aabc6924d1f1964f6f7889a9667371a1cef03.zip
Fixed a bug that left the PrintRenderer unconfigured even if a configuration was specified for "application/X-fop-print".
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@761554 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/render/print/PrintRenderer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/print/PrintRenderer.java b/src/java/org/apache/fop/render/print/PrintRenderer.java
index 2eb2b07a2..315c12cf1 100644
--- a/src/java/org/apache/fop/render/print/PrintRenderer.java
+++ b/src/java/org/apache/fop/render/print/PrintRenderer.java
@@ -25,6 +25,7 @@ import java.io.IOException;
import java.util.Map;
import org.apache.fop.apps.FOUserAgent;
+import org.apache.fop.apps.MimeConstants;
/**
* Renderer that prints through java.awt.PrintJob.
@@ -70,6 +71,11 @@ public class PrintRenderer extends PageableRenderer {
printerJob.setPageable(this);
}
+ /** {@inheritDoc} */
+ public String getMimeType() {
+ return MimeConstants.MIME_FOP_PRINT;
+ }
+
private void initializePrinterJob() {
if (this.printerJob == null) {
printerJob = PrinterJob.getPrinterJob();