Index: fpdfsdk/javascript/Document.h |
diff --git a/fpdfsdk/javascript/Document.h b/fpdfsdk/javascript/Document.h |
index 5f33cf1f69061ae198628235af2afd43b33eac3b..a72316c3d1745a472665f6c6fe426e20f588792b 100644 |
--- a/fpdfsdk/javascript/Document.h |
+++ b/fpdfsdk/javascript/Document.h |
@@ -13,7 +13,7 @@ |
#include "core/fpdfapi/page/cpdf_pageobject.h" |
#include "core/fpdfapi/page/cpdf_textobject.h" |
-#include "fpdfsdk/cpdfsdk_document.h" |
+#include "fpdfsdk/cpdfsdk_formfillenvironment.h" |
#include "fpdfsdk/javascript/JS_Define.h" |
class PrintParamsObj : public CJS_EmbedObj { |
@@ -270,8 +270,10 @@ class Document : public CJS_EmbedObj { |
CFX_WideString& sError); |
FX_BOOL URL(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
- void AttachDoc(CPDFSDK_Document* pDoc); |
- CPDFSDK_Document* GetReaderDoc() const { return m_pDocument.Get(); } |
+ void SetFormFillEnv(CPDFSDK_FormFillEnvironment* pFormFillEnv); |
+ CPDFSDK_FormFillEnvironment* GetFormFillEnv() const { |
+ return m_pFormFillEnv.Get(); |
+ } |
void AddDelayData(CJS_DelayData* pData); |
void DoFieldDelay(const CFX_WideString& sFieldName, int nControlIndex); |
CJS_Document* GetCJSDoc() const; |
@@ -286,7 +288,7 @@ class Document : public CJS_EmbedObj { |
const CFX_ByteString& propName, |
CFX_WideString& sError); |
- CPDFSDK_Document::ObservedPtr m_pDocument; |
+ CPDFSDK_FormFillEnvironment::ObservedPtr m_pFormFillEnv; |
CFX_WideString m_cwBaseURL; |
std::list<std::unique_ptr<CJS_DelayData>> m_DelayData; |
std::list<std::unique_ptr<IconElement>> m_IconList; |