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

(-)xmlapache/xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java (-2 / +11 lines)
Lines 983-990 Link Here
983
                if (ext instanceof Outline) {
983
                if (ext instanceof Outline) {
984
                    renderOutline((Outline) ext);
984
                    renderOutline((Outline) ext);
985
                } else if (ext instanceof Destination) {
985
                } else if (ext instanceof Destination) {
986
                    Destination d = (Destination)ext;
986
                    renderDestination((Destination) ext);
987
                    pdfDoc.addDestination(d.getDestinationName(), d.getInternalDestination());
988
                }
987
                }
989
            }
988
            }
990
        }
989
        }
Lines 1019-1024 Link Here
1019
        for (int i = 0; i < v.size(); i++) {
1018
        for (int i = 0; i < v.size(); i++) {
1020
            renderOutline((Outline) v.get(i));
1019
            renderOutline((Outline) v.get(i));
1021
        }
1020
        }
1021
1022
        // handle sub destinations
1023
        List vd = outline.getDestinations();
1024
        for (int i = 0; i < vd.size(); i++) {
1025
            renderDestination((Destination) vd.get(i));
1026
        }
1027
    }
1028
1029
    private void renderDestination(Destination d) {
1030
        pdfDoc.addDestination(d.getDestinationName(), d.getInternalDestination());
1022
    }
1031
    }
1023
1032
1024
}
1033
}
(-)xmlapache/xml-fop/src/org/apache/fop/extensions/Outline.java (+7 lines)
Lines 61-66 Link Here
61
public class Outline extends ExtensionObj {
61
public class Outline extends ExtensionObj {
62
    private Label _label;
62
    private Label _label;
63
    private ArrayList _outlines = new ArrayList();
63
    private ArrayList _outlines = new ArrayList();
64
    private ArrayList _destinations = new ArrayList();
64
65
65
    private String _internalDestination;
66
    private String _internalDestination;
66
    private String _externalDestination;
67
    private String _externalDestination;
Lines 117-122 Link Here
117
            _label = (Label)obj;
118
            _label = (Label)obj;
118
        } else if (obj instanceof Outline) {
119
        } else if (obj instanceof Outline) {
119
            _outlines.add(obj);
120
            _outlines.add(obj);
121
        } else if (obj instanceof Destination) {
122
            _destinations.add(obj);
120
        }
123
        }
121
        super.addChild(obj);
124
        super.addChild(obj);
122
    }
125
    }
Lines 140-145 Link Here
140
143
141
    public ArrayList getOutlines() {
144
    public ArrayList getOutlines() {
142
        return _outlines;
145
        return _outlines;
146
    }
147
148
    public ArrayList getDestinations() {
149
        return _destinations;
143
    }
150
    }
144
151
145
    public String getInternalDestination() {
152
    public String getInternalDestination() {

Return to bug 19695