From 578a051ba41abd9a552718163bf4ecb317703ecb Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Sun, 30 May 2004 16:44:49 +0000 Subject: [PATCH] Added prototype area creation. Changed FONode to FoPageSequence in signature. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197676 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/flow/FoPcdata.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/fo/flow/FoPcdata.java b/src/java/org/apache/fop/fo/flow/FoPcdata.java index e3d9378b1..c7b49b555 100644 --- a/src/java/org/apache/fop/fo/flow/FoPcdata.java +++ b/src/java/org/apache/fop/fo/flow/FoPcdata.java @@ -23,8 +23,8 @@ package org.apache.fop.fo.flow; import java.util.Arrays; import java.util.BitSet; import org.apache.fop.apps.FOPException; +import org.apache.fop.area.LineArea; import org.apache.fop.datastructs.TreeException; -import org.apache.fop.fo.FONode; import org.apache.fop.fo.FOPageSeqNode; import org.apache.fop.fo.FOTree; import org.apache.fop.fo.FObjectNames; @@ -121,13 +121,17 @@ public class FoPcdata extends FOPageSeqNode { * attribute set information. */ public FoPcdata - (FOTree foTree, FONode pageSequence, FOPageSeqNode parent, + (FOTree foTree, FoPageSequence pageSequence, FOPageSeqNode parent, XmlEvent event, int stateFlags) throws TreeException, FOPException { super(foTree, FObjectNames.PCDATA, pageSequence, parent, event, stateFlags, sparsePropsMap, sparseIndices); characters = event.getChars(); + // Generate the prototype LineArea + currentArea = new LineArea( + characters, pageSequence, this, layoutContext, + layoutContext.getSync()); makeSparsePropsSet(); } -- 2.39.5