]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Start hooking in the layoutmanager
authorKaren Lease <klease@apache.org>
Fri, 9 Nov 2001 22:08:49 +0000 (22:08 +0000)
committerKaren Lease <klease@apache.org>
Fri, 9 Nov 2001 22:08:49 +0000 (22:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194545 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/flow/Block.java
src/org/apache/fop/fo/flow/Flow.java

index 6cb9fac90c7e305e2285ef7a44d89805a358a83d..cb8335c4c08f08cf39278d2f3eafcc2f26847e54 100644 (file)
@@ -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;
+    }
+
 }
index 869729cf968f498ca11902c8af1de3d1917d3cd1..2fb72bfaede51cf55244bdc9a900300f37ba3d0e 100644 (file)
@@ -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);
+    }
+
 }