diff options
author | OBATA Akio <[email protected]> | 2019-05-21 13:33:17 +0900 |
---|---|---|
committer | OBATA Akio <[email protected]> | 2019-05-21 13:33:17 +0900 |
commit | e7a848c7aa5735cba4712d73f819a3e2b9883730 (patch) | |
tree | 80d8fdbdb0709cdb4fb2e1895fe9ae470d14747f /tdefile-plugins/dependencies/poppler-tqt/poppler-private.h | |
parent | 4eb49b55f2b9d2412da7fded637134950c2516a1 (diff) | |
download | tdegraphics-e7a848c7aa5735cba4712d73f819a3e2b9883730.tar.gz tdegraphics-e7a848c7aa5735cba4712d73f819a3e2b9883730.zip |
Add support fo Poppler >= 0.76
Follow Catalog::find_page argments change and GooList removal.
Signed-off-by: OBATA Akio <[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, 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; |