X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FDict.h;h=08f55ecd48ed657acdde8ad72e102ae58d1706f8;hb=f3bc04e70501213ea1d9d2aa22d5c2fa550dab3f;hp=e392645dccf6d16d59d0f84aabda2f998bb2ee08;hpb=e69624f1874a913c6e0ec289a88a23e731f67be6;p=swftools.git diff --git a/pdf2swf/xpdf/Dict.h b/pdf2swf/xpdf/Dict.h index e392645..08f55ec 100644 --- a/pdf2swf/xpdf/Dict.h +++ b/pdf2swf/xpdf/Dict.h @@ -2,14 +2,16 @@ // // Dict.h // -// Copyright 1996 Derek B. Noonburg +// Copyright 1996-2003 Glyph & Cog, LLC // //======================================================================== #ifndef DICT_H #define DICT_H -#ifdef __GNUC__ +#include + +#ifdef USE_GCC_PRAGMAS #pragma interface #endif @@ -28,7 +30,7 @@ class Dict { public: // Constructor. - Dict(); + Dict(XRef *xrefA); // Destructor. ~Dict(); @@ -56,18 +58,20 @@ public: Object *getVal(int i, Object *obj); Object *getValNF(int i, Object *obj); + // Set the xref pointer. This is only used in one special case: the + // trailer dictionary, which is read before the xref table is + // parsed. + void setXRef(XRef *xrefA) { xref = xrefA; } + private: + XRef *xref; // the xref table for this PDF file DictEntry *entries; // array of entries int size; // size of array int length; // number of entries in dictionary int ref; // reference count DictEntry *find(char *key); - -public: - void dumpEntries(); - }; #endif