foInputHandler.setLogger(getLogger());
treeBuilder.setFOInputHandler(foInputHandler);
- treeBuilder.setDocument(currentDocument);
return new ProxyContentHandler(treeBuilder) {
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.apache.fop.apps.Document;
import org.apache.fop.apps.FOPException;
import org.apache.fop.fo.ElementMapping.Maker;
import org.apache.fop.fo.pagination.Root;
*/
private FOInputHandler foInputHandler;
- /** The Document object managing the FO Tree that is being built */
- private Document document;
-
/** The SAX locator object managing the line and column counters */
private Locator locator;
setupDefaultMappings();
}
- /**
- * Sets the apps.Document for this object
- * @param doc Document instance
- */
- public void setDocument(Document doc) {
- this.document = doc;
- }
-
/**
* Sets the structure handler to receive events.
* @param foih FOInputHandler instance
if (rootFObj == null) {
rootFObj = (Root) foNode;
- rootFObj.setFOInputHandler(document.getFOInputHandler());
+ rootFObj.setFOInputHandler(foInputHandler);
} else {
currentFObj.addChild(foNode);
}
/**
* Constructs a FontState object. If it was constructed before it is
* reused.
- * @param document apps.Document implementation containing the font
+ * @param fontInfo the FontInfo implementation containing the font
* information
* @return a FontState object
*/