diff options
author | Luis Bernardo <lbernardo@apache.org> | 2014-12-02 00:29:57 +0000 |
---|---|---|
committer | Luis Bernardo <lbernardo@apache.org> | 2014-12-02 00:29:57 +0000 |
commit | 16741be59821d79308d670ff7b61ec72702595e1 (patch) | |
tree | 7b5aa84fbb351a93105c3ca8d4fc939807674159 /src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java | |
parent | 97e5ccb03a3990c94324bde7fa617a77566e1e62 (diff) | |
download | xmlgraphics-fop-16741be59821d79308d670ff7b61ec72702595e1.tar.gz xmlgraphics-fop-16741be59821d79308d670ff7b61ec72702595e1.zip |
Merged branches/Temp_BasicSideFloat back to trunk.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1642793 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.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java b/src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java index 88c52b383..7c0f9c999 100644 --- a/src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java +++ b/src/java/org/apache/fop/layoutmgr/LayoutManagerMapping.java @@ -41,6 +41,7 @@ import org.apache.fop.fo.flow.Block; import org.apache.fop.fo.flow.BlockContainer; import org.apache.fop.fo.flow.Character; import org.apache.fop.fo.flow.ExternalGraphic; +import org.apache.fop.fo.flow.Float; import org.apache.fop.fo.flow.Footnote; import org.apache.fop.fo.flow.Inline; import org.apache.fop.fo.flow.InlineContainer; @@ -74,6 +75,7 @@ import org.apache.fop.layoutmgr.inline.BidiLayoutManager; import org.apache.fop.layoutmgr.inline.CharacterLayoutManager; import org.apache.fop.layoutmgr.inline.ContentLayoutManager; import org.apache.fop.layoutmgr.inline.ExternalGraphicLayoutManager; +import org.apache.fop.layoutmgr.inline.FloatLayoutManager; import org.apache.fop.layoutmgr.inline.FootnoteLayoutManager; import org.apache.fop.layoutmgr.inline.InlineContainerLayoutManager; import org.apache.fop.layoutmgr.inline.InlineLayoutManager; @@ -113,7 +115,7 @@ public class LayoutManagerMapping implements LayoutManagerMaker { registerMaker(FObjMixed.class, new Maker()); registerMaker(BidiOverride.class, new BidiOverrideLayoutManagerMaker()); registerMaker(Inline.class, new InlineLayoutManagerMaker()); - registerMaker(Footnote.class, new FootnodeLayoutManagerMaker()); + registerMaker(Footnote.class, new FootnoteLayoutManagerMaker()); registerMaker(InlineContainer.class, new InlineContainerLayoutManagerMaker()); registerMaker(BasicLink.class, new BasicLinkLayoutManagerMaker()); @@ -146,6 +148,7 @@ public class LayoutManagerMapping implements LayoutManagerMaker { registerMaker(Title.class, new InlineLayoutManagerMaker()); registerMaker(MultiCase.class, new MultiCaseLayoutManagerMaker()); registerMaker(MultiSwitch.class, new MultiSwitchLayoutManagerMaker()); + registerMaker(Float.class, new FloatLayoutManagerMaker()); } /** @@ -267,7 +270,7 @@ public class LayoutManagerMapping implements LayoutManagerMaker { } /** a layout manager maker */ - public static class FootnodeLayoutManagerMaker extends Maker { + public static class FootnoteLayoutManagerMaker extends Maker { /** {@inheritDoc} */ public void make(FONode node, List lms) { lms.add(new FootnoteLayoutManager((Footnote) node)); @@ -463,4 +466,10 @@ public class LayoutManagerMapping implements LayoutManagerMaker { } } + public static class FloatLayoutManagerMaker extends Maker { + public void make(FONode node, List lms) { + lms.add(new FloatLayoutManager((Float) node)); + } + } + } |