class is already a child of Document, and a two-way interface appears unneeded.)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197536
13f79535-47bb-0310-9956-
ffa450edef68
accessible through the API and/or configuration */
if (foInputHandler instanceof FOTreeHandler) {
if (currentDocument.getLayoutStrategy() == null) {
- currentDocument.setLayoutStrategy(new LayoutManagerLS(currentDocument));
+ currentDocument.setLayoutStrategy(new LayoutManagerLS());
}
}
package org.apache.fop.layout;
-import org.apache.fop.apps.Document;
import org.apache.fop.apps.FOPException;
import org.apache.fop.area.AreaTree;
import org.apache.fop.fo.pagination.PageSequence;
public abstract class LayoutStrategy {
private String name = "undefined";
- public Document document;
- public LayoutStrategy(Document document) {
- this.document = document;
+ public LayoutStrategy() {
}
/**
package org.apache.fop.layoutmgr;
-import org.apache.fop.apps.Document;
import org.apache.fop.apps.FOPException;
import org.apache.fop.area.AreaTree;
import org.apache.fop.area.Title;
extending FOP **/
private AddLMVisitor addLMVisitor = null;
- public LayoutManagerLS(Document document) {
- super(document);
+ public LayoutManagerLS() {
+ super();
}
/**