[poppler] poppler/GlobalParams.cc poppler/GlobalParams.h
Albert Astals Cid
aacid at kemper.freedesktop.org
Fri Aug 1 14:14:57 PDT 2008
poppler/GlobalParams.cc | 19 +++++++++++++++++++
poppler/GlobalParams.h | 2 ++
2 files changed, 21 insertions(+)
New commits:
commit d14fb1513be045363f7edec21cee04fd4937ede2
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Aug 1 23:14:28 2008 +0200
Add GooList *getEncodingNames();
Forgot to commit this earlier :-(
diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc
index db1ac04..15a052d 100644
--- a/poppler/GlobalParams.cc
+++ b/poppler/GlobalParams.cc
@@ -1535,6 +1535,25 @@ UnicodeMap *GlobalParams::getTextEncoding() {
return getUnicodeMap2(textEncoding);
}
+GooList *GlobalParams::getEncodingNames()
+{
+ GooList *result = new GooList;
+ GooHashIter *iter;
+ GooString *key;
+ void *val;
+ residentUnicodeMaps->startIter(&iter);
+ while (residentUnicodeMaps->getNext(&iter, &key, &val)) {
+ result->append(key);
+ }
+ residentUnicodeMaps->killIter(&iter);
+ unicodeMaps->startIter(&iter);
+ while (unicodeMaps->getNext(&iter, &key, &val)) {
+ result->append(key);
+ }
+ unicodeMaps->killIter(&iter);
+ return result;
+}
+
//------------------------------------------------------------------------
// functions to set parameters
//------------------------------------------------------------------------
diff --git a/poppler/GlobalParams.h b/poppler/GlobalParams.h
index d505d74..9e85a72 100644
--- a/poppler/GlobalParams.h
+++ b/poppler/GlobalParams.h
@@ -205,6 +205,8 @@ public:
GBool loadPlugin(char *type, char *name);
#endif
+ GooList *getEncodingNames();
+
//----- functions to set parameters
void setPSExpandSmaller(GBool expand);
void setPSShrinkLarger(GBool shrink);
More information about the poppler
mailing list