upgrade to xpdf 1.01.
[swftools.git] / pdf2swf / xpdf / Dict.h
index e392645..b994514 100644 (file)
@@ -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,18 +56,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 <entries> array
   int length;                  // number of entries in dictionary
   int ref;                     // reference count
 
   DictEntry *find(char *key);
-
-public:
-  void dumpEntries();
-
 };
 
 #endif