~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to filters/kword/pdf/xpdf/xpdf/Parser.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// Parser.h
 
4
//
 
5
// Copyright 1996-2002 Glyph & Cog, LLC
 
6
//
 
7
//========================================================================
 
8
 
 
9
#ifndef PARSER_H
 
10
#define PARSER_H
 
11
 
 
12
#include <aconf.h>
 
13
 
 
14
#ifdef USE_GCC_PRAGMAS
 
15
#pragma interface
 
16
#endif
 
17
 
 
18
#include "Lexer.h"
 
19
 
 
20
//------------------------------------------------------------------------
 
21
// Parser
 
22
//------------------------------------------------------------------------
 
23
 
 
24
class Parser {
 
25
public:
 
26
 
 
27
  // Constructor.
 
28
  Parser(XRef *xrefA, Lexer *lexerA);
 
29
 
 
30
  // Destructor.
 
31
  ~Parser();
 
32
 
 
33
  // Get the next object from the input stream.
 
34
#ifndef NO_DECRYPTION
 
35
  Object *getObj(Object *obj,
 
36
                 Guchar *fileKey = NULL, int keyLength = 0,
 
37
                 int objNum = 0, int objGen = 0);
 
38
#else
 
39
  Object *getObj(Object *obj);
 
40
#endif
 
41
 
 
42
  // Get stream.
 
43
  Stream *getStream() { return lexer->getStream(); }
 
44
 
 
45
  // Get current position in file.
 
46
  int getPos() { return lexer->getPos(); }
 
47
 
 
48
private:
 
49
 
 
50
  XRef *xref;                   // the xref table for this PDF file
 
51
  Lexer *lexer;                 // input stream
 
52
  Object buf1, buf2;            // next two tokens
 
53
  int inlineImg;                // set when inline image data is encountered
 
54
 
 
55
  Stream *makeStream(Object *dict);
 
56
  void shift();
 
57
};
 
58
 
 
59
#endif
 
60