1 package org.freehep.graphicsio.pdf;
2
3 import java.io.IOException;
4
5
6
7
8
9
10
11
12 public class PDFOutline extends PDFDictionary {
13
14 PDFOutline(PDF pdf, PDFByteWriter writer, PDFObject object, PDFRef parent,
15 String title, PDFRef prev, PDFRef next) throws IOException {
16 super(pdf, writer, object);
17 entry("Parent", parent);
18 entry("Title", title);
19 entry("Prev", prev);
20 entry("Next", next);
21 }
22
23 public void setFirst(String first) throws IOException {
24 entry("First", pdf.ref(first));
25 }
26
27 public void setLast(String last) throws IOException {
28 entry("Last", pdf.ref(last));
29 }
30
31 public void setCount(int count) throws IOException {
32 entry("Count", count);
33 }
34
35 public void setDest(PDFName dest) throws IOException {
36 entry("Dest", dest);
37 }
38
39 public void setDest(String dest) throws IOException {
40 entry("Dest", dest);
41 }
42
43 public void setDest(Object[] dest) throws IOException {
44 entry("Dest", dest);
45 }
46
47 public void setA(String a) throws IOException {
48 entry("A", pdf.ref(a));
49 }
50
51 public void setSE(String se) throws IOException {
52 entry("SE", pdf.ref(se));
53 }
54 }