Index: fpdfsdk/cpdfsdk_document.cpp |
diff --git a/fpdfsdk/cpdfsdk_document.cpp b/fpdfsdk/cpdfsdk_document.cpp |
index a0febafd484e38968077bc26454f19d494dd5a62..c597a1dab3b07709c170b76be6c6394c20086fc6 100644 |
--- a/fpdfsdk/cpdfsdk_document.cpp |
+++ b/fpdfsdk/cpdfsdk_document.cpp |
@@ -15,7 +15,7 @@ |
#include "core/fpdfdoc/cpdf_occontext.h" |
#include "fpdfsdk/cpdfsdk_annot.h" |
#include "fpdfsdk/cpdfsdk_annothandlermgr.h" |
-#include "fpdfsdk/cpdfsdk_environment.h" |
+#include "fpdfsdk/cpdfsdk_formfillenvironment.h" |
#include "fpdfsdk/cpdfsdk_interform.h" |
#include "fpdfsdk/cpdfsdk_pageview.h" |
#include "fpdfsdk/cpdfsdk_widget.h" |
@@ -25,12 +25,13 @@ |
// static |
CPDFSDK_Document* CPDFSDK_Document::FromFPDFFormHandle( |
FPDF_FORMHANDLE hHandle) { |
- CPDFSDK_Environment* pEnv = static_cast<CPDFSDK_Environment*>(hHandle); |
+ CPDFSDK_FormFillEnvironment* pEnv = |
+ static_cast<CPDFSDK_FormFillEnvironment*>(hHandle); |
return pEnv ? pEnv->GetSDKDocument() : nullptr; |
} |
CPDFSDK_Document::CPDFSDK_Document(UnderlyingDocumentType* pDoc, |
- CPDFSDK_Environment* pEnv) |
+ CPDFSDK_FormFillEnvironment* pEnv) |
: m_pDoc(pDoc), |
m_pEnv(pEnv), |
m_bChangeMask(FALSE), |