]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Add layout manager related methods
authorKaren Lease <klease@apache.org>
Fri, 9 Nov 2001 22:04:58 +0000 (22:04 +0000)
committerKaren Lease <klease@apache.org>
Fri, 9 Nov 2001 22:04:58 +0000 (22:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194544 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/FObj.java

index 4c5cb910fbe9077b3d860ad442f4dc08a363c3a9..dc74a8a01ec175a7185412886cadffe3be9d6408 100644 (file)
@@ -12,6 +12,7 @@ import org.apache.fop.layout.Area;
 import org.apache.fop.layout.AreaClass;
 import org.apache.fop.apps.FOPException;
 import org.apache.fop.datatypes.IDReferences;
+import org.apache.fop.layoutmgr.LayoutManager;
 import org.apache.fop.fo.properties.FOPropertyMapping;
 import org.apache.fop.layout.Area;
 import org.apache.fop.layout.AreaClass;
@@ -19,6 +20,8 @@ import org.apache.fop.layout.LinkSet;
 import org.apache.fop.system.BufferManager;
 import org.apache.fop.fo.flow.Marker;
 
+// Java
+import java.util.Iterator;
 import org.xml.sax.Attributes;
 
 import java.util.Iterator;
@@ -187,6 +190,19 @@ public class FObj extends FONode {
         this.properties.setWritingMode(p.getProperty("writing-mode").getEnum());
     }
 
+    /**
+     * Return a LayoutManager responsible for laying out this FObj's content.
+     * Must override in subclasses if their content can be laid out.
+     */
+    public LayoutManager getLayoutManager() {
+       return null;
+    }
+
+    
+    public Iterator getChildren() {
+       return children.iterator();
+    }
+
     public void setIsInTableCell() {
         this.isInTableCell = true;
         // made recursive by Eric Schaeffer