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