From 2e118e8f73f939fa93d144470e7fa31228e7e74d Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 1 May 2018 21:24:14 +0000 Subject: Add CPDF_Document::Extension::DeletePage() Replaces one compile-time #ifdef XFA with a dynamic check and a call through a virtual API that prevents the CPDF code from knowing anything about the XFA code. Change-Id: If0ff9b6918b908b3eac824fe1d525c6d4f7316e7 Reviewed-on: https://pdfium-review.googlesource.com/31890 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- core/fpdfapi/parser/cpdf_document.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/fpdfapi') diff --git a/core/fpdfapi/parser/cpdf_document.h b/core/fpdfapi/parser/cpdf_document.h index 4466df640e..82af1cfd82 100644 --- a/core/fpdfapi/parser/cpdf_document.h +++ b/core/fpdfapi/parser/cpdf_document.h @@ -45,6 +45,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder { class Extension { public: virtual ~Extension() {} + virtual void DeletePage(int page_index) = 0; }; explicit CPDF_Document(std::unique_ptr pParser); -- cgit v1.2.3