From: Luca Furini Date: Tue, 12 Apr 2005 17:01:30 +0000 (+0000) Subject: Setting layout dimensions in the FlowLM X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d760204724ccb05003bb6b2a1454fa34d911f842;p=xmlgraphics-fop.git Setting layout dimensions in the FlowLM git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_KnuthStylePageBreaking@198578 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java b/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java index db5ce5a2a..6d2228931 100644 --- a/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java @@ -18,6 +18,7 @@ package org.apache.fop.layoutmgr; +import org.apache.fop.datatypes.PercentBase; import org.apache.fop.fo.flow.Marker; import org.apache.fop.fo.pagination.Flow; import org.apache.fop.area.Area; @@ -172,8 +173,11 @@ public class FlowLayoutManager extends BlockStackingLayoutManager //TODO Reintroduce emergency counter (generate error to avoid endless loop) -//TODO Reintroduce layout dimensions public LinkedList getNextKnuthElements(LayoutContext context, int alignment) { + // set layout dimensions + fobj.setLayoutDimension(PercentBase.BLOCK_IPD, context.getRefIPD()); + fobj.setLayoutDimension(PercentBase.BLOCK_BPD, context.getStackLimit().opt); + // currently active LM BlockLevelLayoutManager curLM; BlockLevelLayoutManager prevLM = null;