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