X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fxpdf%2FXRef.h;h=8e947e421b527d93bef1bd56329fcdc17e6787be;hb=97e4ebaf0f2ac8e8f2bb43d12b017861fae5dfc6;hp=b843ea28dc874faa61d4c4e70d522a7cf4ff015c;hpb=d9f9a6449f377b4c933b75d57541b19c6d088994;p=evince.git diff --git a/pdf/xpdf/XRef.h b/pdf/xpdf/XRef.h index b843ea28..8e947e42 100644 --- a/pdf/xpdf/XRef.h +++ b/pdf/xpdf/XRef.h @@ -13,12 +13,11 @@ #pragma interface #endif -#include #include "gtypes.h" #include "Object.h" class Dict; -class FileStream; +class Stream; //------------------------------------------------------------------------ // XRef @@ -34,7 +33,7 @@ class XRef { public: // Constructor. Read xref table from stream. - XRef(FileStream *str); + XRef(BaseStream *str); // Destructor. ~XRef(); @@ -60,7 +59,7 @@ public: private: - FILE *file; // input file + BaseStream *str; // input stream int start; // offset in file (to allow for garbage // at beginning of file) XRefEntry *entries; // xref entries @@ -69,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(); };