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_HOSTPSEUDOMODEL_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_ |
8 #define XFA_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_ | 8 #define XFA_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_ |
9 | 9 |
10 #include "xfa/fxfa/parser/xfa_document.h" | 10 #include "xfa/fxfa/parser/xfa_document.h" |
11 #include "xfa/fxfa/parser/xfa_object.h" | 11 #include "xfa/fxfa/parser/xfa_object.h" |
12 #include "xfa/fxjse/cfxjse_arguments.h" | 12 #include "xfa/fxjse/cfxjse_arguments.h" |
13 | 13 |
14 class CScript_HostPseudoModel : public CXFA_OrdinaryObject { | 14 class CScript_HostPseudoModel : public CXFA_OrdinaryObject { |
15 public: | 15 public: |
16 CScript_HostPseudoModel(CXFA_Document* pDocument); | 16 CScript_HostPseudoModel(CXFA_Document* pDocument); |
17 virtual ~CScript_HostPseudoModel(); | 17 virtual ~CScript_HostPseudoModel(); |
18 | 18 |
19 void Script_HostPseudoModel_AppType(FXJSE_HVALUE hValue, | 19 void Script_HostPseudoModel_AppType(CFXJSE_Value* pValue, |
20 FX_BOOL bSetting, | 20 FX_BOOL bSetting, |
21 XFA_ATTRIBUTE eAttribute); | 21 XFA_ATTRIBUTE eAttribute); |
22 void Script_HostPseudoModel_FoxitAppType(FXJSE_HVALUE hValue, | 22 void Script_HostPseudoModel_FoxitAppType(CFXJSE_Value* pValue, |
23 FX_BOOL bSetting, | 23 FX_BOOL bSetting, |
24 XFA_ATTRIBUTE eAttribute); | 24 XFA_ATTRIBUTE eAttribute); |
25 void Script_HostPseudoModel_CalculationsEnabled(FXJSE_HVALUE hValue, | 25 void Script_HostPseudoModel_CalculationsEnabled(CFXJSE_Value* pValue, |
26 FX_BOOL bSetting, | 26 FX_BOOL bSetting, |
27 XFA_ATTRIBUTE eAttribute); | 27 XFA_ATTRIBUTE eAttribute); |
28 void Script_HostPseudoModel_CurrentPage(FXJSE_HVALUE hValue, | 28 void Script_HostPseudoModel_CurrentPage(CFXJSE_Value* pValue, |
29 FX_BOOL bSetting, | 29 FX_BOOL bSetting, |
30 XFA_ATTRIBUTE eAttribute); | 30 XFA_ATTRIBUTE eAttribute); |
31 void Script_HostPseudoModel_Language(FXJSE_HVALUE hValue, | 31 void Script_HostPseudoModel_Language(CFXJSE_Value* pValue, |
32 FX_BOOL bSetting, | 32 FX_BOOL bSetting, |
33 XFA_ATTRIBUTE eAttribute); | 33 XFA_ATTRIBUTE eAttribute); |
34 void Script_HostPseudoModel_NumPages(FXJSE_HVALUE hValue, | 34 void Script_HostPseudoModel_NumPages(CFXJSE_Value* pValue, |
35 FX_BOOL bSetting, | 35 FX_BOOL bSetting, |
36 XFA_ATTRIBUTE eAttribute); | 36 XFA_ATTRIBUTE eAttribute); |
37 void Script_HostPseudoModel_Platform(FXJSE_HVALUE hValue, | 37 void Script_HostPseudoModel_Platform(CFXJSE_Value* pValue, |
38 FX_BOOL bSetting, | 38 FX_BOOL bSetting, |
39 XFA_ATTRIBUTE eAttribute); | 39 XFA_ATTRIBUTE eAttribute); |
40 void Script_HostPseudoModel_Title(FXJSE_HVALUE hValue, | 40 void Script_HostPseudoModel_Title(CFXJSE_Value* pValue, |
41 FX_BOOL bSetting, | 41 FX_BOOL bSetting, |
42 XFA_ATTRIBUTE eAttribute); | 42 XFA_ATTRIBUTE eAttribute); |
43 void Script_HostPseudoModel_ValidationsEnabled(FXJSE_HVALUE hValue, | 43 void Script_HostPseudoModel_ValidationsEnabled(CFXJSE_Value* pValue, |
44 FX_BOOL bSetting, | 44 FX_BOOL bSetting, |
45 XFA_ATTRIBUTE eAttribute); | 45 XFA_ATTRIBUTE eAttribute); |
46 void Script_HostPseudoModel_Variation(FXJSE_HVALUE hValue, | 46 void Script_HostPseudoModel_Variation(CFXJSE_Value* pValue, |
47 FX_BOOL bSetting, | 47 FX_BOOL bSetting, |
48 XFA_ATTRIBUTE eAttribute); | 48 XFA_ATTRIBUTE eAttribute); |
49 void Script_HostPseudoModel_Version(FXJSE_HVALUE hValue, | 49 void Script_HostPseudoModel_Version(CFXJSE_Value* pValue, |
50 FX_BOOL bSetting, | 50 FX_BOOL bSetting, |
51 XFA_ATTRIBUTE eAttribute); | 51 XFA_ATTRIBUTE eAttribute); |
52 void Script_HostPseudoModel_FoxitVersion(FXJSE_HVALUE hValue, | 52 void Script_HostPseudoModel_FoxitVersion(CFXJSE_Value* pValue, |
53 FX_BOOL bSetting, | 53 FX_BOOL bSetting, |
54 XFA_ATTRIBUTE eAttribute); | 54 XFA_ATTRIBUTE eAttribute); |
55 void Script_HostPseudoModel_Name(FXJSE_HVALUE hValue, | 55 void Script_HostPseudoModel_Name(CFXJSE_Value* pValue, |
56 FX_BOOL bSetting, | 56 FX_BOOL bSetting, |
57 XFA_ATTRIBUTE eAttribute); | 57 XFA_ATTRIBUTE eAttribute); |
58 void Script_HostPseudoModel_FoxitName(FXJSE_HVALUE hValue, | 58 void Script_HostPseudoModel_FoxitName(CFXJSE_Value* pValue, |
59 FX_BOOL bSetting, | 59 FX_BOOL bSetting, |
60 XFA_ATTRIBUTE eAttribute); | 60 XFA_ATTRIBUTE eAttribute); |
61 | 61 |
62 void Script_HostPseudoModel_GotoURL(CFXJSE_Arguments* pArguments); | 62 void Script_HostPseudoModel_GotoURL(CFXJSE_Arguments* pArguments); |
63 void Script_HostPseudoModel_OpenList(CFXJSE_Arguments* pArguments); | 63 void Script_HostPseudoModel_OpenList(CFXJSE_Arguments* pArguments); |
64 void Script_HostPseudoModel_Response(CFXJSE_Arguments* pArguments); | 64 void Script_HostPseudoModel_Response(CFXJSE_Arguments* pArguments); |
65 void Script_HostPseudoModel_DocumentInBatch(CFXJSE_Arguments* pArguments); | 65 void Script_HostPseudoModel_DocumentInBatch(CFXJSE_Arguments* pArguments); |
66 void Script_HostPseudoModel_ResetData(CFXJSE_Arguments* pArguments); | 66 void Script_HostPseudoModel_ResetData(CFXJSE_Arguments* pArguments); |
67 void Script_HostPseudoModel_Beep(CFXJSE_Arguments* pArguments); | 67 void Script_HostPseudoModel_Beep(CFXJSE_Arguments* pArguments); |
68 void Script_HostPseudoModel_SetFocus(CFXJSE_Arguments* pArguments); | 68 void Script_HostPseudoModel_SetFocus(CFXJSE_Arguments* pArguments); |
69 void Script_HostPseudoModel_GetFocus(CFXJSE_Arguments* pArguments); | 69 void Script_HostPseudoModel_GetFocus(CFXJSE_Arguments* pArguments); |
70 void Script_HostPseudoModel_MessageBox(CFXJSE_Arguments* pArguments); | 70 void Script_HostPseudoModel_MessageBox(CFXJSE_Arguments* pArguments); |
71 void Script_HostPseudoModel_DocumentCountInBatch( | 71 void Script_HostPseudoModel_DocumentCountInBatch( |
72 CFXJSE_Arguments* pArguments); | 72 CFXJSE_Arguments* pArguments); |
73 void Script_HostPseudoModel_Print(CFXJSE_Arguments* pArguments); | 73 void Script_HostPseudoModel_Print(CFXJSE_Arguments* pArguments); |
74 void Script_HostPseudoModel_ImportData(CFXJSE_Arguments* pArguments); | 74 void Script_HostPseudoModel_ImportData(CFXJSE_Arguments* pArguments); |
75 void Script_HostPseudoModel_ExportData(CFXJSE_Arguments* pArguments); | 75 void Script_HostPseudoModel_ExportData(CFXJSE_Arguments* pArguments); |
76 void Script_HostPseudoModel_PageUp(CFXJSE_Arguments* pArguments); | 76 void Script_HostPseudoModel_PageUp(CFXJSE_Arguments* pArguments); |
77 void Script_HostPseudoModel_PageDown(CFXJSE_Arguments* pArguments); | 77 void Script_HostPseudoModel_PageDown(CFXJSE_Arguments* pArguments); |
78 void Script_HostPseudoModel_CurrentDateTime(CFXJSE_Arguments* pArguments); | 78 void Script_HostPseudoModel_CurrentDateTime(CFXJSE_Arguments* pArguments); |
79 | 79 |
80 protected: | 80 protected: |
81 void Script_HostPseudoModel_LoadString(FXJSE_HVALUE hValue, | 81 void Script_HostPseudoModel_LoadString(CFXJSE_Value* pValue, |
82 CXFA_FFNotify* pNotify, | 82 CXFA_FFNotify* pNotify, |
83 uint32_t dwFlag); | 83 uint32_t dwFlag); |
84 FX_BOOL Script_HostPseudoModel_ValidateArgsForMsg( | 84 FX_BOOL Script_HostPseudoModel_ValidateArgsForMsg( |
85 CFXJSE_Arguments* pArguments, | 85 CFXJSE_Arguments* pArguments, |
86 int32_t iArgIndex, | 86 int32_t iArgIndex, |
87 CFX_WideString& wsValue); | 87 CFX_WideString& wsValue); |
88 }; | 88 }; |
89 | 89 |
90 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_ | 90 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_ |
OLD | NEW |