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 #include "../../include/javascript/JavaScript.h" | 7 #include "../../include/javascript/JavaScript.h" |
8 #include "../../include/javascript/IJavaScript.h" | 8 #include "../../include/javascript/IJavaScript.h" |
9 #include "../../include/javascript/JS_Define.h" | 9 #include "../../include/javascript/JS_Define.h" |
10 #include "../../include/javascript/JS_Object.h" | 10 #include "../../include/javascript/JS_Object.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 JS_STATIC_PROP_ENTRY(textFont) | 74 JS_STATIC_PROP_ENTRY(textFont) |
75 JS_STATIC_PROP_ENTRY(textSize) | 75 JS_STATIC_PROP_ENTRY(textSize) |
76 JS_STATIC_PROP_ENTRY(type) | 76 JS_STATIC_PROP_ENTRY(type) |
77 JS_STATIC_PROP_ENTRY(userName) | 77 JS_STATIC_PROP_ENTRY(userName) |
78 JS_STATIC_PROP_ENTRY(value) | 78 JS_STATIC_PROP_ENTRY(value) |
79 JS_STATIC_PROP_ENTRY(valueAsString) | 79 JS_STATIC_PROP_ENTRY(valueAsString) |
80 JS_STATIC_PROP_ENTRY(source) | 80 JS_STATIC_PROP_ENTRY(source) |
81 END_JS_STATIC_PROP() | 81 END_JS_STATIC_PROP() |
82 | 82 |
83 BEGIN_JS_STATIC_METHOD(CJS_Field) | 83 BEGIN_JS_STATIC_METHOD(CJS_Field) |
84 » JS_STATIC_METHOD_ENTRY(browseForFileToSubmit, 0) | 84 » JS_STATIC_METHOD_ENTRY(browseForFileToSubmit) |
85 » JS_STATIC_METHOD_ENTRY(buttonGetCaption, 1) | 85 » JS_STATIC_METHOD_ENTRY(buttonGetCaption) |
86 » JS_STATIC_METHOD_ENTRY(buttonGetIcon, 1) | 86 » JS_STATIC_METHOD_ENTRY(buttonGetIcon) |
87 » JS_STATIC_METHOD_ENTRY(buttonImportIcon, 0) | 87 » JS_STATIC_METHOD_ENTRY(buttonImportIcon) |
88 » JS_STATIC_METHOD_ENTRY(buttonSetCaption, 2) | 88 » JS_STATIC_METHOD_ENTRY(buttonSetCaption) |
89 » JS_STATIC_METHOD_ENTRY(buttonSetIcon, 2) | 89 » JS_STATIC_METHOD_ENTRY(buttonSetIcon) |
90 » JS_STATIC_METHOD_ENTRY(checkThisBox, 2) | 90 » JS_STATIC_METHOD_ENTRY(checkThisBox) |
91 » JS_STATIC_METHOD_ENTRY(clearItems, 0) | 91 » JS_STATIC_METHOD_ENTRY(clearItems) |
92 » JS_STATIC_METHOD_ENTRY(defaultIsChecked, 2) | 92 » JS_STATIC_METHOD_ENTRY(defaultIsChecked) |
93 » JS_STATIC_METHOD_ENTRY(deleteItemAt, 1) | 93 » JS_STATIC_METHOD_ENTRY(deleteItemAt) |
94 » JS_STATIC_METHOD_ENTRY(getArray , 0) | 94 » JS_STATIC_METHOD_ENTRY(getArray ) |
95 » JS_STATIC_METHOD_ENTRY(getItemAt, 0) | 95 » JS_STATIC_METHOD_ENTRY(getItemAt) |
96 » JS_STATIC_METHOD_ENTRY(getLock, 0) | 96 » JS_STATIC_METHOD_ENTRY(getLock) |
97 » JS_STATIC_METHOD_ENTRY(insertItemAt, 0) | 97 » JS_STATIC_METHOD_ENTRY(insertItemAt) |
98 » JS_STATIC_METHOD_ENTRY(isBoxChecked, 1) | 98 » JS_STATIC_METHOD_ENTRY(isBoxChecked) |
99 » JS_STATIC_METHOD_ENTRY(isDefaultChecked, 1) | 99 » JS_STATIC_METHOD_ENTRY(isDefaultChecked) |
100 » JS_STATIC_METHOD_ENTRY(setAction, 2) | 100 » JS_STATIC_METHOD_ENTRY(setAction) |
101 » JS_STATIC_METHOD_ENTRY(setFocus, 0) | 101 » JS_STATIC_METHOD_ENTRY(setFocus) |
102 » JS_STATIC_METHOD_ENTRY(setItems, 1) | 102 » JS_STATIC_METHOD_ENTRY(setItems) |
103 » JS_STATIC_METHOD_ENTRY(setLock, 0) | 103 » JS_STATIC_METHOD_ENTRY(setLock) |
104 » JS_STATIC_METHOD_ENTRY(signatureGetModifications, 0) | 104 » JS_STATIC_METHOD_ENTRY(signatureGetModifications) |
105 » JS_STATIC_METHOD_ENTRY(signatureGetSeedValue, 0) | 105 » JS_STATIC_METHOD_ENTRY(signatureGetSeedValue) |
106 » JS_STATIC_METHOD_ENTRY(signatureInfo, 0) | 106 » JS_STATIC_METHOD_ENTRY(signatureInfo) |
107 » JS_STATIC_METHOD_ENTRY(signatureSetSeedValue, 0) | 107 » JS_STATIC_METHOD_ENTRY(signatureSetSeedValue) |
108 » JS_STATIC_METHOD_ENTRY(signatureSign, 0) | 108 » JS_STATIC_METHOD_ENTRY(signatureSign) |
109 » JS_STATIC_METHOD_ENTRY(signatureValidate, 0) | 109 » JS_STATIC_METHOD_ENTRY(signatureValidate) |
110 END_JS_STATIC_METHOD() | 110 END_JS_STATIC_METHOD() |
111 | 111 |
112 IMPLEMENT_JS_CLASS(CJS_Field, Field) | 112 IMPLEMENT_JS_CLASS(CJS_Field, Field) |
113 | 113 |
114 FX_BOOL CJS_Field::InitInstance(IFXJS_Context* cc) | 114 FX_BOOL CJS_Field::InitInstance(IFXJS_Context* cc) |
115 { | 115 { |
116 CJS_Context* pContext = (CJS_Context*)cc; | 116 CJS_Context* pContext = (CJS_Context*)cc; |
117 ASSERT(pContext != NULL); | 117 ASSERT(pContext != NULL); |
118 | 118 |
119 Field* pField = (Field*)GetEmbedObject(); | 119 Field* pField = (Field*)GetEmbedObject(); |
(...skipping 3988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4108 | 4108 |
4109 #define JS_FIELD_MINWIDTH 1 | 4109 #define JS_FIELD_MINWIDTH 1 |
4110 #define JS_FIELD_MINHEIGHT 1 | 4110 #define JS_FIELD_MINHEIGHT 1 |
4111 | 4111 |
4112 void Field::AddField(CPDFSDK_Document* pDocument, int nPageIndex, int nFieldType
, | 4112 void Field::AddField(CPDFSDK_Document* pDocument, int nPageIndex, int nFieldType
, |
4113 const CFX_WideString& sN
ame, const CPDF_Rect& rcCoords) | 4113 const CFX_WideString& sN
ame, const CPDF_Rect& rcCoords) |
4114 { | 4114 { |
4115 //Not supported. | 4115 //Not supported. |
4116 } | 4116 } |
4117 | 4117 |
OLD | NEW |