2 #include "mupdf-outline_p.h"
4 #include "mupdf-link_p.h"
5 #include "mupdf-document_p.h"
11 Outline::Outline(OutlinePrivate *outlinep)
22 OutlinePrivate::OutlinePrivate(DocumentPrivate *dp, fz_outline *o)
23 : documentp(dp), context(documentp->context), outline(o)
28 OutlinePrivate::~OutlinePrivate()
32 documentp->outlines.removeAt(documentp->outlines.indexOf(
this));
41 OutlineItemPrivate *itemp =
new OutlineItemPrivate(d->outline);
65 d =
new OutlineItemPrivate(item.d->outline);
75 d =
new OutlineItemPrivate(item.d->outline);
87 OutlineItemPrivate::OutlineItemPrivate(fz_outline *o)
90 LinkPrivate *linkp =
new LinkPrivate(outline->dest);
92 switch (outline->dest.kind) {
124 OutlineItemPrivate::~OutlineItemPrivate()
134 return d ?
true :
false;
145 return d->outline->title;
171 fz_outline *outline = d->outline->next;
172 OutlineItemPrivate *itemp = NULL;
175 itemp =
new OutlineItemPrivate(outline);
191 fz_outline *outline = d->outline->down;
192 OutlineItemPrivate *itemp = NULL;
195 itemp =
new OutlineItemPrivate(outline);