diff options
author | OBATA Akio <[email protected]> | 2019-05-21 13:33:17 +0900 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-05-21 18:02:47 +0200 |
commit | b9469c0263ea3bf1e72a3dd364bb42e3d6f47a7c (patch) | |
tree | 69fd0b9c66bd88f6b426063f113ca8fd6d97cc41 /tdefile-plugins/dependencies/poppler-tqt/poppler-private.h | |
parent | 57535f3efb857b11838ed6e1b8c70b70802c81f0 (diff) | |
download | tdegraphics-b9469c0263ea3bf1e72a3dd364bb42e3d6f47a7c.tar.gz tdegraphics-b9469c0263ea3bf1e72a3dd364bb42e3d6f47a7c.zip |
Add support fo Poppler >= 0.76
Follow Catalog::find_page argments change and GooList removal.
Signed-off-by: OBATA Akio <[email protected]>
(cherry picked from commit e7a848c7aa5735cba4712d73f819a3e2b9883730)
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, 16 insertions, 1 deletions
diff --git a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h index 74a22596..33b8cfc3 100644 --- a/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h +++ b/tdefile-plugins/dependencies/poppler-tqt/poppler-private.h @@ -49,6 +49,21 @@ class SplashOutputDev; #else #define GOO_GET_CSTR getCString #endif +#if defined(HAVE_POPPLER_076) +#include <vector> +class OutlineItem; +#define OUTLINE_ITEMS_TYPE const std::vector<OutlineItem*> +#define OUTLINE_ITEMS_LENGTH(goo) goo->size() +#define FONTS_LIST_TYPE std::vector<::FontInfo*> +#define FONTS_LIST_LENGTH(goo) goo->size() +#define FIND_PAGE_ARGS(ref) ref +#else +#define OUTLINE_ITEMS_TYPE CONST_064 GooList +#define OUTLINE_ITEMS_LENGTH(goo) goo->getLength() +#define FONTS_LIST_TYPE GooList +#define FONTS_LIST_LENGTH(goo) goo->getLength() +#define FIND_PAGE_ARGS(ref) ref.num, ref.gen +#endif namespace Poppler { @@ -99,7 +114,7 @@ class DocumentData { return m_outputDev; } - void addTocChildren( TQDomDocument * docSyn, TQDomNode * parent, CONST_064 GooList * items ); + void addTocChildren( TQDomDocument * docSyn, TQDomNode * parent, OUTLINE_ITEMS_TYPE * items ); class PDFDoc doc; bool locked; |