]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added prototype area creation.
authorPeter Bernard West <pbwest@apache.org>
Sun, 30 May 2004 16:44:49 +0000 (16:44 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sun, 30 May 2004 16:44:49 +0000 (16:44 +0000)
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

index e3d9378b1446667fe06330f1a309d0695804763f..c7b49b5552bde831024bf4404a3de4da773eeb46 100644 (file)
@@ -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();
     }