X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FDict.h;h=b9945144f18730315fdbc1e3a2c56d35ab595535;hb=16a1056ad5c25f12f7c9b291fcc78dd1f594671c;hp=cfc64d3b22bacd9dce14b8634ecf8f2b3ed33750;hpb=fc554a43712b76d16b41ec77dd311b4a78b1ef6b;p=swftools.git diff --git a/pdf2swf/xpdf/Dict.h b/pdf2swf/xpdf/Dict.h index cfc64d3..b994514 100644 --- a/pdf2swf/xpdf/Dict.h +++ b/pdf2swf/xpdf/Dict.h @@ -2,7 +2,7 @@ // // Dict.h // -// Copyright 1996 Derek B. Noonburg +// Copyright 1996-2002 Glyph & Cog, LLC // //======================================================================== @@ -28,7 +28,7 @@ class Dict { public: // Constructor. - Dict(); + Dict(XRef *xrefA); // Destructor. ~Dict(); @@ -56,8 +56,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