~ubuntu-branches/ubuntu/dapper/poppler/dapper-security

« back to all changes in this revision

Viewing changes to poppler/Dict.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-03-06 18:42:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060306184244-oomqyiqr7cgncp2c
Tags: 0.5.1-0ubuntu1
* New upstream version:
  - Support for embedded files.
  - Handle 0-width lines correctly.
  - Avoid external file use when opening fonts.
  - Only use vector fonts returned from fontconfig (#5758).
  - Fix scaled 1x1 pixmaps use for drawing lines (#3387).
  - drawSoftMaskedImage support in cairo backend.
  - Misc bug fixes: #5922, #5946, #5749, #5952, #4030, #5420.
* debian/control.in, debian/libpoppler0c2.dirs, 
  debian/libpoppler0c2-glib.dirs, debian/libpoppler0c2-glib.install,
  debian/libpoppler0c2.install, debian/libpoppler0c2-qt.dirs,
  debian/libpoppler0c2-qt.install, debian/rules:
  - updated for the soname change
* debian/patches/000_splash_build_fix.patch:
  - fix build when using splash
* debian/patches/001_fixes_for_fonts_selection.patch:
  - fix with the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#include "Object.h"
17
17
 
 
18
class UGooString;
18
19
//------------------------------------------------------------------------
19
20
// Dict
20
21
//------------------------------------------------------------------------
21
22
 
22
23
struct DictEntry {
23
 
  char *key;
 
24
  UGooString *key;
24
25
  Object val;
25
26
};
26
27
 
40
41
  // Get number of entries.
41
42
  int getLength() { return length; }
42
43
 
43
 
  // Add an entry.  NB: does not copy key.
44
 
  void add(char *key, Object *val);
 
44
  // Add an entry
 
45
  void add(const UGooString &key, Object *val);
45
46
 
46
47
  // Check if dictionary is of specified type.
47
48
  GBool is(char *type);
48
49
 
49
50
  // Look up an entry and return the value.  Returns a null object
50
51
  // if <key> is not in the dictionary.
51
 
  Object *lookup(char *key, Object *obj);
52
 
  Object *lookupNF(char *key, Object *obj);
 
52
  Object *lookup(const UGooString &key, Object *obj);
 
53
  Object *lookupNF(const UGooString &key, Object *obj);
53
54
  GBool lookupInt(const char *key, const char *alt_key, int *value);
54
55
 
55
56
  // Iterative accessors.
56
 
  char *getKey(int i);
 
57
  UGooString *getKey(int i);
57
58
  Object *getVal(int i, Object *obj);
58
59
  Object *getValNF(int i, Object *obj);
59
60
 
70
71
  int length;                   // number of entries in dictionary
71
72
  int ref;                      // reference count
72
73
 
73
 
  DictEntry *find(char *key);
 
74
  DictEntry *find(const UGooString &key);
74
75
};
75
76
 
76
77
#endif