aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/AbstractRenderer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/render/AbstractRenderer.java')
-rw-r--r--src/java/org/apache/fop/render/AbstractRenderer.java31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java
index ff6e516ed..3e27bd5d6 100644
--- a/src/java/org/apache/fop/render/AbstractRenderer.java
+++ b/src/java/org/apache/fop/render/AbstractRenderer.java
@@ -53,13 +53,13 @@ package org.apache.fop.render;
// Java
import java.awt.geom.Rectangle2D;
import java.io.IOException;
+import java.io.OutputStream;
import java.util.Map;
import java.util.List;
import java.util.Iterator;
// FOP
import org.apache.fop.apps.FOPException;
-import org.apache.fop.fo.FOUserAgent;
import org.apache.fop.area.Area;
import org.apache.fop.area.BeforeFloat;
import org.apache.fop.area.Block;
@@ -87,6 +87,8 @@ import org.apache.fop.area.inline.Space;
import org.apache.fop.area.inline.Viewport;
import org.apache.fop.area.inline.Word;
import org.apache.fop.area.inline.Character;
+import org.apache.fop.fo.FOUserAgent;
+import org.apache.fop.layout.FontInfo;
// Avalon
import org.apache.avalon.framework.logger.AbstractLogEnabled;
@@ -108,6 +110,16 @@ public abstract class AbstractRenderer extends AbstractLogEnabled
protected FOUserAgent userAgent;
/**
+ * producer (usually "FOP")
+ */
+ protected String producer = "FOP";
+
+ /**
+ * creator of document
+ */
+ protected String creator = null;
+
+ /**
* renderer configuration
*/
protected Map options;
@@ -146,14 +158,19 @@ public abstract class AbstractRenderer extends AbstractLogEnabled
}
/** @see org.apache.fop.render.Renderer */
- public void setProducer(String producer) {
+ public void setProducer(String inProducer) {
+ producer = inProducer;
}
/** @see org.apache.fop.render.Renderer */
- public void setCreator(String creator) {
+ public void setCreator(String inCreator) {
+ creator = inCreator;
}
/** @see org.apache.fop.render.Renderer */
+ public abstract void setupFontInfo(FontInfo fontInfo);
+
+ /** @see org.apache.fop.render.Renderer */
public void setUserAgent(FOUserAgent agent) {
userAgent = agent;
}
@@ -163,6 +180,14 @@ public abstract class AbstractRenderer extends AbstractLogEnabled
options = opt;
}
+ /** @see org.apache.fop.render.Renderer */
+ public void startRenderer(OutputStream outputStream)
+ throws IOException { }
+
+ /** @see org.apache.fop.render.Renderer */
+ public void stopRenderer()
+ throws IOException { }
+
/**
* Check if this renderer supports out of order rendering. If this renderer
* supports out of order rendering then it means that the pages that are