diff options
author | Keiron Liddle <keiron@apache.org> | 2003-02-14 04:15:08 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2003-02-14 04:15:08 +0000 |
commit | 77965315aae686c14ae4da62463deecb4cb091e2 (patch) | |
tree | 6e181b88d09148dafc891d72931786db920c51a6 /src/org/apache/fop/fo/flow/InlineContainer.java | |
parent | 2225023448fc23e22607228130b618a10ec63c2f (diff) | |
download | xmlgraphics-fop-77965315aae686c14ae4da62463deecb4cb091e2.tar.gz xmlgraphics-fop-77965315aae686c14ae4da62463deecb4cb091e2.zip |
set FO on lm as part of interface, simpler and more flexible
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195947 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/flow/InlineContainer.java')
-rw-r--r-- | src/org/apache/fop/fo/flow/InlineContainer.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/org/apache/fop/fo/flow/InlineContainer.java b/src/org/apache/fop/fo/flow/InlineContainer.java index 6959e3423..f94cbb897 100644 --- a/src/org/apache/fop/fo/flow/InlineContainer.java +++ b/src/org/apache/fop/fo/flow/InlineContainer.java @@ -13,6 +13,7 @@ import org.apache.fop.fo.flow.*; import org.apache.fop.fo.properties.*; import org.apache.fop.layout.*; import org.apache.fop.apps.FOPException; +import org.apache.fop.layoutmgr.LayoutManager; import org.apache.fop.layoutmgr.LeafNodeLayoutManager; import org.apache.fop.area.inline.InlineArea; @@ -32,7 +33,10 @@ public class InlineContainer extends FObj { public void addLayoutManager(List lms) { ArrayList childList = new ArrayList(); super.addLayoutManager(childList); - lms.add(new ICLayoutManager(this, childList)); + LayoutManager lm = new ICLayoutManager(childList); + lm.setUserAgent(getUserAgent()); + lm.setFObj(this); + lms.add(lm); } public void handleAttrs(Attributes attlist) throws FOPException { @@ -81,8 +85,7 @@ public class InlineContainer extends FObj { class ICLayoutManager extends LeafNodeLayoutManager { List childrenLM; - ICLayoutManager(FObj obj, List childLM) { - super(obj); + ICLayoutManager(List childLM) { childrenLM = childLM; } |