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_SRC_JAVASCRIPT_FIELD_H_ | 7 #ifndef FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ |
8 #define FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ | 8 #define FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ |
9 | 9 |
10 #include <string> // For std::wstring. | 10 #include <string> // For std::wstring. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 CPWL_Color color; | 85 CPWL_Color color; |
86 CFX_DWordArray wordarray; | 86 CFX_DWordArray wordarray; |
87 CJS_WideStringArray widestringarray; | 87 CJS_WideStringArray widestringarray; |
88 }; | 88 }; |
89 | 89 |
90 class Field : public CJS_EmbedObj { | 90 class Field : public CJS_EmbedObj { |
91 public: | 91 public: |
92 Field(CJS_Object* pJSObject); | 92 Field(CJS_Object* pJSObject); |
93 ~Field() override; | 93 ~Field() override; |
94 | 94 |
95 FX_BOOL alignment(IFXJS_Context* cc, | 95 FX_BOOL alignment(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
96 CJS_PropValue& vp, | 96 FX_BOOL borderStyle(IJS_Context* cc, |
97 CFX_WideString& sError); | |
98 FX_BOOL borderStyle(IFXJS_Context* cc, | |
99 CJS_PropValue& vp, | 97 CJS_PropValue& vp, |
100 CFX_WideString& sError); | 98 CFX_WideString& sError); |
101 FX_BOOL buttonAlignX(IFXJS_Context* cc, | 99 FX_BOOL buttonAlignX(IJS_Context* cc, |
102 CJS_PropValue& vp, | 100 CJS_PropValue& vp, |
103 CFX_WideString& sError); | 101 CFX_WideString& sError); |
104 FX_BOOL buttonAlignY(IFXJS_Context* cc, | 102 FX_BOOL buttonAlignY(IJS_Context* cc, |
105 CJS_PropValue& vp, | 103 CJS_PropValue& vp, |
106 CFX_WideString& sError); | 104 CFX_WideString& sError); |
107 FX_BOOL buttonFitBounds(IFXJS_Context* cc, | 105 FX_BOOL buttonFitBounds(IJS_Context* cc, |
108 CJS_PropValue& vp, | 106 CJS_PropValue& vp, |
109 CFX_WideString& sError); | 107 CFX_WideString& sError); |
110 FX_BOOL buttonPosition(IFXJS_Context* cc, | 108 FX_BOOL buttonPosition(IJS_Context* cc, |
111 CJS_PropValue& vp, | 109 CJS_PropValue& vp, |
112 CFX_WideString& sError); | 110 CFX_WideString& sError); |
113 FX_BOOL buttonScaleHow(IFXJS_Context* cc, | 111 FX_BOOL buttonScaleHow(IJS_Context* cc, |
114 CJS_PropValue& vp, | 112 CJS_PropValue& vp, |
115 CFX_WideString& sError); | 113 CFX_WideString& sError); |
116 FX_BOOL buttonScaleWhen(IFXJS_Context* cc, | 114 FX_BOOL buttonScaleWhen(IJS_Context* cc, |
117 CJS_PropValue& vp, | 115 CJS_PropValue& vp, |
118 CFX_WideString& sError); | 116 CFX_WideString& sError); |
119 FX_BOOL calcOrderIndex(IFXJS_Context* cc, | 117 FX_BOOL calcOrderIndex(IJS_Context* cc, |
120 CJS_PropValue& vp, | 118 CJS_PropValue& vp, |
121 CFX_WideString& sError); | 119 CFX_WideString& sError); |
122 FX_BOOL charLimit(IFXJS_Context* cc, | 120 FX_BOOL charLimit(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
123 CJS_PropValue& vp, | 121 FX_BOOL comb(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
124 CFX_WideString& sError); | 122 FX_BOOL commitOnSelChange(IJS_Context* cc, |
125 FX_BOOL comb(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | |
126 FX_BOOL commitOnSelChange(IFXJS_Context* cc, | |
127 CJS_PropValue& vp, | 123 CJS_PropValue& vp, |
128 CFX_WideString& sError); | 124 CFX_WideString& sError); |
129 FX_BOOL currentValueIndices(IFXJS_Context* cc, | 125 FX_BOOL currentValueIndices(IJS_Context* cc, |
130 CJS_PropValue& vp, | 126 CJS_PropValue& vp, |
131 CFX_WideString& sError); | 127 CFX_WideString& sError); |
132 FX_BOOL defaultStyle(IFXJS_Context* cc, | 128 FX_BOOL defaultStyle(IJS_Context* cc, |
133 CJS_PropValue& vp, | 129 CJS_PropValue& vp, |
134 CFX_WideString& sError); | 130 CFX_WideString& sError); |
135 FX_BOOL defaultValue(IFXJS_Context* cc, | 131 FX_BOOL defaultValue(IJS_Context* cc, |
136 CJS_PropValue& vp, | 132 CJS_PropValue& vp, |
137 CFX_WideString& sError); | 133 CFX_WideString& sError); |
138 FX_BOOL doNotScroll(IFXJS_Context* cc, | 134 FX_BOOL doNotScroll(IJS_Context* cc, |
139 CJS_PropValue& vp, | 135 CJS_PropValue& vp, |
140 CFX_WideString& sError); | 136 CFX_WideString& sError); |
141 FX_BOOL doNotSpellCheck(IFXJS_Context* cc, | 137 FX_BOOL doNotSpellCheck(IJS_Context* cc, |
142 CJS_PropValue& vp, | 138 CJS_PropValue& vp, |
143 CFX_WideString& sError); | 139 CFX_WideString& sError); |
144 FX_BOOL delay(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 140 FX_BOOL delay(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
145 FX_BOOL display(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 141 FX_BOOL display(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
146 FX_BOOL doc(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 142 FX_BOOL doc(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
147 FX_BOOL editable(IFXJS_Context* cc, | 143 FX_BOOL editable(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
148 CJS_PropValue& vp, | 144 FX_BOOL exportValues(IJS_Context* cc, |
149 CFX_WideString& sError); | 145 CJS_PropValue& vp, |
150 FX_BOOL exportValues(IFXJS_Context* cc, | 146 CFX_WideString& sError); |
151 CJS_PropValue& vp, | 147 FX_BOOL fileSelect(IJS_Context* cc, |
152 CFX_WideString& sError); | |
153 FX_BOOL fileSelect(IFXJS_Context* cc, | |
154 CJS_PropValue& vp, | 148 CJS_PropValue& vp, |
155 CFX_WideString& sError); | 149 CFX_WideString& sError); |
156 FX_BOOL fillColor(IFXJS_Context* cc, | 150 FX_BOOL fillColor(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
157 CJS_PropValue& vp, | 151 FX_BOOL hidden(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
158 CFX_WideString& sError); | 152 FX_BOOL highlight(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
159 FX_BOOL hidden(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 153 FX_BOOL lineWidth(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
160 FX_BOOL highlight(IFXJS_Context* cc, | 154 FX_BOOL multiline(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
161 CJS_PropValue& vp, | 155 FX_BOOL multipleSelection(IJS_Context* cc, |
162 CFX_WideString& sError); | |
163 FX_BOOL lineWidth(IFXJS_Context* cc, | |
164 CJS_PropValue& vp, | |
165 CFX_WideString& sError); | |
166 FX_BOOL multiline(IFXJS_Context* cc, | |
167 CJS_PropValue& vp, | |
168 CFX_WideString& sError); | |
169 FX_BOOL multipleSelection(IFXJS_Context* cc, | |
170 CJS_PropValue& vp, | 156 CJS_PropValue& vp, |
171 CFX_WideString& sError); | 157 CFX_WideString& sError); |
172 FX_BOOL name(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 158 FX_BOOL name(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
173 FX_BOOL numItems(IFXJS_Context* cc, | 159 FX_BOOL numItems(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
174 CJS_PropValue& vp, | 160 FX_BOOL page(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
175 CFX_WideString& sError); | 161 FX_BOOL password(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
176 FX_BOOL page(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 162 FX_BOOL print(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
177 FX_BOOL password(IFXJS_Context* cc, | 163 FX_BOOL radiosInUnison(IJS_Context* cc, |
178 CJS_PropValue& vp, | 164 CJS_PropValue& vp, |
179 CFX_WideString& sError); | 165 CFX_WideString& sError); |
180 FX_BOOL print(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 166 FX_BOOL readonly(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
181 FX_BOOL radiosInUnison(IFXJS_Context* cc, | 167 FX_BOOL rect(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
182 CJS_PropValue& vp, | 168 FX_BOOL required(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
183 CFX_WideString& sError); | 169 FX_BOOL richText(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
184 FX_BOOL readonly(IFXJS_Context* cc, | 170 FX_BOOL richValue(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
185 CJS_PropValue& vp, | 171 FX_BOOL rotation(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
186 CFX_WideString& sError); | 172 FX_BOOL strokeColor(IJS_Context* cc, |
187 FX_BOOL rect(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | |
188 FX_BOOL required(IFXJS_Context* cc, | |
189 CJS_PropValue& vp, | |
190 CFX_WideString& sError); | |
191 FX_BOOL richText(IFXJS_Context* cc, | |
192 CJS_PropValue& vp, | |
193 CFX_WideString& sError); | |
194 FX_BOOL richValue(IFXJS_Context* cc, | |
195 CJS_PropValue& vp, | |
196 CFX_WideString& sError); | |
197 FX_BOOL rotation(IFXJS_Context* cc, | |
198 CJS_PropValue& vp, | |
199 CFX_WideString& sError); | |
200 FX_BOOL strokeColor(IFXJS_Context* cc, | |
201 CJS_PropValue& vp, | 173 CJS_PropValue& vp, |
202 CFX_WideString& sError); | 174 CFX_WideString& sError); |
203 FX_BOOL style(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 175 FX_BOOL style(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
204 FX_BOOL submitName(IFXJS_Context* cc, | 176 FX_BOOL submitName(IJS_Context* cc, |
205 CJS_PropValue& vp, | 177 CJS_PropValue& vp, |
206 CFX_WideString& sError); | 178 CFX_WideString& sError); |
207 FX_BOOL textColor(IFXJS_Context* cc, | 179 FX_BOOL textColor(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
208 CJS_PropValue& vp, | 180 FX_BOOL textFont(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
209 CFX_WideString& sError); | 181 FX_BOOL textSize(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
210 FX_BOOL textFont(IFXJS_Context* cc, | 182 FX_BOOL type(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
211 CJS_PropValue& vp, | 183 FX_BOOL userName(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
212 CFX_WideString& sError); | 184 FX_BOOL value(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
213 FX_BOOL textSize(IFXJS_Context* cc, | 185 FX_BOOL valueAsString(IJS_Context* cc, |
214 CJS_PropValue& vp, | |
215 CFX_WideString& sError); | |
216 FX_BOOL type(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | |
217 FX_BOOL userName(IFXJS_Context* cc, | |
218 CJS_PropValue& vp, | |
219 CFX_WideString& sError); | |
220 FX_BOOL value(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | |
221 FX_BOOL valueAsString(IFXJS_Context* cc, | |
222 CJS_PropValue& vp, | 186 CJS_PropValue& vp, |
223 CFX_WideString& sError); | 187 CFX_WideString& sError); |
224 FX_BOOL source(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 188 FX_BOOL source(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
225 | 189 |
226 FX_BOOL browseForFileToSubmit(IFXJS_Context* cc, | 190 FX_BOOL browseForFileToSubmit(IJS_Context* cc, |
227 const CJS_Parameters& params, | 191 const CJS_Parameters& params, |
228 CJS_Value& vRet, | 192 CJS_Value& vRet, |
229 CFX_WideString& sError); | 193 CFX_WideString& sError); |
230 FX_BOOL buttonGetCaption(IFXJS_Context* cc, | 194 FX_BOOL buttonGetCaption(IJS_Context* cc, |
231 const CJS_Parameters& params, | 195 const CJS_Parameters& params, |
232 CJS_Value& vRet, | 196 CJS_Value& vRet, |
233 CFX_WideString& sError); | 197 CFX_WideString& sError); |
234 FX_BOOL buttonGetIcon(IFXJS_Context* cc, | 198 FX_BOOL buttonGetIcon(IJS_Context* cc, |
235 const CJS_Parameters& params, | 199 const CJS_Parameters& params, |
236 CJS_Value& vRet, | 200 CJS_Value& vRet, |
237 CFX_WideString& sError); | 201 CFX_WideString& sError); |
238 FX_BOOL buttonImportIcon(IFXJS_Context* cc, | 202 FX_BOOL buttonImportIcon(IJS_Context* cc, |
239 const CJS_Parameters& params, | 203 const CJS_Parameters& params, |
240 CJS_Value& vRet, | 204 CJS_Value& vRet, |
241 CFX_WideString& sError); | 205 CFX_WideString& sError); |
242 FX_BOOL buttonSetCaption(IFXJS_Context* cc, | 206 FX_BOOL buttonSetCaption(IJS_Context* cc, |
243 const CJS_Parameters& params, | 207 const CJS_Parameters& params, |
244 CJS_Value& vRet, | 208 CJS_Value& vRet, |
245 CFX_WideString& sError); | 209 CFX_WideString& sError); |
246 FX_BOOL buttonSetIcon(IFXJS_Context* cc, | 210 FX_BOOL buttonSetIcon(IJS_Context* cc, |
247 const CJS_Parameters& params, | 211 const CJS_Parameters& params, |
248 CJS_Value& vRet, | 212 CJS_Value& vRet, |
249 CFX_WideString& sError); | 213 CFX_WideString& sError); |
250 FX_BOOL checkThisBox(IFXJS_Context* cc, | 214 FX_BOOL checkThisBox(IJS_Context* cc, |
251 const CJS_Parameters& params, | 215 const CJS_Parameters& params, |
252 CJS_Value& vRet, | 216 CJS_Value& vRet, |
253 CFX_WideString& sError); | 217 CFX_WideString& sError); |
254 FX_BOOL clearItems(IFXJS_Context* cc, | 218 FX_BOOL clearItems(IJS_Context* cc, |
255 const CJS_Parameters& params, | 219 const CJS_Parameters& params, |
256 CJS_Value& vRet, | 220 CJS_Value& vRet, |
257 CFX_WideString& sError); | 221 CFX_WideString& sError); |
258 FX_BOOL defaultIsChecked(IFXJS_Context* cc, | 222 FX_BOOL defaultIsChecked(IJS_Context* cc, |
259 const CJS_Parameters& params, | 223 const CJS_Parameters& params, |
260 CJS_Value& vRet, | 224 CJS_Value& vRet, |
261 CFX_WideString& sError); | 225 CFX_WideString& sError); |
262 FX_BOOL deleteItemAt(IFXJS_Context* cc, | 226 FX_BOOL deleteItemAt(IJS_Context* cc, |
263 const CJS_Parameters& params, | 227 const CJS_Parameters& params, |
264 CJS_Value& vRet, | 228 CJS_Value& vRet, |
265 CFX_WideString& sError); | 229 CFX_WideString& sError); |
266 FX_BOOL getArray(IFXJS_Context* cc, | 230 FX_BOOL getArray(IJS_Context* cc, |
267 const CJS_Parameters& params, | 231 const CJS_Parameters& params, |
268 CJS_Value& vRet, | 232 CJS_Value& vRet, |
269 CFX_WideString& sError); | 233 CFX_WideString& sError); |
270 FX_BOOL getItemAt(IFXJS_Context* cc, | 234 FX_BOOL getItemAt(IJS_Context* cc, |
271 const CJS_Parameters& params, | 235 const CJS_Parameters& params, |
272 CJS_Value& vRet, | 236 CJS_Value& vRet, |
273 CFX_WideString& sError); | 237 CFX_WideString& sError); |
274 FX_BOOL getLock(IFXJS_Context* cc, | 238 FX_BOOL getLock(IJS_Context* cc, |
275 const CJS_Parameters& params, | 239 const CJS_Parameters& params, |
276 CJS_Value& vRet, | 240 CJS_Value& vRet, |
277 CFX_WideString& sError); | 241 CFX_WideString& sError); |
278 FX_BOOL insertItemAt(IFXJS_Context* cc, | 242 FX_BOOL insertItemAt(IJS_Context* cc, |
279 const CJS_Parameters& params, | 243 const CJS_Parameters& params, |
280 CJS_Value& vRet, | 244 CJS_Value& vRet, |
281 CFX_WideString& sError); | 245 CFX_WideString& sError); |
282 FX_BOOL isBoxChecked(IFXJS_Context* cc, | 246 FX_BOOL isBoxChecked(IJS_Context* cc, |
283 const CJS_Parameters& params, | 247 const CJS_Parameters& params, |
284 CJS_Value& vRet, | 248 CJS_Value& vRet, |
285 CFX_WideString& sError); | 249 CFX_WideString& sError); |
286 FX_BOOL isDefaultChecked(IFXJS_Context* cc, | 250 FX_BOOL isDefaultChecked(IJS_Context* cc, |
287 const CJS_Parameters& params, | 251 const CJS_Parameters& params, |
288 CJS_Value& vRet, | 252 CJS_Value& vRet, |
289 CFX_WideString& sError); | 253 CFX_WideString& sError); |
290 FX_BOOL setAction(IFXJS_Context* cc, | 254 FX_BOOL setAction(IJS_Context* cc, |
291 const CJS_Parameters& params, | 255 const CJS_Parameters& params, |
292 CJS_Value& vRet, | 256 CJS_Value& vRet, |
293 CFX_WideString& sError); | 257 CFX_WideString& sError); |
294 FX_BOOL setFocus(IFXJS_Context* cc, | 258 FX_BOOL setFocus(IJS_Context* cc, |
295 const CJS_Parameters& params, | 259 const CJS_Parameters& params, |
296 CJS_Value& vRet, | 260 CJS_Value& vRet, |
297 CFX_WideString& sError); | 261 CFX_WideString& sError); |
298 FX_BOOL setItems(IFXJS_Context* cc, | 262 FX_BOOL setItems(IJS_Context* cc, |
299 const CJS_Parameters& params, | 263 const CJS_Parameters& params, |
300 CJS_Value& vRet, | 264 CJS_Value& vRet, |
301 CFX_WideString& sError); | 265 CFX_WideString& sError); |
302 FX_BOOL setLock(IFXJS_Context* cc, | 266 FX_BOOL setLock(IJS_Context* cc, |
303 const CJS_Parameters& params, | 267 const CJS_Parameters& params, |
304 CJS_Value& vRet, | 268 CJS_Value& vRet, |
305 CFX_WideString& sError); | 269 CFX_WideString& sError); |
306 FX_BOOL signatureGetModifications(IFXJS_Context* cc, | 270 FX_BOOL signatureGetModifications(IJS_Context* cc, |
307 const CJS_Parameters& params, | 271 const CJS_Parameters& params, |
308 CJS_Value& vRet, | 272 CJS_Value& vRet, |
309 CFX_WideString& sError); | 273 CFX_WideString& sError); |
310 FX_BOOL signatureGetSeedValue(IFXJS_Context* cc, | 274 FX_BOOL signatureGetSeedValue(IJS_Context* cc, |
311 const CJS_Parameters& params, | 275 const CJS_Parameters& params, |
312 CJS_Value& vRet, | 276 CJS_Value& vRet, |
313 CFX_WideString& sError); | 277 CFX_WideString& sError); |
314 FX_BOOL signatureInfo(IFXJS_Context* cc, | 278 FX_BOOL signatureInfo(IJS_Context* cc, |
315 const CJS_Parameters& params, | 279 const CJS_Parameters& params, |
316 CJS_Value& vRet, | 280 CJS_Value& vRet, |
317 CFX_WideString& sError); | 281 CFX_WideString& sError); |
318 FX_BOOL signatureSetSeedValue(IFXJS_Context* cc, | 282 FX_BOOL signatureSetSeedValue(IJS_Context* cc, |
319 const CJS_Parameters& params, | 283 const CJS_Parameters& params, |
320 CJS_Value& vRet, | 284 CJS_Value& vRet, |
321 CFX_WideString& sError); | 285 CFX_WideString& sError); |
322 FX_BOOL signatureSign(IFXJS_Context* cc, | 286 FX_BOOL signatureSign(IJS_Context* cc, |
323 const CJS_Parameters& params, | 287 const CJS_Parameters& params, |
324 CJS_Value& vRet, | 288 CJS_Value& vRet, |
325 CFX_WideString& sError); | 289 CFX_WideString& sError); |
326 FX_BOOL signatureValidate(IFXJS_Context* cc, | 290 FX_BOOL signatureValidate(IJS_Context* cc, |
327 const CJS_Parameters& params, | 291 const CJS_Parameters& params, |
328 CJS_Value& vRet, | 292 CJS_Value& vRet, |
329 CFX_WideString& sError); | 293 CFX_WideString& sError); |
330 | 294 |
331 public: | 295 public: |
332 static void SetAlignment(CPDFSDK_Document* pDocument, | 296 static void SetAlignment(CPDFSDK_Document* pDocument, |
333 const CFX_WideString& swFieldName, | 297 const CFX_WideString& swFieldName, |
334 int nControlIndex, | 298 int nControlIndex, |
335 const CFX_ByteString& string); | 299 const CFX_ByteString& string); |
336 static void SetBorderStyle(CPDFSDK_Document* pDocument, | 300 static void SetBorderStyle(CPDFSDK_Document* pDocument, |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 494 |
531 FX_BOOL m_bDelay; | 495 FX_BOOL m_bDelay; |
532 v8::Isolate* m_isolate; | 496 v8::Isolate* m_isolate; |
533 }; | 497 }; |
534 | 498 |
535 class CJS_Field : public CJS_Object { | 499 class CJS_Field : public CJS_Object { |
536 public: | 500 public: |
537 CJS_Field(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} | 501 CJS_Field(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
538 ~CJS_Field(void) override {} | 502 ~CJS_Field(void) override {} |
539 | 503 |
540 FX_BOOL InitInstance(IFXJS_Context* cc) override; | 504 FX_BOOL InitInstance(IJS_Context* cc) override; |
541 | 505 |
542 DECLARE_JS_CLASS(); | 506 DECLARE_JS_CLASS(); |
543 JS_STATIC_PROP(alignment, Field); | 507 JS_STATIC_PROP(alignment, Field); |
544 JS_STATIC_PROP(borderStyle, Field); | 508 JS_STATIC_PROP(borderStyle, Field); |
545 JS_STATIC_PROP(buttonAlignX, Field); | 509 JS_STATIC_PROP(buttonAlignX, Field); |
546 JS_STATIC_PROP(buttonAlignY, Field); | 510 JS_STATIC_PROP(buttonAlignY, Field); |
547 JS_STATIC_PROP(buttonFitBounds, Field); | 511 JS_STATIC_PROP(buttonFitBounds, Field); |
548 JS_STATIC_PROP(buttonPosition, Field); | 512 JS_STATIC_PROP(buttonPosition, Field); |
549 JS_STATIC_PROP(buttonScaleHow, Field); | 513 JS_STATIC_PROP(buttonScaleHow, Field); |
550 JS_STATIC_PROP(buttonScaleWhen, Field); | 514 JS_STATIC_PROP(buttonScaleWhen, Field); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 JS_STATIC_METHOD(setLock, Field); | 579 JS_STATIC_METHOD(setLock, Field); |
616 JS_STATIC_METHOD(signatureGetModifications, Field); | 580 JS_STATIC_METHOD(signatureGetModifications, Field); |
617 JS_STATIC_METHOD(signatureGetSeedValue, Field); | 581 JS_STATIC_METHOD(signatureGetSeedValue, Field); |
618 JS_STATIC_METHOD(signatureInfo, Field); | 582 JS_STATIC_METHOD(signatureInfo, Field); |
619 JS_STATIC_METHOD(signatureSetSeedValue, Field); | 583 JS_STATIC_METHOD(signatureSetSeedValue, Field); |
620 JS_STATIC_METHOD(signatureSign, Field); | 584 JS_STATIC_METHOD(signatureSign, Field); |
621 JS_STATIC_METHOD(signatureValidate, Field); | 585 JS_STATIC_METHOD(signatureValidate, Field); |
622 }; | 586 }; |
623 | 587 |
624 #endif // FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ | 588 #endif // FPDFSDK_SRC_JAVASCRIPT_FIELD_H_ |
OLD | NEW |