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