Lines 39-50
Link Here
|
39 |
import org.apache.fop.layoutmgr.ElementListObserver; |
39 |
import org.apache.fop.layoutmgr.ElementListObserver; |
40 |
import org.apache.fop.layoutmgr.ElementListUtils; |
40 |
import org.apache.fop.layoutmgr.ElementListUtils; |
41 |
import org.apache.fop.layoutmgr.KeepUtil; |
41 |
import org.apache.fop.layoutmgr.KeepUtil; |
|
|
42 |
import org.apache.fop.layoutmgr.KnuthBlockBox; |
42 |
import org.apache.fop.layoutmgr.KnuthBox; |
43 |
import org.apache.fop.layoutmgr.KnuthBox; |
43 |
import org.apache.fop.layoutmgr.KnuthElement; |
44 |
import org.apache.fop.layoutmgr.KnuthElement; |
44 |
import org.apache.fop.layoutmgr.KnuthPenalty; |
45 |
import org.apache.fop.layoutmgr.KnuthPenalty; |
45 |
import org.apache.fop.layoutmgr.KnuthPossPosIter; |
46 |
import org.apache.fop.layoutmgr.KnuthPossPosIter; |
46 |
import org.apache.fop.layoutmgr.LayoutContext; |
47 |
import org.apache.fop.layoutmgr.LayoutContext; |
47 |
import org.apache.fop.layoutmgr.LayoutManager; |
48 |
import org.apache.fop.layoutmgr.LayoutManager; |
|
|
49 |
import org.apache.fop.layoutmgr.ListElement; |
48 |
import org.apache.fop.layoutmgr.NonLeafPosition; |
50 |
import org.apache.fop.layoutmgr.NonLeafPosition; |
49 |
import org.apache.fop.layoutmgr.Position; |
51 |
import org.apache.fop.layoutmgr.Position; |
50 |
import org.apache.fop.layoutmgr.PositionIterator; |
52 |
import org.apache.fop.layoutmgr.PositionIterator; |
Lines 312-322
Link Here
|
312 |
int boxHeight = step - addedBoxHeight - penaltyHeight; |
314 |
int boxHeight = step - addedBoxHeight - penaltyHeight; |
313 |
penaltyHeight += additionalPenaltyHeight; //Add AFTER calculating boxHeight! |
315 |
penaltyHeight += additionalPenaltyHeight; //Add AFTER calculating boxHeight! |
314 |
|
316 |
|
|
|
317 |
// collect footnote information |
318 |
LinkedList footnoteList = ElementListUtils.collectFootnoteBodyLMs(elementLists, start, end); |
319 |
|
315 |
// add the new elements |
320 |
// add the new elements |
316 |
addedBoxHeight += boxHeight; |
321 |
addedBoxHeight += boxHeight; |
317 |
ListItemPosition stepPosition = new ListItemPosition(this, |
322 |
ListItemPosition stepPosition = new ListItemPosition(this, |
318 |
start[0], end[0], start[1], end[1]); |
323 |
start[0], end[0], start[1], end[1]); |
319 |
returnList.add(new KnuthBox(boxHeight, stepPosition, false)); |
324 |
if (footnoteList == null) { |
|
|
325 |
returnList.add(new KnuthBox(boxHeight, stepPosition, false)); |
326 |
} else { |
327 |
returnList.add(new KnuthBlockBox(boxHeight, footnoteList, stepPosition, false)); |
328 |
} |
320 |
if (addedBoxHeight < totalHeight) { |
329 |
if (addedBoxHeight < totalHeight) { |
321 |
int strength = BlockLevelLayoutManager.KEEP_AUTO; |
330 |
int strength = BlockLevelLayoutManager.KEEP_AUTO; |
322 |
strength = Math.max(strength, keepWithNextActive); |
331 |
strength = Math.max(strength, keepWithNextActive); |