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

« back to all changes in this revision

Viewing changes to filters/kword/pdf/xpdf/xpdf/PSTokenizer.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
// PSTokenizer.h
 
4
//
 
5
// Copyright 2002 Glyph & Cog, LLC
 
6
//
 
7
//========================================================================
 
8
 
 
9
#ifndef PSTOKENIZER_H
 
10
#define PSTOKENIZER_H
 
11
 
 
12
#include <aconf.h>
 
13
 
 
14
#ifdef USE_GCC_PRAGMAS
 
15
#pragma interface
 
16
#endif
 
17
 
 
18
#include "gtypes.h"
 
19
 
 
20
//------------------------------------------------------------------------
 
21
 
 
22
class PSTokenizer {
 
23
public:
 
24
 
 
25
  PSTokenizer(int (*getCharFuncA)(void *), void *dataA);
 
26
  ~PSTokenizer();
 
27
 
 
28
  // Get the next PostScript token.  Returns false at end-of-stream.
 
29
  GBool getToken(char *buf, int size, int *length);
 
30
 
 
31
private:
 
32
 
 
33
  int lookChar();
 
34
  int getChar();
 
35
 
 
36
  int (*getCharFunc)(void *);
 
37
  void *data;
 
38
  int charBuf;
 
39
};
 
40
 
 
41
#endif