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_FIELD_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_ |
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_ |
9 | 9 |
10 #include <string> // For std::wstring. | 10 #include <string> // For std::wstring. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 CFX_WideString widestring; | 82 CFX_WideString widestring; |
83 CPDF_Rect rect; | 83 CPDF_Rect rect; |
84 CPWL_Color color; | 84 CPWL_Color color; |
85 CFX_DWordArray wordarray; | 85 CFX_DWordArray wordarray; |
86 CJS_WideStringArray widestringarray; | 86 CJS_WideStringArray widestringarray; |
87 }; | 87 }; |
88 | 88 |
89 class Field : public CJS_EmbedObj { | 89 class Field : public CJS_EmbedObj { |
90 public: | 90 public: |
91 Field(CJS_Object* pJSObject); | 91 Field(CJS_Object* pJSObject); |
92 virtual ~Field(void); | 92 ~Field() override; |
93 | 93 |
94 FX_BOOL alignment(IFXJS_Context* cc, | 94 FX_BOOL alignment(IFXJS_Context* cc, |
95 CJS_PropValue& vp, | 95 CJS_PropValue& vp, |
96 CFX_WideString& sError); | 96 CFX_WideString& sError); |
97 FX_BOOL borderStyle(IFXJS_Context* cc, | 97 FX_BOOL borderStyle(IFXJS_Context* cc, |
98 CJS_PropValue& vp, | 98 CJS_PropValue& vp, |
99 CFX_WideString& sError); | 99 CFX_WideString& sError); |
100 FX_BOOL buttonAlignX(IFXJS_Context* cc, | 100 FX_BOOL buttonAlignX(IFXJS_Context* cc, |
101 CJS_PropValue& vp, | 101 CJS_PropValue& vp, |
102 CFX_WideString& sError); | 102 CFX_WideString& sError); |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 CFX_WideString m_FieldName; | 526 CFX_WideString m_FieldName; |
527 int m_nFormControlIndex; | 527 int m_nFormControlIndex; |
528 FX_BOOL m_bCanSet; | 528 FX_BOOL m_bCanSet; |
529 | 529 |
530 FX_BOOL m_bDelay; | 530 FX_BOOL m_bDelay; |
531 v8::Isolate* m_isolate; | 531 v8::Isolate* m_isolate; |
532 }; | 532 }; |
533 | 533 |
534 class CJS_Field : public CJS_Object { | 534 class CJS_Field : public CJS_Object { |
535 public: | 535 public: |
536 CJS_Field(JSFXObject pObject) : CJS_Object(pObject){}; | 536 CJS_Field(JSFXObject pObject) : CJS_Object(pObject) {} |
537 virtual ~CJS_Field(void){}; | 537 ~CJS_Field(void) override {} |
538 | 538 |
539 virtual FX_BOOL InitInstance(IFXJS_Context* cc); | 539 FX_BOOL InitInstance(IFXJS_Context* cc) override; |
540 | 540 |
541 DECLARE_JS_CLASS(CJS_Field); | 541 DECLARE_JS_CLASS(CJS_Field); |
542 | 542 |
543 JS_STATIC_PROP(alignment, Field); | 543 JS_STATIC_PROP(alignment, Field); |
544 JS_STATIC_PROP(borderStyle, Field); | 544 JS_STATIC_PROP(borderStyle, Field); |
545 JS_STATIC_PROP(buttonAlignX, Field); | 545 JS_STATIC_PROP(buttonAlignX, Field); |
546 JS_STATIC_PROP(buttonAlignY, Field); | 546 JS_STATIC_PROP(buttonAlignY, Field); |
547 JS_STATIC_PROP(buttonFitBounds, Field); | 547 JS_STATIC_PROP(buttonFitBounds, Field); |
548 JS_STATIC_PROP(buttonPosition, Field); | 548 JS_STATIC_PROP(buttonPosition, Field); |
549 JS_STATIC_PROP(buttonScaleHow, Field); | 549 JS_STATIC_PROP(buttonScaleHow, Field); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 JS_STATIC_METHOD(setLock, Field); | 615 JS_STATIC_METHOD(setLock, Field); |
616 JS_STATIC_METHOD(signatureGetModifications, Field); | 616 JS_STATIC_METHOD(signatureGetModifications, Field); |
617 JS_STATIC_METHOD(signatureGetSeedValue, Field); | 617 JS_STATIC_METHOD(signatureGetSeedValue, Field); |
618 JS_STATIC_METHOD(signatureInfo, Field); | 618 JS_STATIC_METHOD(signatureInfo, Field); |
619 JS_STATIC_METHOD(signatureSetSeedValue, Field); | 619 JS_STATIC_METHOD(signatureSetSeedValue, Field); |
620 JS_STATIC_METHOD(signatureSign, Field); | 620 JS_STATIC_METHOD(signatureSign, Field); |
621 JS_STATIC_METHOD(signatureValidate, Field); | 621 JS_STATIC_METHOD(signatureValidate, Field); |
622 }; | 622 }; |
623 | 623 |
624 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_ | 624 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_ |
OLD | NEW |