Index: fpdfsdk/javascript/cjs_context.h |
diff --git a/fpdfsdk/javascript/cjs_context.h b/fpdfsdk/javascript/cjs_context.h |
index 74d4e661c333cd64137486c9b15939a663668b8e..b845f8b3d3ad48f2d52a2d6a8e80b70249a331b3 100644 |
--- a/fpdfsdk/javascript/cjs_context.h |
+++ b/fpdfsdk/javascript/cjs_context.h |
@@ -26,17 +26,17 @@ class CJS_Context : public IJS_Context { |
FX_BOOL RunScript(const CFX_WideString& script, |
CFX_WideString* info) override; |
void OnApp_Init() override; |
- void OnDoc_Open(CPDFSDK_Document* pDoc, |
+ void OnDoc_Open(CPDFSDK_FormFillEnvironment* pFormFillEnv, |
const CFX_WideString& strTargetName) override; |
- void OnDoc_WillPrint(CPDFSDK_Document* pDoc) override; |
- void OnDoc_DidPrint(CPDFSDK_Document* pDoc) override; |
- void OnDoc_WillSave(CPDFSDK_Document* pDoc) override; |
- void OnDoc_DidSave(CPDFSDK_Document* pDoc) override; |
- void OnDoc_WillClose(CPDFSDK_Document* pDoc) override; |
- void OnPage_Open(CPDFSDK_Document* pTarget) override; |
- void OnPage_Close(CPDFSDK_Document* pTarget) override; |
- void OnPage_InView(CPDFSDK_Document* pTarget) override; |
- void OnPage_OutView(CPDFSDK_Document* pTarget) override; |
+ void OnDoc_WillPrint(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
+ void OnDoc_DidPrint(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
+ void OnDoc_WillSave(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
+ void OnDoc_DidSave(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
+ void OnDoc_WillClose(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
+ void OnPage_Open(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
+ void OnPage_Close(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
+ void OnPage_InView(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
+ void OnPage_OutView(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
void OnField_MouseDown(FX_BOOL bModifier, |
FX_BOOL bShift, |
CPDF_FormField* pTarget) override; |
@@ -115,18 +115,17 @@ class CJS_Context : public IJS_Context { |
FX_BOOL bShift, |
CPDFSDK_Annot* pScreen) override; |
void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark) override; |
- void OnLink_MouseUp(CPDFSDK_Document* pTarget) override; |
- void OnMenu_Exec(CPDFSDK_Document* pTarget, |
+ void OnLink_MouseUp(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
+ void OnMenu_Exec(CPDFSDK_FormFillEnvironment* pFormFillEnv, |
const CFX_WideString& strTargetName) override; |
- void OnBatchExec(CPDFSDK_Document* pTarget) override; |
+ void OnBatchExec(CPDFSDK_FormFillEnvironment* pFormFillEnv) override; |
void OnConsole_Exec() override; |
void OnExternal_Exec() override; |
CJS_Runtime* GetJSRuntime() const { return m_pRuntime; } |
CJS_EventHandler* GetEventHandler() const { return m_pEventHandler.get(); } |
- CPDFSDK_FormFillEnvironment* GetReaderEnv(); |
- CPDFSDK_Document* GetReaderDocument(); |
+ CPDFSDK_FormFillEnvironment* GetFormFillEnv(); |
private: |
CJS_Runtime* const m_pRuntime; |