aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/FOUserAgent.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/fo/FOUserAgent.java')
-rw-r--r--src/org/apache/fop/fo/FOUserAgent.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/org/apache/fop/fo/FOUserAgent.java b/src/org/apache/fop/fo/FOUserAgent.java
index 2dbf98c1a..4736ed51f 100644
--- a/src/org/apache/fop/fo/FOUserAgent.java
+++ b/src/org/apache/fop/fo/FOUserAgent.java
@@ -44,14 +44,25 @@ public class FOUserAgent {
return log;
}
- public void setBaseDirectory(String b) {
+ public void setBaseURL(String b) {
base = b;
}
- public String getBaseDirectory() {
+ public String getBaseURL() {
return base;
}
+ public float getPixelToMM() {
+ return 0.35277777777777777778f;
+ }
+
+ /**
+ * If to create hot links to footnotes and before floats.
+ */
+ public boolean linkToFootnotes() {
+ return true;
+ }
+
/**
* Set the default xml handler for the given mime type.
*/
@@ -92,10 +103,11 @@ public class FOUserAgent {
handler.handleXML(ctx, doc, namespace);
} catch (Throwable t) {
// could not handle document
- ctx.getLogger().error("Could not render XML", t);
+ log.error("Could not render XML", t);
}
} else {
// no handler found for document
+ log.debug("No handler defined for XML: " + namespace);
}
}
}