From 8c8375992e530847a070926283424803ed8a16ef Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Fri, 9 Nov 2001 22:04:58 +0000 Subject: [PATCH] Add layout manager related methods 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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/org/apache/fop/fo/FObj.java b/src/org/apache/fop/fo/FObj.java index 4c5cb910f..dc74a8a01 100644 --- a/src/org/apache/fop/fo/FObj.java +++ b/src/org/apache/fop/fo/FObj.java @@ -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 -- 2.39.5