• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef FXJS_CJS_EVENT_CONTEXT_STUB_H_
8 #define FXJS_CJS_EVENT_CONTEXT_STUB_H_
9 
10 #include "fxjs/ijs_event_context.h"
11 
12 class CJS_EventContextStub final : public IJS_EventContext {
13  public:
CJS_EventContextStub()14   CJS_EventContextStub() {}
~CJS_EventContextStub()15   ~CJS_EventContextStub() override {}
16 
17   // IJS_EventContext:
18   bool RunScript(const WideString& script, WideString* info) override;
19 
OnApp_Init()20   void OnApp_Init() override {}
OnDoc_Open(CPDFSDK_FormFillEnvironment * pFormFillEnv,const WideString & strTargetName)21   void OnDoc_Open(CPDFSDK_FormFillEnvironment* pFormFillEnv,
22                   const WideString& strTargetName) override {}
OnDoc_WillPrint(CPDFSDK_FormFillEnvironment * pFormFillEnv)23   void OnDoc_WillPrint(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnDoc_DidPrint(CPDFSDK_FormFillEnvironment * pFormFillEnv)24   void OnDoc_DidPrint(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnDoc_WillSave(CPDFSDK_FormFillEnvironment * pFormFillEnv)25   void OnDoc_WillSave(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnDoc_DidSave(CPDFSDK_FormFillEnvironment * pFormFillEnv)26   void OnDoc_DidSave(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnDoc_WillClose(CPDFSDK_FormFillEnvironment * pFormFillEnv)27   void OnDoc_WillClose(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnPage_Open(CPDFSDK_FormFillEnvironment * pFormFillEnv)28   void OnPage_Open(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnPage_Close(CPDFSDK_FormFillEnvironment * pFormFillEnv)29   void OnPage_Close(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnPage_InView(CPDFSDK_FormFillEnvironment * pFormFillEnv)30   void OnPage_InView(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnPage_OutView(CPDFSDK_FormFillEnvironment * pFormFillEnv)31   void OnPage_OutView(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnField_MouseDown(bool bModifier,bool bShift,CPDF_FormField * pTarget)32   void OnField_MouseDown(bool bModifier,
33                          bool bShift,
34                          CPDF_FormField* pTarget) override {}
OnField_MouseEnter(bool bModifier,bool bShift,CPDF_FormField * pTarget)35   void OnField_MouseEnter(bool bModifier,
36                           bool bShift,
37                           CPDF_FormField* pTarget) override {}
OnField_MouseExit(bool bModifier,bool bShift,CPDF_FormField * pTarget)38   void OnField_MouseExit(bool bModifier,
39                          bool bShift,
40                          CPDF_FormField* pTarget) override {}
OnField_MouseUp(bool bModifier,bool bShift,CPDF_FormField * pTarget)41   void OnField_MouseUp(bool bModifier,
42                        bool bShift,
43                        CPDF_FormField* pTarget) override {}
OnField_Focus(bool bModifier,bool bShift,CPDF_FormField * pTarget,const WideString & Value)44   void OnField_Focus(bool bModifier,
45                      bool bShift,
46                      CPDF_FormField* pTarget,
47                      const WideString& Value) override {}
OnField_Blur(bool bModifier,bool bShift,CPDF_FormField * pTarget,const WideString & Value)48   void OnField_Blur(bool bModifier,
49                     bool bShift,
50                     CPDF_FormField* pTarget,
51                     const WideString& Value) override {}
OnField_Calculate(CPDF_FormField * pSource,CPDF_FormField * pTarget,WideString & Value,bool & bRc)52   void OnField_Calculate(CPDF_FormField* pSource,
53                          CPDF_FormField* pTarget,
54                          WideString& Value,
55                          bool& bRc) override {}
OnField_Format(CPDF_FormField * pTarget,WideString & Value,bool bWillCommit)56   void OnField_Format(CPDF_FormField* pTarget,
57                       WideString& Value,
58                       bool bWillCommit) override {}
OnField_Keystroke(WideString & strChange,const WideString & strChangeEx,bool KeyDown,bool bModifier,int & nSelEnd,int & nSelStart,bool bShift,CPDF_FormField * pTarget,WideString & Value,bool bWillCommit,bool bFieldFull,bool & bRc)59   void OnField_Keystroke(WideString& strChange,
60                          const WideString& strChangeEx,
61                          bool KeyDown,
62                          bool bModifier,
63                          int& nSelEnd,
64                          int& nSelStart,
65                          bool bShift,
66                          CPDF_FormField* pTarget,
67                          WideString& Value,
68                          bool bWillCommit,
69                          bool bFieldFull,
70                          bool& bRc) override {}
OnField_Validate(WideString & strChange,const WideString & strChangeEx,bool bKeyDown,bool bModifier,bool bShift,CPDF_FormField * pTarget,WideString & Value,bool & bRc)71   void OnField_Validate(WideString& strChange,
72                         const WideString& strChangeEx,
73                         bool bKeyDown,
74                         bool bModifier,
75                         bool bShift,
76                         CPDF_FormField* pTarget,
77                         WideString& Value,
78                         bool& bRc) override {}
OnScreen_Focus(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)79   void OnScreen_Focus(bool bModifier,
80                       bool bShift,
81                       CPDFSDK_Annot* pScreen) override {}
OnScreen_Blur(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)82   void OnScreen_Blur(bool bModifier,
83                      bool bShift,
84                      CPDFSDK_Annot* pScreen) override {}
OnScreen_Open(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)85   void OnScreen_Open(bool bModifier,
86                      bool bShift,
87                      CPDFSDK_Annot* pScreen) override {}
OnScreen_Close(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)88   void OnScreen_Close(bool bModifier,
89                       bool bShift,
90                       CPDFSDK_Annot* pScreen) override {}
OnScreen_MouseDown(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)91   void OnScreen_MouseDown(bool bModifier,
92                           bool bShift,
93                           CPDFSDK_Annot* pScreen) override {}
OnScreen_MouseUp(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)94   void OnScreen_MouseUp(bool bModifier,
95                         bool bShift,
96                         CPDFSDK_Annot* pScreen) override {}
OnScreen_MouseEnter(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)97   void OnScreen_MouseEnter(bool bModifier,
98                            bool bShift,
99                            CPDFSDK_Annot* pScreen) override {}
OnScreen_MouseExit(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)100   void OnScreen_MouseExit(bool bModifier,
101                           bool bShift,
102                           CPDFSDK_Annot* pScreen) override {}
OnScreen_InView(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)103   void OnScreen_InView(bool bModifier,
104                        bool bShift,
105                        CPDFSDK_Annot* pScreen) override {}
OnScreen_OutView(bool bModifier,bool bShift,CPDFSDK_Annot * pScreen)106   void OnScreen_OutView(bool bModifier,
107                         bool bShift,
108                         CPDFSDK_Annot* pScreen) override {}
OnBookmark_MouseUp(CPDF_Bookmark * pBookMark)109   void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark) override {}
OnLink_MouseUp(CPDFSDK_FormFillEnvironment * pFormFillEnv)110   void OnLink_MouseUp(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnMenu_Exec(CPDFSDK_FormFillEnvironment * pFormFillEnv,const WideString &)111   void OnMenu_Exec(CPDFSDK_FormFillEnvironment* pFormFillEnv,
112                    const WideString&) override {}
OnBatchExec(CPDFSDK_FormFillEnvironment * pFormFillEnv)113   void OnBatchExec(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
OnConsole_Exec()114   void OnConsole_Exec() override {}
OnExternal_Exec()115   void OnExternal_Exec() override {}
116 };
117 
118 #endif  // FXJS_CJS_EVENT_CONTEXT_STUB_H_
119