]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/PDFDoc.h
Added lock round XPDF global variable 'xref',
[evince.git] / pdf / xpdf / PDFDoc.h
index 5e28962eda9db8e57b013acd9d8a6e70e17da953..b978bc7df1ed373d8c8b9e28532ed8ce600da537 100644 (file)
@@ -17,6 +17,7 @@
 #include "Link.h"
 
 class GString;
+class BaseStream;
 class XRef;
 class Catalog;
 class OutputDev;
@@ -32,6 +33,7 @@ class PDFDoc {
 public:
 
   PDFDoc(GString *fileName1);
+  PDFDoc(BaseStream *str);
   ~PDFDoc();
 
   // Was PDF document successfully opened?
@@ -93,10 +95,13 @@ public:
 
 private:
 
+  GBool setup();
+  void checkHeader();
   void getLinks(int page);
 
   GString *fileName;
   FILE *file;
+  BaseStream *str;
   XRef *xref;
   Catalog *catalog;
   Links *links;