aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-04-24 07:03:56 +0000
committerGlen Mazza <gmazza@apache.org>2004-04-24 07:03:56 +0000
commitb82d46787ee5ad003aa5c8d1dfc9d89cbbd77495 (patch)
tree18db93e62995160cd880e75c46a8c0bf16932ef7
parentd3952e1a023863c747e3459be616153865174d56 (diff)
downloadxmlgraphics-fop-b82d46787ee5ad003aa5c8d1dfc9d89cbbd77495.tar.gz
xmlgraphics-fop-b82d46787ee5ad003aa5c8d1dfc9d89cbbd77495.zip
Removed currently unused Document object from the LayoutStrategy (the latter
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
-rw-r--r--src/java/org/apache/fop/apps/Driver.java2
-rw-r--r--src/java/org/apache/fop/layout/LayoutStrategy.java5
-rw-r--r--src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java5
3 files changed, 4 insertions, 8 deletions
diff --git a/src/java/org/apache/fop/apps/Driver.java b/src/java/org/apache/fop/apps/Driver.java
index 6145186db..4cee9c3e1 100644
--- a/src/java/org/apache/fop/apps/Driver.java
+++ b/src/java/org/apache/fop/apps/Driver.java
@@ -514,7 +514,7 @@ public class Driver {
accessible through the API and/or configuration */
if (foInputHandler instanceof FOTreeHandler) {
if (currentDocument.getLayoutStrategy() == null) {
- currentDocument.setLayoutStrategy(new LayoutManagerLS(currentDocument));
+ currentDocument.setLayoutStrategy(new LayoutManagerLS());
}
}
diff --git a/src/java/org/apache/fop/layout/LayoutStrategy.java b/src/java/org/apache/fop/layout/LayoutStrategy.java
index 64b35908b..477f9c314 100644
--- a/src/java/org/apache/fop/layout/LayoutStrategy.java
+++ b/src/java/org/apache/fop/layout/LayoutStrategy.java
@@ -19,7 +19,6 @@
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;
@@ -32,10 +31,8 @@ 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() {
}
/**
diff --git a/src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java b/src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java
index 4084d0430..859ae5ff1 100644
--- a/src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java
+++ b/src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java
@@ -18,7 +18,6 @@
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;
@@ -36,8 +35,8 @@ public class LayoutManagerLS extends LayoutStrategy {
extending FOP **/
private AddLMVisitor addLMVisitor = null;
- public LayoutManagerLS(Document document) {
- super(document);
+ public LayoutManagerLS() {
+ super();
}
/**