From 4e07ad4cfe1020b1d1c5fa33c4e18c319f8c753e Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Thu, 3 Jun 2004 13:30:54 +0000 Subject: [PATCH] Initial BlockArea creation git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197683 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/flow/FoBlock.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fo/flow/FoBlock.java b/src/java/org/apache/fop/fo/flow/FoBlock.java index d46250382..090f930f0 100644 --- a/src/java/org/apache/fop/fo/flow/FoBlock.java +++ b/src/java/org/apache/fop/fo/flow/FoBlock.java @@ -24,10 +24,12 @@ package org.apache.fop.fo.flow; // FOP +import java.util.ArrayList; import java.util.Arrays; import java.util.BitSet; import org.apache.fop.apps.FOPException; import org.apache.fop.area.Area; +import org.apache.fop.area.BlockArea; import org.apache.fop.datastructs.TreeException; import org.apache.fop.fo.FONode; import org.apache.fop.fo.FOPageSeqNode; @@ -140,7 +142,10 @@ public class FoBlock extends FOPageSeqNode { stateFlags, sparsePropsMap, sparseIndices); getMarkers(); // Generate a block area - + currentArea = new BlockArea( + pageSequence, this, layoutContext, layoutContext.getSync()); + generated = new ArrayList(); + generated.add(currentArea); XmlEvent ev = null; do { try { @@ -150,6 +155,7 @@ public class FoBlock extends FOPageSeqNode { ev = xmlevents.expectOutOfLinePcdataOrInlineOrBlock(); if (ev != null) { // Generate the flow object + FObjects.makePageSeqFOChild( foTree, pageSequence, this, ev, stateFlags); // Area generation happening here -- 2.39.5