diff options
author | Albert Astals Cid <aacid@kde.org> | 2006-01-18 22:32:13 +0000 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2006-01-18 22:32:13 +0000 |
commit | ad6e7d862c8fa6e10a7dbbb3391cbb0b6c922375 (patch) | |
tree | 0c27f504e2fcc0868d3d33d0fe8f900dd5338120 /poppler/Object.h | |
parent | 550fb0b617ece7951ec39aec5fa5504cc90022fc (diff) |
Brad patch for embedded document extraction, only has Qt4 bindings for now, needs Qt3 and glib work
Diffstat (limited to 'poppler/Object.h')
-rw-r--r-- | poppler/Object.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/poppler/Object.h b/poppler/Object.h index 81f6581e..4bcaac83 100644 --- a/poppler/Object.h +++ b/poppler/Object.h @@ -23,6 +23,7 @@ class XRef; class Array; class Dict; class Stream; +class UGooString; //------------------------------------------------------------------------ // Ref @@ -163,11 +164,11 @@ public: // Dict accessors. int dictGetLength(); - void dictAdd(char *key, Object *val); + void dictAdd(const UGooString &key, Object *val); GBool dictIs(char *dictType); - Object *dictLookup(char *key, Object *obj); - Object *dictLookupNF(char *key, Object *obj); - char *dictGetKey(int i); + Object *dictLookup(const UGooString &key, Object *obj); + Object *dictLookupNF(const UGooString &key, Object *obj); + UGooString *dictGetKey(int i); Object *dictGetVal(int i, Object *obj); Object *dictGetValNF(int i, Object *obj); @@ -238,7 +239,7 @@ inline Object *Object::arrayGetNF(int i, Object *obj) inline int Object::dictGetLength() { return dict->getLength(); } -inline void Object::dictAdd(char *key, Object *val) +inline void Object::dictAdd(const UGooString &key, Object *val) { dict->add(key, val); } inline GBool Object::dictIs(char *dictType) @@ -247,13 +248,13 @@ inline GBool Object::dictIs(char *dictType) inline GBool Object::isDict(char *dictType) { return type == objDict && dictIs(dictType); } -inline Object *Object::dictLookup(char *key, Object *obj) +inline Object *Object::dictLookup(const UGooString &key, Object *obj) { return dict->lookup(key, obj); } -inline Object *Object::dictLookupNF(char *key, Object *obj) +inline Object *Object::dictLookupNF(const UGooString &key, Object *obj) { return dict->lookupNF(key, obj); } -inline char *Object::dictGetKey(int i) +inline UGooString *Object::dictGetKey(int i) { return dict->getKey(i); } inline Object *Object::dictGetVal(int i, Object *obj) |