X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FCatalog.h;h=8ab7c61c5b9aa6dd0f36ea31fd9017fc62b395c0;hb=c7432833fe3a6469d63fad135151a92e12877b94;hp=afad803fc88b689060dd4406f5a137d5897c85ee;hpb=b9ddd4a2ed601bc01ddacc69d2522687a93a94ce;p=swftools.git diff --git a/pdf2swf/xpdf/Catalog.h b/pdf2swf/xpdf/Catalog.h index afad803..8ab7c61 100644 --- a/pdf2swf/xpdf/Catalog.h +++ b/pdf2swf/xpdf/Catalog.h @@ -2,14 +2,16 @@ // // Catalog.h // -// Copyright 1996-2002 Glyph & Cog, LLC +// Copyright 1996-2003 Glyph & Cog, LLC // //======================================================================== #ifndef CATALOG_H #define CATALOG_H -#ifdef __GNUC__ +#include + +#ifdef USE_GCC_PRAGMAS #pragma interface #endif @@ -28,7 +30,7 @@ class Catalog { public: // Constructor. - Catalog(XRef *xrefA, GBool printCommands = gFalse); + Catalog(XRef *xrefA); // Destructor. ~Catalog(); @@ -63,6 +65,8 @@ public: // NULL if is not a destination. LinkDest *findDest(GString *name); + Object *getOutline() { return &outline; } + private: XRef *xref; // the xref table for this PDF file @@ -75,10 +79,10 @@ private: GString *baseURI; // base URI for URI-type links Object metadata; // metadata stream Object structTreeRoot; // structure tree root dictionary + Object outline; // outline dictionary GBool ok; // true if catalog is valid - int readPageTree(Dict *pages, PageAttrs *attrs, int start, - GBool printCommands); + int readPageTree(Dict *pages, PageAttrs *attrs, int start); Object *findDestInTree(Object *tree, GString *name, Object *obj); };