OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXFA_PARSER_XFA_SCRIPT_EVENTPSEUDOMODEL_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_SCRIPT_EVENTPSEUDOMODEL_H_ |
8 #define XFA_FXFA_PARSER_XFA_SCRIPT_EVENTPSEUDOMODEL_H_ | 8 #define XFA_FXFA_PARSER_XFA_SCRIPT_EVENTPSEUDOMODEL_H_ |
9 | 9 |
10 #include "fxjse/include/cfxjse_arguments.h" | 10 #include "fxjse/include/cfxjse_arguments.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 SoapFaultString, | 28 SoapFaultString, |
29 Target, | 29 Target, |
30 CancelAction | 30 CancelAction |
31 }; | 31 }; |
32 | 32 |
33 class CScript_EventPseudoModel : public CXFA_Object { | 33 class CScript_EventPseudoModel : public CXFA_Object { |
34 public: | 34 public: |
35 explicit CScript_EventPseudoModel(CXFA_Document* pDocument); | 35 explicit CScript_EventPseudoModel(CXFA_Document* pDocument); |
36 ~CScript_EventPseudoModel() override; | 36 ~CScript_EventPseudoModel() override; |
37 | 37 |
38 void Script_EventPseudoModel_Change(CFXJSE_Value* pValue, | 38 void Change(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); |
39 FX_BOOL bSetting, | 39 void CommitKey(CFXJSE_Value* pValue, |
40 XFA_ATTRIBUTE eAttribute); | 40 FX_BOOL bSetting, |
41 void Script_EventPseudoModel_CommitKey(CFXJSE_Value* pValue, | 41 XFA_ATTRIBUTE eAttribute); |
42 FX_BOOL bSetting, | 42 void FullText(CFXJSE_Value* pValue, |
43 XFA_ATTRIBUTE eAttribute); | 43 FX_BOOL bSetting, |
44 void Script_EventPseudoModel_FullText(CFXJSE_Value* pValue, | 44 XFA_ATTRIBUTE eAttribute); |
45 FX_BOOL bSetting, | 45 void KeyDown(CFXJSE_Value* pValue, |
46 XFA_ATTRIBUTE eAttribute); | 46 FX_BOOL bSetting, |
47 void Script_EventPseudoModel_KeyDown(CFXJSE_Value* pValue, | 47 XFA_ATTRIBUTE eAttribute); |
48 FX_BOOL bSetting, | 48 void Modifier(CFXJSE_Value* pValue, |
49 XFA_ATTRIBUTE eAttribute); | 49 FX_BOOL bSetting, |
50 void Script_EventPseudoModel_Modifier(CFXJSE_Value* pValue, | 50 XFA_ATTRIBUTE eAttribute); |
51 FX_BOOL bSetting, | 51 void NewContentType(CFXJSE_Value* pValue, |
52 XFA_ATTRIBUTE eAttribute); | 52 FX_BOOL bSetting, |
53 void Script_EventPseudoModel_NewContentType(CFXJSE_Value* pValue, | 53 XFA_ATTRIBUTE eAttribute); |
54 FX_BOOL bSetting, | 54 void NewText(CFXJSE_Value* pValue, |
55 XFA_ATTRIBUTE eAttribute); | 55 FX_BOOL bSetting, |
56 void Script_EventPseudoModel_NewText(CFXJSE_Value* pValue, | 56 XFA_ATTRIBUTE eAttribute); |
57 FX_BOOL bSetting, | 57 void PrevContentType(CFXJSE_Value* pValue, |
58 XFA_ATTRIBUTE eAttribute); | 58 FX_BOOL bSetting, |
59 void Script_EventPseudoModel_PrevContentType(CFXJSE_Value* pValue, | 59 XFA_ATTRIBUTE eAttribute); |
60 FX_BOOL bSetting, | 60 void PrevText(CFXJSE_Value* pValue, |
61 XFA_ATTRIBUTE eAttribute); | 61 FX_BOOL bSetting, |
62 void Script_EventPseudoModel_PrevText(CFXJSE_Value* pValue, | 62 XFA_ATTRIBUTE eAttribute); |
63 FX_BOOL bSetting, | 63 void Reenter(CFXJSE_Value* pValue, |
64 XFA_ATTRIBUTE eAttribute); | 64 FX_BOOL bSetting, |
65 void Script_EventPseudoModel_Reenter(CFXJSE_Value* pValue, | 65 XFA_ATTRIBUTE eAttribute); |
66 FX_BOOL bSetting, | 66 void SelEnd(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); |
67 XFA_ATTRIBUTE eAttribute); | 67 void SelStart(CFXJSE_Value* pValue, |
68 void Script_EventPseudoModel_SelEnd(CFXJSE_Value* pValue, | 68 FX_BOOL bSetting, |
69 FX_BOOL bSetting, | 69 XFA_ATTRIBUTE eAttribute); |
70 XFA_ATTRIBUTE eAttribute); | 70 void Shift(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); |
71 void Script_EventPseudoModel_SelStart(CFXJSE_Value* pValue, | 71 void SoapFaultCode(CFXJSE_Value* pValue, |
72 FX_BOOL bSetting, | 72 FX_BOOL bSetting, |
73 XFA_ATTRIBUTE eAttribute); | 73 XFA_ATTRIBUTE eAttribute); |
74 void Script_EventPseudoModel_Shift(CFXJSE_Value* pValue, | 74 void SoapFaultString(CFXJSE_Value* pValue, |
75 FX_BOOL bSetting, | 75 FX_BOOL bSetting, |
76 XFA_ATTRIBUTE eAttribute); | 76 XFA_ATTRIBUTE eAttribute); |
77 void Script_EventPseudoModel_SoapFaultCode(CFXJSE_Value* pValue, | 77 void Target(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); |
78 FX_BOOL bSetting, | |
79 XFA_ATTRIBUTE eAttribute); | |
80 void Script_EventPseudoModel_SoapFaultString(CFXJSE_Value* pValue, | |
81 FX_BOOL bSetting, | |
82 XFA_ATTRIBUTE eAttribute); | |
83 void Script_EventPseudoModel_Target(CFXJSE_Value* pValue, | |
84 FX_BOOL bSetting, | |
85 XFA_ATTRIBUTE eAttribute); | |
86 | 78 |
87 void Script_EventPseudoModel_Emit(CFXJSE_Arguments* pArguments); | 79 void Emit(CFXJSE_Arguments* pArguments); |
88 void Script_EventPseudoModel_Reset(CFXJSE_Arguments* pArguments); | 80 void Reset(CFXJSE_Arguments* pArguments); |
89 | 81 |
90 protected: | 82 protected: |
91 void Script_EventPseudoModel_Property(CFXJSE_Value* pValue, | 83 void Property(CFXJSE_Value* pValue, XFA_Event dwFlag, FX_BOOL bSetting); |
92 XFA_Event dwFlag, | |
93 FX_BOOL bSetting); | |
94 }; | 84 }; |
95 | 85 |
96 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_EVENTPSEUDOMODEL_H_ | 86 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_EVENTPSEUDOMODEL_H_ |
OLD | NEW |