1 //========================================================================
5 // Copyright 2002-2003 Glyph & Cog, LLC
7 //========================================================================
9 //========================================================================
11 // Modified under the Poppler project - http://poppler.freedesktop.org
13 // All changes made under the Poppler project to this file are licensed
14 // under GPL version 2 or later
16 // Copyright (C) 2005 Marco Pesenti Gritti <mpg@redhat.com>
18 // To see a description of the changes please see the Changelog file that
19 // came with your tarball or type make ChangeLog if you are building from git
21 //========================================================================
26 #ifdef USE_GCC_PRAGMAS
31 #include "CharTypes.h"
38 //------------------------------------------------------------------------
43 Outline(Object
*outlineObj
, XRef
*xref
);
46 GooList
*getItems() { return items
; }
50 GooList
*items
; // NULL if document has no outline,
51 // otherwise, a list of OutlineItem
54 //------------------------------------------------------------------------
59 OutlineItem(Dict
*dict
, XRef
*xrefA
);
62 static GooList
*readItemList(Object
*firstItemRef
, Object
*lastItemRef
,
68 Unicode
*getTitle() { return title
; }
69 int getTitleLength() { return titleLen
; }
70 LinkAction
*getAction() { return action
; }
71 GBool
isOpen() { return startsOpen
; }
72 GBool
hasKids() { return firstRef
.isRef(); }
73 GooList
*getKids() { return kids
; }
85 GooList
*kids
; // NULL if this item is closed or has no kids,
86 // otherwise a list of OutlineItem