aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-11-09 22:08:49 +0000
committerKaren Lease <klease@apache.org>2001-11-09 22:08:49 +0000
commit874176b2c26c8039eeeadba08fc1eb363eebc3fc (patch)
treee52c8e3c4ccd0d9ed9e2501f8fa2e4e382dc6248 /src/org/apache
parent8c8375992e530847a070926283424803ed8a16ef (diff)
downloadxmlgraphics-fop-874176b2c26c8039eeeadba08fc1eb363eebc3fc.tar.gz
xmlgraphics-fop-874176b2c26c8039eeeadba08fc1eb363eebc3fc.zip
Start hooking in the layoutmanager
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache')
-rw-r--r--src/org/apache/fop/fo/flow/Block.java7
-rw-r--r--src/org/apache/fop/fo/flow/Flow.java10
2 files changed, 16 insertions, 1 deletions
diff --git a/src/org/apache/fop/fo/flow/Block.java b/src/org/apache/fop/fo/flow/Block.java
index 6cb9fac90..cb8335c4c 100644
--- a/src/org/apache/fop/fo/flow/Block.java
+++ b/src/org/apache/fop/fo/flow/Block.java
@@ -13,6 +13,8 @@ import org.apache.fop.fo.properties.*;
import org.apache.fop.layout.*;
import org.apache.fop.datatypes.*;
import org.apache.fop.apps.FOPException;
+import org.apache.fop.layoutmgr.LayoutManager;
+//import org.apache.fop.layoutmgr.BlockLayoutManager;
import org.xml.sax.Attributes;
@@ -350,4 +352,9 @@ public class Block extends FObjMixed {
return this.span;
}
+ public LayoutManager getLayoutManager() {
+ //return new BlockLayoutManager(this);
+ return null;
+ }
+
}
diff --git a/src/org/apache/fop/fo/flow/Flow.java b/src/org/apache/fop/fo/flow/Flow.java
index 869729cf9..2fb72bfae 100644
--- a/src/org/apache/fop/fo/flow/Flow.java
+++ b/src/org/apache/fop/fo/flow/Flow.java
@@ -14,6 +14,8 @@ import org.apache.fop.fo.pagination.*;
import org.apache.fop.layout.Area;
import org.apache.fop.layout.BodyAreaContainer;
import org.apache.fop.apps.FOPException;
+import org.apache.fop.layoutmgr.LayoutManager;
+import org.apache.fop.layoutmgr.FlowLayoutManager;
// Java
import java.util.Hashtable;
@@ -70,6 +72,7 @@ public class Flow extends FObj {
// 001228, Number 406), confusion in spec section 6.4.5 about
// multiplicity of fo:flow in XSL 1.0 is cleared up - one (1)
// fo:flow per fo:page-sequence only.
+
/* if (pageSequence.isFlowSet()) {
if (this.name.equals("fo:flow")) {
throw new FOPException("Only a single fo:flow permitted"
@@ -81,7 +84,8 @@ public class Flow extends FObj {
}
*/
setFlowName(getProperty("flow-name").getString());
- pageSequence.addFlow(this);
+ // Now done in addChild of page-sequence
+ //pageSequence.addFlow(this);
}
protected void setFlowName(String name) throws FOPException {
@@ -222,4 +226,8 @@ public class Flow extends FObj {
return true;
}
+ public LayoutManager getLayoutManager() {
+ return new FlowLayoutManager(this);
+ }
+
}