aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2005-06-01 22:41:17 +0000
committerGlen Mazza <gmazza@apache.org>2005-06-01 22:41:17 +0000
commit9dc1aaa2a16baca58b74ec6f07b485cf3dc40e59 (patch)
treee494f04813c6853430493bdcb4eb452b3c7b8c05 /src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java
parent4ba494af05ee8e858b2d8eeaf0052aac0b81627b (diff)
downloadxmlgraphics-fop-9dc1aaa2a16baca58b74ec6f07b485cf3dc40e59.tar.gz
xmlgraphics-fop-9dc1aaa2a16baca58b74ec6f07b485cf3dc40e59.zip
Constructor for FLM now takes parent as parameter,
also setting of Reference Area dimensions moved to FLM. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198713 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java b/src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java
index 03b5511a0..85a2e6cc0 100644
--- a/src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java
+++ b/src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java
@@ -114,7 +114,6 @@ public class LayoutManagerMapping implements LayoutManagerMaker {
makers.put(TableCell.class, new Maker());
makers.put(TableFooter.class, new Maker());
makers.put(TableHeader.class, new Maker());
- makers.put(Flow.class, new FlowLayoutManagerMaker());
makers.put(Wrapper.class, new WrapperLayoutManagerMaker());
makers.put(Title.class, new InlineLayoutManagerMaker());
}
@@ -155,7 +154,15 @@ public class LayoutManagerMapping implements LayoutManagerMaker {
}
/*
- * @see org.apache.fop.layoutmgr.LayoutManagerMaker#makeStaticContentLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager, org.apache.fop.fo.pagination.StaticContent, org.apache.fop.fo.pagination.Region)
+ * @see org.apache.fop.layoutmgr.LayoutManagerMaker#makeFlowLayoutManager(PageSequenceLayoutManager, Flow)
+ */
+ public FlowLayoutManager makeFlowLayoutManager(
+ PageSequenceLayoutManager pslm, Flow flow) {
+ return new FlowLayoutManager(pslm, flow);
+ }
+
+ /*
+ * @see org.apache.fop.layoutmgr.LayoutManagerMaker#makeStaticContentLayoutManager(PageSequenceLayoutManager, StaticContent, Region)
*/
public StaticContentLayoutManager makeStaticContentLayoutManager(
PageSequenceLayoutManager pslm, StaticContent sc, SideRegion reg) {
@@ -163,7 +170,7 @@ public class LayoutManagerMapping implements LayoutManagerMaker {
}
/*
- * @see org.apache.fop.layoutmgr.LayoutManagerMaker#makeStaticContentLayoutManager(org.apache.fop.layoutmgr.PageSequenceLayoutManager, org.apache.fop.fo.pagination.StaticContent, org.apache.fop.area.Block)
+ * @see org.apache.fop.layoutmgr.LayoutManagerMaker#makeStaticContentLayoutManager(PageSequenceLayoutManager, StaticContent, Block)
*/
public StaticContentLayoutManager makeStaticContentLayoutManager(
PageSequenceLayoutManager pslm, StaticContent sc, org.apache.fop.area.Block block) {
@@ -323,12 +330,6 @@ public class LayoutManagerMapping implements LayoutManagerMaker {
}
}
- public static class FlowLayoutManagerMaker extends Maker {
- public void make(FONode node, List lms) {
- lms.add(new FlowLayoutManager((Flow) node));
- }
- }
-
public class WrapperLayoutManagerMaker extends Maker {
public void make(FONode node, List lms) {
Iterator baseIter;