]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/XRef.h
Reused eog HIG dialog in GPdf.
[evince.git] / pdf / xpdf / XRef.h
index 7876fa6c5807473a69ad69e9c181fcd14d499abd..3f5a598e9bc058d57d888adb161747793ff879e7 100644 (file)
@@ -2,14 +2,16 @@
 //
 // XRef.h
 //
-// Copyright 1996-2002 Glyph & Cog, LLC
+// Copyright 1996-2003 Glyph & Cog, LLC
 //
 //========================================================================
 
 #ifndef XREF_H
 #define XREF_H
 
-#ifdef __GNUC__
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
 #pragma interface
 #endif
 
@@ -81,6 +83,11 @@ public:
   // Returns false if unknown or file is not damaged.
   GBool getStreamEnd(Guint streamStart, Guint *streamEnd);
 
+  // Direct access.
+  int getSize() { return size; }
+  XRefEntry *getEntry(int i) { return &entries[i]; }
+  Object *getTrailerDict() { return &trailerDict; }
+
 private:
 
   BaseStream *str;             // input stream