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

Side by Side Diff: fpdfsdk/src/javascript/Document.h

Issue 1395713002: Merge to XFA: Rename IFXJS_Runtime and IFXJS_Context to IJS_. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 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
« no previous file with comments | « fpdfsdk/src/fsdk_mgr.cpp ('k') | fpdfsdk/src/javascript/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_ 7 #ifndef FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_
8 #define FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_ 8 #define FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_
9 9
10 #include "JS_Define.h" 10 #include "JS_Define.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 struct CJS_DelayData; 66 struct CJS_DelayData;
67 struct CJS_DelayAnnot; 67 struct CJS_DelayAnnot;
68 struct CJS_AnnotObj; 68 struct CJS_AnnotObj;
69 69
70 class Document : public CJS_EmbedObj { 70 class Document : public CJS_EmbedObj {
71 public: 71 public:
72 Document(CJS_Object* pJSObject); 72 Document(CJS_Object* pJSObject);
73 ~Document() override; 73 ~Document() override;
74 74
75 public: 75 public:
76 FX_BOOL ADBE(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 76 FX_BOOL ADBE(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
77 FX_BOOL author(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 77 FX_BOOL author(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
78 FX_BOOL baseURL(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 78 FX_BOOL baseURL(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
79 FX_BOOL bookmarkRoot(IFXJS_Context* cc, 79 FX_BOOL bookmarkRoot(IJS_Context* cc,
80 CJS_PropValue& vp, 80 CJS_PropValue& vp,
81 CFX_WideString& sError); 81 CFX_WideString& sError);
82 FX_BOOL calculate(IFXJS_Context* cc, 82 FX_BOOL calculate(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
83 CJS_PropValue& vp, 83 FX_BOOL Collab(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
84 CFX_WideString& sError); 84 FX_BOOL creationDate(IJS_Context* cc,
85 FX_BOOL Collab(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
86 FX_BOOL creationDate(IFXJS_Context* cc,
87 CJS_PropValue& vp, 85 CJS_PropValue& vp,
88 CFX_WideString& sError); 86 CFX_WideString& sError);
89 FX_BOOL creator(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 87 FX_BOOL creator(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
90 FX_BOOL delay(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 88 FX_BOOL delay(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
91 FX_BOOL dirty(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 89 FX_BOOL dirty(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
92 FX_BOOL documentFileName(IFXJS_Context* cc, 90 FX_BOOL documentFileName(IJS_Context* cc,
93 CJS_PropValue& vp, 91 CJS_PropValue& vp,
94 CFX_WideString& sError); 92 CFX_WideString& sError);
95 FX_BOOL external(IFXJS_Context* cc, 93 FX_BOOL external(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
96 CJS_PropValue& vp, 94 FX_BOOL filesize(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
97 CFX_WideString& sError); 95 FX_BOOL icons(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
98 FX_BOOL filesize(IFXJS_Context* cc, 96 FX_BOOL info(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
99 CJS_PropValue& vp, 97 FX_BOOL keywords(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
100 CFX_WideString& sError); 98 FX_BOOL layout(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
101 FX_BOOL icons(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 99 FX_BOOL media(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
102 FX_BOOL info(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 100 FX_BOOL modDate(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
103 FX_BOOL keywords(IFXJS_Context* cc, 101 FX_BOOL mouseX(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
104 CJS_PropValue& vp, 102 FX_BOOL mouseY(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
105 CFX_WideString& sError); 103 FX_BOOL numFields(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
106 FX_BOOL layout(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 104 FX_BOOL numPages(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
107 FX_BOOL media(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 105 FX_BOOL pageNum(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
108 FX_BOOL modDate(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 106 FX_BOOL pageWindowRect(IJS_Context* cc,
109 FX_BOOL mouseX(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
110 FX_BOOL mouseY(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
111 FX_BOOL numFields(IFXJS_Context* cc,
112 CJS_PropValue& vp,
113 CFX_WideString& sError);
114 FX_BOOL numPages(IFXJS_Context* cc,
115 CJS_PropValue& vp,
116 CFX_WideString& sError);
117 FX_BOOL pageNum(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
118 FX_BOOL pageWindowRect(IFXJS_Context* cc,
119 CJS_PropValue& vp, 107 CJS_PropValue& vp,
120 CFX_WideString& sError); 108 CFX_WideString& sError);
121 FX_BOOL path(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 109 FX_BOOL path(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
122 FX_BOOL producer(IFXJS_Context* cc, 110 FX_BOOL producer(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
123 CJS_PropValue& vp, 111 FX_BOOL subject(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
124 CFX_WideString& sError); 112 FX_BOOL title(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
125 FX_BOOL subject(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 113 FX_BOOL zoom(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
126 FX_BOOL title(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 114 FX_BOOL zoomType(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
127 FX_BOOL zoom(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
128 FX_BOOL zoomType(IFXJS_Context* cc,
129 CJS_PropValue& vp,
130 CFX_WideString& sError);
131 115
132 FX_BOOL addAnnot(IFXJS_Context* cc, 116 FX_BOOL addAnnot(IJS_Context* cc,
133 const CJS_Parameters& params, 117 const CJS_Parameters& params,
134 CJS_Value& vRet, 118 CJS_Value& vRet,
135 CFX_WideString& sError); 119 CFX_WideString& sError);
136 FX_BOOL addField(IFXJS_Context* cc, 120 FX_BOOL addField(IJS_Context* cc,
137 const CJS_Parameters& params, 121 const CJS_Parameters& params,
138 CJS_Value& vRet, 122 CJS_Value& vRet,
139 CFX_WideString& sError); 123 CFX_WideString& sError);
140 FX_BOOL addLink(IFXJS_Context* cc, 124 FX_BOOL addLink(IJS_Context* cc,
141 const CJS_Parameters& params, 125 const CJS_Parameters& params,
142 CJS_Value& vRet, 126 CJS_Value& vRet,
143 CFX_WideString& sError); 127 CFX_WideString& sError);
144 FX_BOOL addIcon(IFXJS_Context* cc, 128 FX_BOOL addIcon(IJS_Context* cc,
145 const CJS_Parameters& params, 129 const CJS_Parameters& params,
146 CJS_Value& vRet, 130 CJS_Value& vRet,
147 CFX_WideString& sError); 131 CFX_WideString& sError);
148 FX_BOOL calculateNow(IFXJS_Context* cc, 132 FX_BOOL calculateNow(IJS_Context* cc,
149 const CJS_Parameters& params, 133 const CJS_Parameters& params,
150 CJS_Value& vRet, 134 CJS_Value& vRet,
151 CFX_WideString& sError); 135 CFX_WideString& sError);
152 FX_BOOL closeDoc(IFXJS_Context* cc, 136 FX_BOOL closeDoc(IJS_Context* cc,
153 const CJS_Parameters& params, 137 const CJS_Parameters& params,
154 CJS_Value& vRet, 138 CJS_Value& vRet,
155 CFX_WideString& sError); 139 CFX_WideString& sError);
156 FX_BOOL createDataObject(IFXJS_Context* cc, 140 FX_BOOL createDataObject(IJS_Context* cc,
157 const CJS_Parameters& params, 141 const CJS_Parameters& params,
158 CJS_Value& vRet, 142 CJS_Value& vRet,
159 CFX_WideString& sError); 143 CFX_WideString& sError);
160 FX_BOOL deletePages(IFXJS_Context* cc, 144 FX_BOOL deletePages(IJS_Context* cc,
161 const CJS_Parameters& params, 145 const CJS_Parameters& params,
162 CJS_Value& vRet, 146 CJS_Value& vRet,
163 CFX_WideString& sError); 147 CFX_WideString& sError);
164 FX_BOOL exportAsText(IFXJS_Context* cc, 148 FX_BOOL exportAsText(IJS_Context* cc,
165 const CJS_Parameters& params, 149 const CJS_Parameters& params,
166 CJS_Value& vRet, 150 CJS_Value& vRet,
167 CFX_WideString& sError); 151 CFX_WideString& sError);
168 FX_BOOL exportAsFDF(IFXJS_Context* cc, 152 FX_BOOL exportAsFDF(IJS_Context* cc,
169 const CJS_Parameters& params, 153 const CJS_Parameters& params,
170 CJS_Value& vRet, 154 CJS_Value& vRet,
171 CFX_WideString& sError); 155 CFX_WideString& sError);
172 FX_BOOL exportAsXFDF(IFXJS_Context* cc, 156 FX_BOOL exportAsXFDF(IJS_Context* cc,
173 const CJS_Parameters& params, 157 const CJS_Parameters& params,
174 CJS_Value& vRet, 158 CJS_Value& vRet,
175 CFX_WideString& sError); 159 CFX_WideString& sError);
176 FX_BOOL extractPages(IFXJS_Context* cc, 160 FX_BOOL extractPages(IJS_Context* cc,
177 const CJS_Parameters& params, 161 const CJS_Parameters& params,
178 CJS_Value& vRet, 162 CJS_Value& vRet,
179 CFX_WideString& sError); 163 CFX_WideString& sError);
180 FX_BOOL getAnnot(IFXJS_Context* cc, 164 FX_BOOL getAnnot(IJS_Context* cc,
181 const CJS_Parameters& params, 165 const CJS_Parameters& params,
182 CJS_Value& vRet, 166 CJS_Value& vRet,
183 CFX_WideString& sError); 167 CFX_WideString& sError);
184 FX_BOOL getAnnots(IFXJS_Context* cc, 168 FX_BOOL getAnnots(IJS_Context* cc,
185 const CJS_Parameters& params, 169 const CJS_Parameters& params,
186 CJS_Value& vRet, 170 CJS_Value& vRet,
187 CFX_WideString& sError); 171 CFX_WideString& sError);
188 FX_BOOL getAnnot3D(IFXJS_Context* cc, 172 FX_BOOL getAnnot3D(IJS_Context* cc,
189 const CJS_Parameters& params, 173 const CJS_Parameters& params,
190 CJS_Value& vRet, 174 CJS_Value& vRet,
191 CFX_WideString& sError); 175 CFX_WideString& sError);
192 FX_BOOL getAnnots3D(IFXJS_Context* cc, 176 FX_BOOL getAnnots3D(IJS_Context* cc,
193 const CJS_Parameters& params, 177 const CJS_Parameters& params,
194 CJS_Value& vRet, 178 CJS_Value& vRet,
195 CFX_WideString& sError); 179 CFX_WideString& sError);
196 FX_BOOL getField(IFXJS_Context* cc, 180 FX_BOOL getField(IJS_Context* cc,
197 const CJS_Parameters& params, 181 const CJS_Parameters& params,
198 CJS_Value& vRet, 182 CJS_Value& vRet,
199 CFX_WideString& sError); 183 CFX_WideString& sError);
200 FX_BOOL getIcon(IFXJS_Context* cc, 184 FX_BOOL getIcon(IJS_Context* cc,
201 const CJS_Parameters& params, 185 const CJS_Parameters& params,
202 CJS_Value& vRet, 186 CJS_Value& vRet,
203 CFX_WideString& sError); 187 CFX_WideString& sError);
204 FX_BOOL getLinks(IFXJS_Context* cc, 188 FX_BOOL getLinks(IJS_Context* cc,
205 const CJS_Parameters& params, 189 const CJS_Parameters& params,
206 CJS_Value& vRet, 190 CJS_Value& vRet,
207 CFX_WideString& sError); 191 CFX_WideString& sError);
208 FX_BOOL getNthFieldName(IFXJS_Context* cc, 192 FX_BOOL getNthFieldName(IJS_Context* cc,
209 const CJS_Parameters& params, 193 const CJS_Parameters& params,
210 CJS_Value& vRet, 194 CJS_Value& vRet,
211 CFX_WideString& sError); 195 CFX_WideString& sError);
212 FX_BOOL getOCGs(IFXJS_Context* cc, 196 FX_BOOL getOCGs(IJS_Context* cc,
213 const CJS_Parameters& params, 197 const CJS_Parameters& params,
214 CJS_Value& vRet, 198 CJS_Value& vRet,
215 CFX_WideString& sError); 199 CFX_WideString& sError);
216 FX_BOOL getPageBox(IFXJS_Context* cc, 200 FX_BOOL getPageBox(IJS_Context* cc,
217 const CJS_Parameters& params, 201 const CJS_Parameters& params,
218 CJS_Value& vRet, 202 CJS_Value& vRet,
219 CFX_WideString& sError); 203 CFX_WideString& sError);
220 FX_BOOL getPageNthWord(IFXJS_Context* cc, 204 FX_BOOL getPageNthWord(IJS_Context* cc,
221 const CJS_Parameters& params, 205 const CJS_Parameters& params,
222 CJS_Value& vRet, 206 CJS_Value& vRet,
223 CFX_WideString& sError); 207 CFX_WideString& sError);
224 FX_BOOL getPageNthWordQuads(IFXJS_Context* cc, 208 FX_BOOL getPageNthWordQuads(IJS_Context* cc,
225 const CJS_Parameters& params, 209 const CJS_Parameters& params,
226 CJS_Value& vRet, 210 CJS_Value& vRet,
227 CFX_WideString& sError); 211 CFX_WideString& sError);
228 FX_BOOL getPageNumWords(IFXJS_Context* cc, 212 FX_BOOL getPageNumWords(IJS_Context* cc,
229 const CJS_Parameters& params, 213 const CJS_Parameters& params,
230 CJS_Value& vRet, 214 CJS_Value& vRet,
231 CFX_WideString& sError); 215 CFX_WideString& sError);
232 FX_BOOL getPrintParams(IFXJS_Context* cc, 216 FX_BOOL getPrintParams(IJS_Context* cc,
233 const CJS_Parameters& params, 217 const CJS_Parameters& params,
234 CJS_Value& vRet, 218 CJS_Value& vRet,
235 CFX_WideString& sError); 219 CFX_WideString& sError);
236 FX_BOOL getURL(IFXJS_Context* cc, 220 FX_BOOL getURL(IJS_Context* cc,
237 const CJS_Parameters& params, 221 const CJS_Parameters& params,
238 CJS_Value& vRet, 222 CJS_Value& vRet,
239 CFX_WideString& sError); 223 CFX_WideString& sError);
240 FX_BOOL importAnFDF(IFXJS_Context* cc, 224 FX_BOOL importAnFDF(IJS_Context* cc,
241 const CJS_Parameters& params, 225 const CJS_Parameters& params,
242 CJS_Value& vRet, 226 CJS_Value& vRet,
243 CFX_WideString& sError); 227 CFX_WideString& sError);
244 FX_BOOL importAnXFDF(IFXJS_Context* cc, 228 FX_BOOL importAnXFDF(IJS_Context* cc,
245 const CJS_Parameters& params, 229 const CJS_Parameters& params,
246 CJS_Value& vRet, 230 CJS_Value& vRet,
247 CFX_WideString& sError); 231 CFX_WideString& sError);
248 FX_BOOL importTextData(IFXJS_Context* cc, 232 FX_BOOL importTextData(IJS_Context* cc,
249 const CJS_Parameters& params, 233 const CJS_Parameters& params,
250 CJS_Value& vRet, 234 CJS_Value& vRet,
251 CFX_WideString& sError); 235 CFX_WideString& sError);
252 FX_BOOL insertPages(IFXJS_Context* cc, 236 FX_BOOL insertPages(IJS_Context* cc,
253 const CJS_Parameters& params, 237 const CJS_Parameters& params,
254 CJS_Value& vRet, 238 CJS_Value& vRet,
255 CFX_WideString& sError); 239 CFX_WideString& sError);
256 FX_BOOL mailForm(IFXJS_Context* cc, 240 FX_BOOL mailForm(IJS_Context* cc,
257 const CJS_Parameters& params, 241 const CJS_Parameters& params,
258 CJS_Value& vRet, 242 CJS_Value& vRet,
259 CFX_WideString& sError); 243 CFX_WideString& sError);
260 FX_BOOL print(IFXJS_Context* cc, 244 FX_BOOL print(IJS_Context* cc,
261 const CJS_Parameters& params, 245 const CJS_Parameters& params,
262 CJS_Value& vRet, 246 CJS_Value& vRet,
263 CFX_WideString& sError); 247 CFX_WideString& sError);
264 FX_BOOL removeField(IFXJS_Context* cc, 248 FX_BOOL removeField(IJS_Context* cc,
265 const CJS_Parameters& params, 249 const CJS_Parameters& params,
266 CJS_Value& vRet, 250 CJS_Value& vRet,
267 CFX_WideString& sError); 251 CFX_WideString& sError);
268 FX_BOOL replacePages(IFXJS_Context* cc, 252 FX_BOOL replacePages(IJS_Context* cc,
269 const CJS_Parameters& params, 253 const CJS_Parameters& params,
270 CJS_Value& vRet, 254 CJS_Value& vRet,
271 CFX_WideString& sError); 255 CFX_WideString& sError);
272 FX_BOOL resetForm(IFXJS_Context* cc, 256 FX_BOOL resetForm(IJS_Context* cc,
273 const CJS_Parameters& params, 257 const CJS_Parameters& params,
274 CJS_Value& vRet, 258 CJS_Value& vRet,
275 CFX_WideString& sError); 259 CFX_WideString& sError);
276 FX_BOOL saveAs(IFXJS_Context* cc, 260 FX_BOOL saveAs(IJS_Context* cc,
277 const CJS_Parameters& params, 261 const CJS_Parameters& params,
278 CJS_Value& vRet, 262 CJS_Value& vRet,
279 CFX_WideString& sError); 263 CFX_WideString& sError);
280 FX_BOOL submitForm(IFXJS_Context* cc, 264 FX_BOOL submitForm(IJS_Context* cc,
281 const CJS_Parameters& params, 265 const CJS_Parameters& params,
282 CJS_Value& vRet, 266 CJS_Value& vRet,
283 CFX_WideString& sError); 267 CFX_WideString& sError);
284 FX_BOOL mailDoc(IFXJS_Context* cc, 268 FX_BOOL mailDoc(IJS_Context* cc,
285 const CJS_Parameters& params, 269 const CJS_Parameters& params,
286 CJS_Value& vRet, 270 CJS_Value& vRet,
287 CFX_WideString& sError); 271 CFX_WideString& sError);
288 FX_BOOL removeIcon(IFXJS_Context* cc, 272 FX_BOOL removeIcon(IJS_Context* cc,
289 const CJS_Parameters& params, 273 const CJS_Parameters& params,
290 CJS_Value& vRet, 274 CJS_Value& vRet,
291 CFX_WideString& sError); 275 CFX_WideString& sError);
292 276
293 public: 277 public:
294 void AttachDoc(CPDFSDK_Document* pDoc); 278 void AttachDoc(CPDFSDK_Document* pDoc);
295 CPDFSDK_Document* GetReaderDoc(); 279 CPDFSDK_Document* GetReaderDoc();
296 static FX_BOOL ExtractFileName(CPDFSDK_Document* pDoc, 280 static FX_BOOL ExtractFileName(CPDFSDK_Document* pDoc,
297 CFX_ByteString& strFileName); 281 CFX_ByteString& strFileName);
298 static FX_BOOL ExtractFolderName(CPDFSDK_Document* pDoc, 282 static FX_BOOL ExtractFolderName(CPDFSDK_Document* pDoc,
299 CFX_ByteString& strFolderName); 283 CFX_ByteString& strFolderName);
300 void AddDelayData(CJS_DelayData* pData); 284 void AddDelayData(CJS_DelayData* pData);
301 void DoFieldDelay(const CFX_WideString& sFieldName, int nControlIndex); 285 void DoFieldDelay(const CFX_WideString& sFieldName, int nControlIndex);
(...skipping 17 matching lines...) Expand all
319 CFX_ArrayTemplate<CJS_DelayData*> m_DelayData; 303 CFX_ArrayTemplate<CJS_DelayData*> m_DelayData;
320 CFX_ArrayTemplate<CJS_AnnotObj*> m_DelayAnnotData; 304 CFX_ArrayTemplate<CJS_AnnotObj*> m_DelayAnnotData;
321 }; 305 };
322 306
323 class CJS_Document : public CJS_Object { 307 class CJS_Document : public CJS_Object {
324 public: 308 public:
325 explicit CJS_Document(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} 309 explicit CJS_Document(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
326 ~CJS_Document() override {} 310 ~CJS_Document() override {}
327 311
328 // CJS_Object 312 // CJS_Object
329 FX_BOOL InitInstance(IFXJS_Context* cc) override; 313 FX_BOOL InitInstance(IJS_Context* cc) override;
330 314
331 DECLARE_JS_CLASS(); 315 DECLARE_JS_CLASS();
332 316
333 JS_STATIC_PROP(ADBE, Document); 317 JS_STATIC_PROP(ADBE, Document);
334 JS_STATIC_PROP(author, Document); 318 JS_STATIC_PROP(author, Document);
335 JS_STATIC_PROP(baseURL, Document); 319 JS_STATIC_PROP(baseURL, Document);
336 JS_STATIC_PROP(bookmarkRoot, Document); 320 JS_STATIC_PROP(bookmarkRoot, Document);
337 JS_STATIC_PROP(calculate, Document); 321 JS_STATIC_PROP(calculate, Document);
338 JS_STATIC_PROP(Collab, Document); 322 JS_STATIC_PROP(Collab, Document);
339 JS_STATIC_PROP(creationDate, Document); 323 JS_STATIC_PROP(creationDate, Document);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 JS_STATIC_METHOD(removeField, Document); 382 JS_STATIC_METHOD(removeField, Document);
399 JS_STATIC_METHOD(replacePages, Document); 383 JS_STATIC_METHOD(replacePages, Document);
400 JS_STATIC_METHOD(removeIcon, Document); 384 JS_STATIC_METHOD(removeIcon, Document);
401 JS_STATIC_METHOD(resetForm, Document); 385 JS_STATIC_METHOD(resetForm, Document);
402 JS_STATIC_METHOD(saveAs, Document); 386 JS_STATIC_METHOD(saveAs, Document);
403 JS_STATIC_METHOD(submitForm, Document); 387 JS_STATIC_METHOD(submitForm, Document);
404 JS_STATIC_METHOD(mailDoc, Document); 388 JS_STATIC_METHOD(mailDoc, Document);
405 }; 389 };
406 390
407 #endif // FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_ 391 #endif // FPDFSDK_SRC_JAVASCRIPT_DOCUMENT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/src/fsdk_mgr.cpp ('k') | fpdfsdk/src/javascript/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698