From 2116105b7d0545eb353264d4b42420cf51af5195 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 5 Oct 2016 15:46:15 -0700 Subject: Remove ownership of CPDFSDK_Document from CPDFXFA_Document This CL updates CPDFXFA_Document so it never owns the CPDFSDK_Document. The CPDFSDK_Document is now always owned by the CPDFXFA_Environment. This also cleans up the strange need to reverse the order of document and form destruction when using XFA. Review-Url: https://codereview.chromium.org/2397473006 --- fpdfsdk/cpdfsdk_document.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fpdfsdk/cpdfsdk_document.h') diff --git a/fpdfsdk/cpdfsdk_document.h b/fpdfsdk/cpdfsdk_document.h index 697ee48f9d..561bfc198d 100644 --- a/fpdfsdk/cpdfsdk_document.h +++ b/fpdfsdk/cpdfsdk_document.h @@ -69,6 +69,7 @@ class CPDFSDK_Document : public CFX_Observable { CPDFSDK_Annot* GetFocusAnnot() { return m_pFocusAnnot.Get(); } FX_BOOL SetFocusAnnot(CPDFSDK_Annot::ObservedPtr* pAnnot); FX_BOOL KillFocusAnnot(uint32_t nFlag); + void ClearAllFocusedAnnots(); FX_BOOL ExtractPages(const std::vector& arrExtraPages, CPDF_Document* pDstDoc); -- cgit v1.2.3