View | Details | Raw Unified | Return to bug 37579
Collapse All | Expand All

(-)src/java/org/apache/fop/layoutmgr/FootnoteBodyLayoutManager.java (-1 / +19 lines)
Lines 23-34 Link Here
23
23
24
import org.apache.fop.area.Area;
24
import org.apache.fop.area.Area;
25
import org.apache.fop.fo.flow.FootnoteBody;
25
import org.apache.fop.fo.flow.FootnoteBody;
26
import org.apache.fop.layoutmgr.inline.FootnoteLayoutManager;
26
27
27
/**
28
/**
28
 * Layout manager for footnote bodies.
29
 * Layout manager for footnote bodies.
29
 */
30
 */
30
public class FootnoteBodyLayoutManager extends BlockStackingLayoutManager {
31
public class FootnoteBodyLayoutManager extends BlockStackingLayoutManager {
31
32
33
    private FootnoteLayoutManager footnoteLM;
34
32
    /**
35
    /**
33
     * Creates a new FootnoteBodyLayoutManager.
36
     * Creates a new FootnoteBodyLayoutManager.
34
     * @param body the footnote-body element
37
     * @param body the footnote-body element
Lines 37-42 Link Here
37
        super(body);
40
        super(body);
38
    }
41
    }
39
42
43
    public void setParent(LayoutManager lm) {
44
        super.setParent(lm);
45
        if (footnoteLM == null) {
46
            assert (lm instanceof FootnoteLayoutManager);
47
            footnoteLM = (FootnoteLayoutManager) lm;
48
        }
49
    }
50
40
    /** {@inheritDoc} */
51
    /** {@inheritDoc} */
41
    public void addAreas(PositionIterator parentIter, LayoutContext layoutContext) {
52
    public void addAreas(PositionIterator parentIter, LayoutContext layoutContext) {
42
        LayoutManager childLM = null;
53
        LayoutManager childLM = null;
Lines 105-109 Link Here
105
    public int getKeepWithPreviousStrength() {
116
    public int getKeepWithPreviousStrength() {
106
        return KEEP_AUTO;
117
        return KEEP_AUTO;
107
    }
118
    }
108
    
119
120
    /**
121
     * {@inheritDoc}
122
     * <i>Note: overridden to always return the associated FootnoteLM</i>
123
     */
124
    public LayoutManager getParent() {
125
        return footnoteLM;
126
    }
109
}
127
}

Return to bug 37579