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;
* 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();
}