Index: fpdfsdk/cpdfsdk_formfillenvironment.h |
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.h b/fpdfsdk/cpdfsdk_formfillenvironment.h |
index e92537eee128cb4ae1bf4a200b701648f0e3f2a6..b0ff2775613ffbe5cddabe42eb0598232629289d 100644 |
--- a/fpdfsdk/cpdfsdk_formfillenvironment.h |
+++ b/fpdfsdk/cpdfsdk_formfillenvironment.h |
@@ -14,15 +14,21 @@ |
#include "core/fpdfdoc/cpdf_occontext.h" |
#include "core/fxcrt/cfx_observable.h" |
#include "fpdfsdk/cfx_systemhandler.h" |
+#include "fpdfsdk/cpdfsdk_document.h" |
#include "fpdfsdk/fsdk_define.h" |
#include "public/fpdf_formfill.h" |
#include "public/fpdf_fwlevent.h" |
+#ifdef PDF_ENABLE_XFA |
+#include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" |
+#endif // PDF_ENABLE_XFA |
+ |
class CFFL_InteractiveFormFiller; |
class CFX_SystemHandler; |
class CPDFSDK_ActionHandler; |
class CPDFSDK_AnnotHandlerMgr; |
class CPDFSDK_Document; |
+class CPDFSDK_InterForm; |
class IJS_Runtime; |
class CPDFSDK_FormFillEnvironment final { |
@@ -148,6 +154,12 @@ class CPDFSDK_FormFillEnvironment final { |
FX_BOOL IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; } |
CPDFSDK_Document* GetSDKDocument() const { return m_pSDKDoc.get(); } |
+#ifdef PDF_ENABLE_XFA |
+ CPDFXFA_Document* GetXFADocument() const { |
+ return m_pSDKDoc->GetXFADocument(); |
+ } |
+#endif // PDF_ENABLE_XFA |
+ |
UnderlyingDocumentType* GetUnderlyingDocument() const { |
return m_pUnderlyingDoc; |
} |
@@ -155,6 +167,8 @@ class CPDFSDK_FormFillEnvironment final { |
CFX_SystemHandler* GetSysHandler() const { return m_pSysHandler.get(); } |
FPDF_FORMFILLINFO* GetFormFillInfo() const { return m_pInfo; } |
+ CPDFSDK_InterForm* GetInterForm() const; |
+ |
// Creates if not present. |
CFFL_InteractiveFormFiller* GetInteractiveFormFiller(); |
CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. |