diff options
Diffstat (limited to 'pdf/xpdf/UnicodeMap.h')
-rw-r--r-- | pdf/xpdf/UnicodeMap.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pdf/xpdf/UnicodeMap.h b/pdf/xpdf/UnicodeMap.h index 274c447..60c0c27 100644 --- a/pdf/xpdf/UnicodeMap.h +++ b/pdf/xpdf/UnicodeMap.h @@ -11,7 +11,9 @@ #ifndef UNICODEMAP_H #define UNICODEMAP_H -#ifdef __GNUC__ +#include <aconf.h> + +#ifdef USE_GCC_PRAGMAS #pragma interface #endif @@ -47,12 +49,13 @@ public: static UnicodeMap *parse(GString *encodingNameA); // Create a resident UnicodeMap. - UnicodeMap(char *encodingNameA, + UnicodeMap(char *encodingNameA, GBool unicodeOutA, UnicodeMapRange *rangesA, int lenA); // Create a resident UnicodeMap that uses a function instead of a // list of ranges. - UnicodeMap(char *encodingNameA, UnicodeMapFunc funcA); + UnicodeMap(char *encodingNameA, GBool unicodeOutA, + UnicodeMapFunc funcA); ~UnicodeMap(); @@ -61,6 +64,8 @@ public: GString *getEncodingName() { return encodingName; } + GBool isUnicode() { return unicodeOut; } + // Return true if this UnicodeMap matches the specified // <encodingNameA>. GBool match(GString *encodingNameA); @@ -77,6 +82,7 @@ private: GString *encodingName; UnicodeMapKind kind; + GBool unicodeOut; union { UnicodeMapRange *ranges; // (user, resident) UnicodeMapFunc func; // (func) |