| 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 FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ |
| 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ |
| 9 | 9 |
| 10 #include "JS_Define.h" | 10 #include "JS_Define.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 FX_BOOL bPrintAsImage; | 23 FX_BOOL bPrintAsImage; |
| 24 FX_BOOL bReverse; | 24 FX_BOOL bReverse; |
| 25 FX_BOOL bAnnotations; | 25 FX_BOOL bAnnotations; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 class CJS_PrintParamsObj : public CJS_Object { | 28 class CJS_PrintParamsObj : public CJS_Object { |
| 29 public: | 29 public: |
| 30 CJS_PrintParamsObj(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} | 30 CJS_PrintParamsObj(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
| 31 ~CJS_PrintParamsObj() override {} | 31 ~CJS_PrintParamsObj() override {} |
| 32 | 32 |
| 33 DECLARE_JS_CLASS(CJS_PrintParamsObj); | 33 DECLARE_JS_CLASS(); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 class Icon; | 36 class Icon; |
| 37 class Field; | 37 class Field; |
| 38 | 38 |
| 39 struct IconElement { | 39 struct IconElement { |
| 40 IconElement() : IconName(L""), NextIcon(NULL), IconStream(NULL) {} | 40 IconElement() : IconName(L""), NextIcon(NULL), IconStream(NULL) {} |
| 41 virtual ~IconElement() {} | 41 virtual ~IconElement() {} |
| 42 CFX_WideString IconName; | 42 CFX_WideString IconName; |
| 43 IconElement* NextIcon; | 43 IconElement* NextIcon; |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 class CJS_Document : public CJS_Object { | 322 class CJS_Document : public CJS_Object { |
| 323 public: | 323 public: |
| 324 explicit CJS_Document(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} | 324 explicit CJS_Document(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
| 325 ~CJS_Document() override {} | 325 ~CJS_Document() override {} |
| 326 | 326 |
| 327 // CJS_Object | 327 // CJS_Object |
| 328 FX_BOOL InitInstance(IFXJS_Context* cc) override; | 328 FX_BOOL InitInstance(IFXJS_Context* cc) override; |
| 329 | 329 |
| 330 DECLARE_JS_CLASS(CJS_Document); | 330 DECLARE_JS_CLASS(); |
| 331 | 331 |
| 332 JS_STATIC_PROP(ADBE, Document); | 332 JS_STATIC_PROP(ADBE, Document); |
| 333 JS_STATIC_PROP(author, Document); | 333 JS_STATIC_PROP(author, Document); |
| 334 JS_STATIC_PROP(baseURL, Document); | 334 JS_STATIC_PROP(baseURL, Document); |
| 335 JS_STATIC_PROP(bookmarkRoot, Document); | 335 JS_STATIC_PROP(bookmarkRoot, Document); |
| 336 JS_STATIC_PROP(calculate, Document); | 336 JS_STATIC_PROP(calculate, Document); |
| 337 JS_STATIC_PROP(Collab, Document); | 337 JS_STATIC_PROP(Collab, Document); |
| 338 JS_STATIC_PROP(creationDate, Document); | 338 JS_STATIC_PROP(creationDate, Document); |
| 339 JS_STATIC_PROP(creator, Document); | 339 JS_STATIC_PROP(creator, Document); |
| 340 JS_STATIC_PROP(delay, Document); | 340 JS_STATIC_PROP(delay, Document); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 JS_STATIC_METHOD(removeField, Document); | 397 JS_STATIC_METHOD(removeField, Document); |
| 398 JS_STATIC_METHOD(replacePages, Document); | 398 JS_STATIC_METHOD(replacePages, Document); |
| 399 JS_STATIC_METHOD(removeIcon, Document); | 399 JS_STATIC_METHOD(removeIcon, Document); |
| 400 JS_STATIC_METHOD(resetForm, Document); | 400 JS_STATIC_METHOD(resetForm, Document); |
| 401 JS_STATIC_METHOD(saveAs, Document); | 401 JS_STATIC_METHOD(saveAs, Document); |
| 402 JS_STATIC_METHOD(submitForm, Document); | 402 JS_STATIC_METHOD(submitForm, Document); |
| 403 JS_STATIC_METHOD(mailDoc, Document); | 403 JS_STATIC_METHOD(mailDoc, Document); |
| 404 }; | 404 }; |
| 405 | 405 |
| 406 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ | 406 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_ |
| OLD | NEW |