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=ae59cfdd10d16d5f360a97bf40f74e50ad998d92;hp=e8874c7ecf683d259ae1981a6b05417510700055;hpb=2610a3462d1ac3f20cba8f16dd07cba8a8c2fbef;p=evince.git diff --git a/pdf/xpdf/XRef.h b/pdf/xpdf/XRef.h index e8874c7e..8e947e42 100644 --- a/pdf/xpdf/XRef.h +++ b/pdf/xpdf/XRef.h @@ -13,13 +13,11 @@ #pragma interface #endif -#include #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(); };