]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed the setting of generates[Block|Reference]Area
authorVincent Hennebert <vhennebert@apache.org>
Thu, 14 Nov 2013 09:47:24 +0000 (09:47 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Thu, 14 Nov 2013 09:47:24 +0000 (09:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_InlineContainer@1541865 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/AbstractBaseLayoutManager.java
src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java
src/java/org/apache/fop/layoutmgr/inline/InlineContainerLayoutManager.java
src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java

index 5d7cc0b64b4c30e98a89360c172b7f4ba5bc2463..635e267c1b2d500296fc6689a657b95903f94e7a 100644 (file)
@@ -65,9 +65,6 @@ public abstract class AbstractBaseLayoutManager
     public AbstractBaseLayoutManager(FObj fo) {
         this.fobj = fo;
         setGeneratesReferenceArea(fo.generatesReferenceAreas());
-        if (getGeneratesReferenceArea()) {
-            setGeneratesBlockArea(true);
-        }
     }
 
     // --------- Property Resolution related functions --------- //
index 83990797ba7b5830e3c8ff056ee6f6b83ad3c255..3ab267d4303a882f1611e178cc96678b784f6af5 100644 (file)
@@ -90,6 +90,7 @@ public class BlockContainerLayoutManager extends SpacedBorderedPaddedBlockLayout
      */
     public BlockContainerLayoutManager(BlockContainer node) {
         super(node);
+        setGeneratesBlockArea(true);
     }
 
     /** {@inheritDoc} */
index 0260046e12042283dead82dc66fa52934f73d097..4c7afa8d67a76bf90391b3b4f1e319defac2527f 100644 (file)
@@ -58,6 +58,7 @@ public class FlowLayoutManager extends BlockStackingLayoutManager
      */
     public FlowLayoutManager(PageSequenceLayoutManager pslm, Flow node) {
         super(node);
+        setGeneratesBlockArea(true);
         setParent(pslm);
     }
 
index 020eb99824a12c66099bb163a842abd86e5894c9..54237a9148208600616ac2778410e5390f2b2317 100644 (file)
@@ -71,6 +71,7 @@ public class InlineContainerLayoutManager extends AbstractLayoutManager implemen
 
     public InlineContainerLayoutManager(InlineContainer node) {
         super(node);
+        setGeneratesReferenceArea(true);
     }
 
     @Override
@@ -231,11 +232,6 @@ public class InlineContainerLayoutManager extends AbstractLayoutManager implemen
         }
     }
 
-    @Override
-    public boolean getGeneratesReferenceArea() {
-        return true;
-    }
-
     @Override
     public void addAreas(PositionIterator posIter, LayoutContext context) {
         Position inlineContainerPosition = null;
index c8f2cea858cec5e912711bdd83ded7b139c4a2e7..2122df5aefe14bec7b6f0ae7ff0c65e5dfad708a 100644 (file)
@@ -117,6 +117,7 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager
      */
     public TableCellLayoutManager(TableCell node, PrimaryGridUnit pgu) {
         super(node);
+        setGeneratesBlockArea(true);
         this.primaryGridUnit = pgu;
         this.isDescendantOfTableHeader = node.getParent().getParent() instanceof TableHeader
                 || node.getParent() instanceof TableHeader;