summaryrefslogtreecommitdiffstats
path: root/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-09-08 14:26:50 +0200
committerSlávek Banko <[email protected]>2018-09-08 14:26:57 +0200
commit1b6cfc41025db2cb108b800d3404738d9a0b74bd (patch)
treefcd5493f1c32680a19136eed196c689fb49bd4f6 /tdefile-plugins/dependencies/poppler-tqt/poppler-private.h
parent8063c4fe47de5f26d0fce48c36501b422efef4e3 (diff)
downloadtdegraphics-1b6cfc41025db2cb108b800d3404738d9a0b74bd.tar.gz
tdegraphics-1b6cfc41025db2cb108b800d3404738d9a0b74bd.zip
Add support for Poppler >= 0.64
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit a0163f4c268fb162aac6510e762716bf780d6c11)
Diffstat (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-private.h')
-rw-r--r--tdefile-plugins/dependencies/poppler-tqt/poppler-private.h17
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;