]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/XRef.h
Fix ( workaround ) for xpdf's global xref feature :-)
[evince.git] / pdf / xpdf / XRef.h
index e8874c7ecf683d259ae1981a6b05417510700055..8e947e421b527d93bef1bd56329fcdc17e6787be 100644 (file)
 #pragma interface
 #endif
 
-#include <stdio.h>
 #include "gtypes.h"
 #include "Object.h"
-#include "BaseFile.h"
 
 class Dict;
-class FileStream;
+class Stream;
 
 //------------------------------------------------------------------------
 // XRef
@@ -35,7 +33,7 @@ class XRef {
 public:
 
   // Constructor.  Read xref table from stream.
-  XRef(FileStream *str);
+  XRef(BaseStream *str);
 
   // Destructor.
   ~XRef();
@@ -61,7 +59,7 @@ public:
 
 private:
 
-  BaseFile file;               // input file
+  BaseStream *str;             // input stream
   int start;                   // offset in file (to allow for garbage
                                //   at beginning of file)
   XRefEntry *entries;          // xref entries
@@ -70,9 +68,9 @@ private:
   GBool ok;                    // true if xref table is valid
   Object trailerDict;          // trailer dictionary
 
-  int readTrailer(FileStream *str);
-  GBool readXRef(FileStream *str, int *pos);
-  GBool constructXRef(FileStream *str);
+  int readTrailer();
+  GBool readXRef(int *pos);
+  GBool constructXRef();
   GBool checkEncrypted();
 };