diff options
author | Slávek Banko <[email protected]> | 2018-09-08 14:26:50 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-09-08 14:26:50 +0200 |
commit | a0163f4c268fb162aac6510e762716bf780d6c11 (patch) | |
tree | bf4118f46177bedcae9897d908ce85e0b13a7300 /tdefile-plugins/dependencies/poppler-tqt/poppler-private.h | |
parent | 594387b4f345169662031732f2c9495d297be17d (diff) | |
download | tdegraphics-a0163f4c268fb162aac6510e762716bf780d6c11.tar.gz tdegraphics-a0163f4c268fb162aac6510e762716bf780d6c11.zip |
Add support for Poppler >= 0.64
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-private.h')
-rw-r--r-- | tdefile-plugins/dependencies/poppler-tqt/poppler-private.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h index 9e9e3292..56e7cf5e 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h +++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h @@ -34,24 +34,29 @@ #else class SplashOutputDev; #endif +#if defined(HAVE_POPPLER_064) +#define CONST_064 const +#else +#define CONST_064 +#endif namespace Poppler { class DocumentData; -TQString unicodeToTQString(Unicode* u, int len); +TQString unicodeToTQString(CONST_064 Unicode* u, int len); -TQString UnicodeParsedString(GooString *s1); +TQString UnicodeParsedString(CONST_064 GooString *s1); GooString *TQStringToGooString(const TQString &s); class LinkDestinationData { public: - LinkDestinationData( LinkDest *l, GooString *nd, Poppler::DocumentData *pdfdoc ) : ld(l), namedDest(nd), doc(pdfdoc) + LinkDestinationData( CONST_064 LinkDest *l, GooString *nd, Poppler::DocumentData *pdfdoc ) : ld(l), namedDest(nd), doc(pdfdoc) { } - - LinkDest *ld; + + CONST_064 LinkDest *ld; GooString *namedDest; Poppler::DocumentData *doc; }; @@ -84,7 +89,7 @@ class DocumentData { return m_outputDev; } - void addTocChildren( TQDomDocument * docSyn, TQDomNode * parent, GooList * items ); + void addTocChildren( TQDomDocument * docSyn, TQDomNode * parent, CONST_064 GooList * items ); class PDFDoc doc; bool locked; |