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_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_ | |
8 #define XFA_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_ | |
9 | |
10 #include "fxjs/include/cfxjse_arguments.h" | |
11 #include "xfa/fxfa/parser/xfa_document.h" | |
12 #include "xfa/fxfa/parser/xfa_object.h" | |
13 | |
14 class CScript_HostPseudoModel : public CXFA_Object { | |
15 public: | |
16 explicit CScript_HostPseudoModel(CXFA_Document* pDocument); | |
17 ~CScript_HostPseudoModel() override; | |
18 | |
19 void AppType(CFXJSE_Value* pValue, | |
20 FX_BOOL bSetting, | |
21 XFA_ATTRIBUTE eAttribute); | |
22 void CalculationsEnabled(CFXJSE_Value* pValue, | |
23 FX_BOOL bSetting, | |
24 XFA_ATTRIBUTE eAttribute); | |
25 void CurrentPage(CFXJSE_Value* pValue, | |
26 FX_BOOL bSetting, | |
27 XFA_ATTRIBUTE eAttribute); | |
28 void Language(CFXJSE_Value* pValue, | |
29 FX_BOOL bSetting, | |
30 XFA_ATTRIBUTE eAttribute); | |
31 void NumPages(CFXJSE_Value* pValue, | |
32 FX_BOOL bSetting, | |
33 XFA_ATTRIBUTE eAttribute); | |
34 void Platform(CFXJSE_Value* pValue, | |
35 FX_BOOL bSetting, | |
36 XFA_ATTRIBUTE eAttribute); | |
37 void Title(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); | |
38 void ValidationsEnabled(CFXJSE_Value* pValue, | |
39 FX_BOOL bSetting, | |
40 XFA_ATTRIBUTE eAttribute); | |
41 void Variation(CFXJSE_Value* pValue, | |
42 FX_BOOL bSetting, | |
43 XFA_ATTRIBUTE eAttribute); | |
44 void Version(CFXJSE_Value* pValue, | |
45 FX_BOOL bSetting, | |
46 XFA_ATTRIBUTE eAttribute); | |
47 void Name(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); | |
48 void GotoURL(CFXJSE_Arguments* pArguments); | |
49 void OpenList(CFXJSE_Arguments* pArguments); | |
50 void Response(CFXJSE_Arguments* pArguments); | |
51 void DocumentInBatch(CFXJSE_Arguments* pArguments); | |
52 void ResetData(CFXJSE_Arguments* pArguments); | |
53 void Beep(CFXJSE_Arguments* pArguments); | |
54 void SetFocus(CFXJSE_Arguments* pArguments); | |
55 void GetFocus(CFXJSE_Arguments* pArguments); | |
56 void MessageBox(CFXJSE_Arguments* pArguments); | |
57 void DocumentCountInBatch(CFXJSE_Arguments* pArguments); | |
58 void Print(CFXJSE_Arguments* pArguments); | |
59 void ImportData(CFXJSE_Arguments* pArguments); | |
60 void ExportData(CFXJSE_Arguments* pArguments); | |
61 void PageUp(CFXJSE_Arguments* pArguments); | |
62 void PageDown(CFXJSE_Arguments* pArguments); | |
63 void CurrentDateTime(CFXJSE_Arguments* pArguments); | |
64 | |
65 protected: | |
66 void LoadString(CFXJSE_Value* pValue, | |
67 CXFA_FFNotify* pNotify, | |
68 uint32_t dwFlag); | |
69 FX_BOOL ValidateArgsForMsg(CFXJSE_Arguments* pArguments, | |
70 int32_t iArgIndex, | |
71 CFX_WideString& wsValue); | |
72 }; | |
73 | |
74 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_ | |
OLD | NEW |