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

« back to all changes in this revision

Viewing changes to filters/kword/pdf/xpdf/xpdf/NameToCharCode.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
// NameToCharCode.h
 
4
//
 
5
// Copyright 2001-2002 Glyph & Cog, LLC
 
6
//
 
7
//========================================================================
 
8
 
 
9
#ifndef NAMETOCHARCODE_H
 
10
#define NAMETOCHARCODE_H
 
11
 
 
12
#include <aconf.h>
 
13
 
 
14
#ifdef USE_GCC_PRAGMAS
 
15
#pragma interface
 
16
#endif
 
17
 
 
18
#include "CharTypes.h"
 
19
 
 
20
struct NameToCharCodeEntry;
 
21
 
 
22
//------------------------------------------------------------------------
 
23
 
 
24
class NameToCharCode {
 
25
public:
 
26
 
 
27
  NameToCharCode();
 
28
  ~NameToCharCode();
 
29
 
 
30
  void add(const char *name, CharCode c);
 
31
  CharCode lookup(const char *name);
 
32
 
 
33
private:
 
34
 
 
35
  int hash(const char *name);
 
36
 
 
37
  NameToCharCodeEntry *tab;
 
38
  int size;
 
39
  int len;
 
40
};
 
41
 
 
42
#endif