diff options
author | Glen Mazza <gmazza@apache.org> | 2005-06-05 07:11:22 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2005-06-05 07:11:22 +0000 |
commit | d424231e4d21e9b64659fa29b756f949bb2a341d (patch) | |
tree | 6cea8658a60d338cc7dd6daf382e936a9151e8c4 /src/java | |
parent | 0b59df1719e7af0712f093a62557b0ba811bbd30 (diff) | |
download | xmlgraphics-fop-d424231e4d21e9b64659fa29b756f949bb2a341d.tar.gz xmlgraphics-fop-d424231e4d21e9b64659fa29b756f949bb2a341d.zip |
Remainder of pslm.gKNE() consolidated into pb.gKNE().
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198717 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java index f5611051f..04038e011 100644 --- a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java @@ -166,7 +166,11 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager { } protected LinkedList getNextKnuthElements(LayoutContext context, int alignment) { - LinkedList contentList = pslm.getNextKnuthElements(context, alignment); + LinkedList contentList = null; + + while (!childFLM.isFinished() && contentList == null) { + contentList = childFLM.getNextKnuthElements(context, alignment); + } // scan contentList, searching for footnotes boolean bFootnotesPresent = false; @@ -221,7 +225,7 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager { } protected boolean hasMoreContent() { - return !isFinished(); + return !childFLM.isFinished(); } protected void addAreas(PositionIterator posIter, LayoutContext context) { @@ -303,22 +307,6 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager { } /** - * @see org.apache.fop.layoutmgr.LayoutManager#getNextKnuthElements(Layout Context, int) - */ - public LinkedList getNextKnuthElements(LayoutContext context, int alignment) { - while (!childFLM.isFinished()) { - LinkedList returnedList = childFLM.getNextKnuthElements(context, alignment); - - if (returnedList != null) { - return returnedList; - } - } - - setFinished(true); - return null; - } - - /** * Provides access to the current page. * @return the current PageViewport */ |