From e7a848c7aa5735cba4712d73f819a3e2b9883730 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Tue, 21 May 2019 13:33:17 +0900 Subject: Add support fo Poppler >= 0.76 Follow Catalog::find_page argments change and GooList removal. Signed-off-by: OBATA Akio --- .../dependencies/poppler-tqt/poppler-private.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'tdefile-plugins/dependencies/poppler-tqt/poppler-private.h') 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 +class OutlineItem; +#define OUTLINE_ITEMS_TYPE const std::vector +#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; -- cgit v1.2.1