| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 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 XFA_SRC_FXFA_PARSER_XFA_SCRIPT_EVENTPSEUDOMODEL_H_ | |
| 8 #define XFA_SRC_FXFA_PARSER_XFA_SCRIPT_EVENTPSEUDOMODEL_H_ | |
| 9 | |
| 10 #include "xfa/src/fxfa/parser/xfa_object.h" | |
| 11 | |
| 12 #define XFA_EVENT_CHANGE 0 | |
| 13 #define XFA_EVENT_COMMITKEY 1 | |
| 14 #define XFA_EVENT_FULLTEXT 2 | |
| 15 #define XFA_EVENT_KEYDOWN 3 | |
| 16 #define XFA_EVENT_MODIFIER 4 | |
| 17 #define XFA_EVENT_NEWCONTENTTYPE 5 | |
| 18 #define XFA_EVENT_NEWTEXT 6 | |
| 19 #define XFA_EVENT_PREVCONTENTTYPE 7 | |
| 20 #define XFA_EVENT_PREVTEXT 8 | |
| 21 #define XFA_EVENT_REENTER 9 | |
| 22 #define XFA_EVENT_SELEND 10 | |
| 23 #define XFA_EVENT_SELSTART 11 | |
| 24 #define XFA_EVENT_SHIFT 12 | |
| 25 #define XFA_EVENT_SOAPFAULTCODE 13 | |
| 26 #define XFA_EVENT_SOAPFAULTSTRING 14 | |
| 27 #define XFA_EVENT_TARGET 15 | |
| 28 #define XFA_EVENT_CANCELACTION 16 | |
| 29 | |
| 30 class CScript_EventPseudoModel : public CXFA_OrdinaryObject { | |
| 31 public: | |
| 32 explicit CScript_EventPseudoModel(CXFA_Document* pDocument); | |
| 33 virtual ~CScript_EventPseudoModel(); | |
| 34 | |
| 35 void Script_EventPseudoModel_CancelAction(FXJSE_HVALUE hValue, | |
| 36 FX_BOOL bSetting, | |
| 37 XFA_ATTRIBUTE eAttribute); | |
| 38 void Script_EventPseudoModel_Change(FXJSE_HVALUE hValue, | |
| 39 FX_BOOL bSetting, | |
| 40 XFA_ATTRIBUTE eAttribute); | |
| 41 void Script_EventPseudoModel_CommitKey(FXJSE_HVALUE hValue, | |
| 42 FX_BOOL bSetting, | |
| 43 XFA_ATTRIBUTE eAttribute); | |
| 44 void Script_EventPseudoModel_FullText(FXJSE_HVALUE hValue, | |
| 45 FX_BOOL bSetting, | |
| 46 XFA_ATTRIBUTE eAttribute); | |
| 47 void Script_EventPseudoModel_KeyDown(FXJSE_HVALUE hValue, | |
| 48 FX_BOOL bSetting, | |
| 49 XFA_ATTRIBUTE eAttribute); | |
| 50 void Script_EventPseudoModel_Modifier(FXJSE_HVALUE hValue, | |
| 51 FX_BOOL bSetting, | |
| 52 XFA_ATTRIBUTE eAttribute); | |
| 53 void Script_EventPseudoModel_NewContentType(FXJSE_HVALUE hValue, | |
| 54 FX_BOOL bSetting, | |
| 55 XFA_ATTRIBUTE eAttribute); | |
| 56 void Script_EventPseudoModel_NewText(FXJSE_HVALUE hValue, | |
| 57 FX_BOOL bSetting, | |
| 58 XFA_ATTRIBUTE eAttribute); | |
| 59 void Script_EventPseudoModel_PrevContentType(FXJSE_HVALUE hValue, | |
| 60 FX_BOOL bSetting, | |
| 61 XFA_ATTRIBUTE eAttribute); | |
| 62 void Script_EventPseudoModel_PrevText(FXJSE_HVALUE hValue, | |
| 63 FX_BOOL bSetting, | |
| 64 XFA_ATTRIBUTE eAttribute); | |
| 65 void Script_EventPseudoModel_Reenter(FXJSE_HVALUE hValue, | |
| 66 FX_BOOL bSetting, | |
| 67 XFA_ATTRIBUTE eAttribute); | |
| 68 void Script_EventPseudoModel_SelEnd(FXJSE_HVALUE hValue, | |
| 69 FX_BOOL bSetting, | |
| 70 XFA_ATTRIBUTE eAttribute); | |
| 71 void Script_EventPseudoModel_SelStart(FXJSE_HVALUE hValue, | |
| 72 FX_BOOL bSetting, | |
| 73 XFA_ATTRIBUTE eAttribute); | |
| 74 void Script_EventPseudoModel_Shift(FXJSE_HVALUE hValue, | |
| 75 FX_BOOL bSetting, | |
| 76 XFA_ATTRIBUTE eAttribute); | |
| 77 void Script_EventPseudoModel_SoapFaultCode(FXJSE_HVALUE hValue, | |
| 78 FX_BOOL bSetting, | |
| 79 XFA_ATTRIBUTE eAttribute); | |
| 80 void Script_EventPseudoModel_SoapFaultString(FXJSE_HVALUE hValue, | |
| 81 FX_BOOL bSetting, | |
| 82 XFA_ATTRIBUTE eAttribute); | |
| 83 void Script_EventPseudoModel_Target(FXJSE_HVALUE hValue, | |
| 84 FX_BOOL bSetting, | |
| 85 XFA_ATTRIBUTE eAttribute); | |
| 86 | |
| 87 void Script_EventPseudoModel_Emit(CFXJSE_Arguments* pArguments); | |
| 88 void Script_EventPseudoModel_Reset(CFXJSE_Arguments* pArguments); | |
| 89 | |
| 90 protected: | |
| 91 void Script_EventPseudoModel_Property(FXJSE_HVALUE hValue, | |
| 92 FX_DWORD dwFlag, | |
| 93 FX_BOOL bSetting); | |
| 94 }; | |
| 95 | |
| 96 #endif // XFA_SRC_FXFA_PARSER_XFA_SCRIPT_EVENTPSEUDOMODEL_H_ | |
| OLD | NEW |