X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FDict.h;h=08f55ecd48ed657acdde8ad72e102ae58d1706f8;hb=bc31c361b1e2fbac6c96925851775c6bc28a58be;hp=cfc64d3b22bacd9dce14b8634ecf8f2b3ed33750;hpb=fc554a43712b76d16b41ec77dd311b4a78b1ef6b;p=swftools.git diff --git a/pdf2swf/xpdf/Dict.h b/pdf2swf/xpdf/Dict.h index cfc64d3..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,8 +58,14 @@ 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