Change the translation of the "Help" menu item to "?", so that the menu can be displa...
[reactos.git] / rosapps / smartpdf / poppler / poppler / Parser.h
1 //========================================================================
2 //
3 // Parser.h
4 //
5 // Copyright 1996-2003 Glyph & Cog, LLC
6 //
7 //========================================================================
8
9 #ifndef PARSER_H
10 #define PARSER_H
11
12 #ifdef USE_GCC_PRAGMAS
13 #pragma interface
14 #endif
15
16 #include "Lexer.h"
17
18 //------------------------------------------------------------------------
19 // Parser
20 //------------------------------------------------------------------------
21
22 class Parser {
23 public:
24
25 Parser(XRef *xrefA, Lexer *lexerA);
26
27 ~Parser();
28
29 // Get the next object from the input stream.
30 Object *getObj(Object *obj,
31 Guchar *fileKey = NULL, int keyLength = 0,
32 int objNum = 0, int objGen = 0);
33
34 // Get stream.
35 Stream *getStream() { return lexer->getStream(); }
36
37 // Get current position in file.
38 int getPos() { return lexer->getPos(); }
39
40 private:
41
42 XRef *xref; // the xref table for this PDF file
43 Lexer *lexer; // input stream
44 Object buf1, buf2; // next two tokens
45 int inlineImg; // set when inline image data is encountered
46
47 Stream *makeStream(Object *dict);
48 void shift(int objNum = -1);
49 };
50
51 #endif
52