Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: xfa/fxfa/parser/xfa_script_hostpseudomodel.h

Issue 2050913002: Remove foxit app related setter and getter APIs in XFA code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase and fix indexes Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "fxjs/include/cfxjse_arguments.h" 10 #include "fxjs/include/cfxjse_arguments.h"
11 #include "xfa/fxfa/parser/xfa_document.h" 11 #include "xfa/fxfa/parser/xfa_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,
20 FX_BOOL bSetting, 20 FX_BOOL bSetting,
21 XFA_ATTRIBUTE eAttribute); 21 XFA_ATTRIBUTE eAttribute);
22 void FoxitAppType(CFXJSE_Value* pValue,
23 FX_BOOL bSetting,
24 XFA_ATTRIBUTE eAttribute);
25 void CalculationsEnabled(CFXJSE_Value* pValue, 22 void CalculationsEnabled(CFXJSE_Value* pValue,
26 FX_BOOL bSetting, 23 FX_BOOL bSetting,
27 XFA_ATTRIBUTE eAttribute); 24 XFA_ATTRIBUTE eAttribute);
28 void CurrentPage(CFXJSE_Value* pValue, 25 void CurrentPage(CFXJSE_Value* pValue,
29 FX_BOOL bSetting, 26 FX_BOOL bSetting,
30 XFA_ATTRIBUTE eAttribute); 27 XFA_ATTRIBUTE eAttribute);
31 void Language(CFXJSE_Value* pValue, 28 void Language(CFXJSE_Value* pValue,
32 FX_BOOL bSetting, 29 FX_BOOL bSetting,
33 XFA_ATTRIBUTE eAttribute); 30 XFA_ATTRIBUTE eAttribute);
34 void NumPages(CFXJSE_Value* pValue, 31 void NumPages(CFXJSE_Value* pValue,
35 FX_BOOL bSetting, 32 FX_BOOL bSetting,
36 XFA_ATTRIBUTE eAttribute); 33 XFA_ATTRIBUTE eAttribute);
37 void Platform(CFXJSE_Value* pValue, 34 void Platform(CFXJSE_Value* pValue,
38 FX_BOOL bSetting, 35 FX_BOOL bSetting,
39 XFA_ATTRIBUTE eAttribute); 36 XFA_ATTRIBUTE eAttribute);
40 void Title(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); 37 void Title(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute);
41 void ValidationsEnabled(CFXJSE_Value* pValue, 38 void ValidationsEnabled(CFXJSE_Value* pValue,
42 FX_BOOL bSetting, 39 FX_BOOL bSetting,
43 XFA_ATTRIBUTE eAttribute); 40 XFA_ATTRIBUTE eAttribute);
44 void Variation(CFXJSE_Value* pValue, 41 void Variation(CFXJSE_Value* pValue,
45 FX_BOOL bSetting, 42 FX_BOOL bSetting,
46 XFA_ATTRIBUTE eAttribute); 43 XFA_ATTRIBUTE eAttribute);
47 void Version(CFXJSE_Value* pValue, 44 void Version(CFXJSE_Value* pValue,
48 FX_BOOL bSetting, 45 FX_BOOL bSetting,
49 XFA_ATTRIBUTE eAttribute); 46 XFA_ATTRIBUTE eAttribute);
50 void FoxitVersion(CFXJSE_Value* pValue,
51 FX_BOOL bSetting,
52 XFA_ATTRIBUTE eAttribute);
53 void Name(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute); 47 void Name(CFXJSE_Value* pValue, FX_BOOL bSetting, XFA_ATTRIBUTE eAttribute);
54 void FoxitName(CFXJSE_Value* pValue,
55 FX_BOOL bSetting,
56 XFA_ATTRIBUTE eAttribute);
57
58 void GotoURL(CFXJSE_Arguments* pArguments); 48 void GotoURL(CFXJSE_Arguments* pArguments);
59 void OpenList(CFXJSE_Arguments* pArguments); 49 void OpenList(CFXJSE_Arguments* pArguments);
60 void Response(CFXJSE_Arguments* pArguments); 50 void Response(CFXJSE_Arguments* pArguments);
61 void DocumentInBatch(CFXJSE_Arguments* pArguments); 51 void DocumentInBatch(CFXJSE_Arguments* pArguments);
62 void ResetData(CFXJSE_Arguments* pArguments); 52 void ResetData(CFXJSE_Arguments* pArguments);
63 void Beep(CFXJSE_Arguments* pArguments); 53 void Beep(CFXJSE_Arguments* pArguments);
64 void SetFocus(CFXJSE_Arguments* pArguments); 54 void SetFocus(CFXJSE_Arguments* pArguments);
65 void GetFocus(CFXJSE_Arguments* pArguments); 55 void GetFocus(CFXJSE_Arguments* pArguments);
66 void MessageBox(CFXJSE_Arguments* pArguments); 56 void MessageBox(CFXJSE_Arguments* pArguments);
67 void DocumentCountInBatch(CFXJSE_Arguments* pArguments); 57 void DocumentCountInBatch(CFXJSE_Arguments* pArguments);
68 void Print(CFXJSE_Arguments* pArguments); 58 void Print(CFXJSE_Arguments* pArguments);
69 void ImportData(CFXJSE_Arguments* pArguments); 59 void ImportData(CFXJSE_Arguments* pArguments);
70 void ExportData(CFXJSE_Arguments* pArguments); 60 void ExportData(CFXJSE_Arguments* pArguments);
71 void PageUp(CFXJSE_Arguments* pArguments); 61 void PageUp(CFXJSE_Arguments* pArguments);
72 void PageDown(CFXJSE_Arguments* pArguments); 62 void PageDown(CFXJSE_Arguments* pArguments);
73 void CurrentDateTime(CFXJSE_Arguments* pArguments); 63 void CurrentDateTime(CFXJSE_Arguments* pArguments);
74 64
75 protected: 65 protected:
76 void LoadString(CFXJSE_Value* pValue, 66 void LoadString(CFXJSE_Value* pValue,
77 CXFA_FFNotify* pNotify, 67 CXFA_FFNotify* pNotify,
78 uint32_t dwFlag); 68 uint32_t dwFlag);
79 FX_BOOL ValidateArgsForMsg(CFXJSE_Arguments* pArguments, 69 FX_BOOL ValidateArgsForMsg(CFXJSE_Arguments* pArguments,
80 int32_t iArgIndex, 70 int32_t iArgIndex,
81 CFX_WideString& wsValue); 71 CFX_WideString& wsValue);
82 }; 72 };
83 73
84 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_ 74 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_HOSTPSEUDOMODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698