Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/Dict.h
diff options
context:
space:
mode:
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>2002-09-18 22:20:42 (GMT)
committer Martin Kretzschmar <mkretzschmar@src.gnome.org>2002-09-18 22:20:42 (GMT)
commit2a393c134fe3fe8eb85bf818cb7ad6ae4396322a (patch)
treeeba8b0dcaba42d799ed8313faee15fb74a5a0cd2 /pdf/xpdf/Dict.h
parent7aac8dc8533347e21311b15186e0af82f1b22fd6 (diff)
Synched with Xpdf 1.01
Diffstat (limited to 'pdf/xpdf/Dict.h')
-rw-r--r--pdf/xpdf/Dict.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/pdf/xpdf/Dict.h b/pdf/xpdf/Dict.h
index cfc64d3..b994514 100644
--- a/pdf/xpdf/Dict.h
+++ b/pdf/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 <entries> array
int length; // number of entries in dictionary