X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FParser.h;h=3bc3ab27408755e9f1e662d4a458ee211dc56803;hb=eea310f329b7409684f825c92a58dcc22b1de506;hp=6e6184499e8003608af38c14b2df965d604cc610;hpb=fc554a43712b76d16b41ec77dd311b4a78b1ef6b;p=swftools.git diff --git a/pdf2swf/xpdf/Parser.h b/pdf2swf/xpdf/Parser.h index 6e61844..3bc3ab2 100644 --- a/pdf2swf/xpdf/Parser.h +++ b/pdf2swf/xpdf/Parser.h @@ -2,14 +2,16 @@ // // Parser.h // -// Copyright 1996 Derek B. Noonburg +// Copyright 1996-2003 Glyph & Cog, LLC // //======================================================================== #ifndef PARSER_H #define PARSER_H -#ifdef __GNUC__ +#include + +#ifdef USE_GCC_PRAGMAS #pragma interface #endif @@ -23,7 +25,7 @@ class Parser { public: // Constructor. - Parser(Lexer *lexer1); + Parser(XRef *xrefA, Lexer *lexerA); // Destructor. ~Parser(); @@ -31,7 +33,8 @@ public: // Get the next object from the input stream. #ifndef NO_DECRYPTION Object *getObj(Object *obj, - Guchar *fileKey = NULL, int objNum = 0, int objGen = 0); + Guchar *fileKey = NULL, int keyLength = 0, + int objNum = 0, int objGen = 0); #else Object *getObj(Object *obj); #endif @@ -44,6 +47,7 @@ public: private: + XRef *xref; // the xref table for this PDF file Lexer *lexer; // input stream Object buf1, buf2; // next two tokens int inlineImg; // set when inline image data is encountered