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 "Field.h" |
| 8 |
| 9 #include "../../include/fsdk_mgr.h" // For CPDFDoc_Environment. |
7 #include "../../include/javascript/IJavaScript.h" | 10 #include "../../include/javascript/IJavaScript.h" |
8 #include "../../include/javascript/JS_Define.h" | 11 #include "Document.h" |
9 #include "../../include/javascript/JS_Object.h" | 12 #include "Icon.h" |
10 #include "../../include/javascript/JS_Value.h" | 13 #include "JS_Context.h" |
11 #include "../../include/javascript/Field.h" | 14 #include "JS_Define.h" |
12 #include "../../include/javascript/JS_EventHandler.h" | 15 #include "JS_EventHandler.h" |
13 #include "../../include/javascript/JS_Context.h" | 16 #include "JS_Object.h" |
14 #include "../../include/javascript/JS_Runtime.h" | 17 #include "JS_Runtime.h" |
15 #include "../../include/javascript/Document.h" | 18 #include "JS_Value.h" |
16 #include "../../include/javascript/color.h" | 19 #include "PublicMethods.h" |
17 #include "../../include/javascript/PublicMethods.h" | 20 #include "color.h" |
18 #include "../../include/javascript/Icon.h" | |
19 | 21 |
20 /* ---------------------- Field ---------------------- */ | 22 /* ---------------------- Field ---------------------- */ |
21 | 23 |
22 BEGIN_JS_STATIC_CONST(CJS_Field) | 24 BEGIN_JS_STATIC_CONST(CJS_Field) |
23 END_JS_STATIC_CONST() | 25 END_JS_STATIC_CONST() |
24 | 26 |
25 BEGIN_JS_STATIC_PROP(CJS_Field) | 27 BEGIN_JS_STATIC_PROP(CJS_Field) |
26 JS_STATIC_PROP_ENTRY(alignment) | 28 JS_STATIC_PROP_ENTRY(alignment) |
27 JS_STATIC_PROP_ENTRY(borderStyle) | 29 JS_STATIC_PROP_ENTRY(borderStyle) |
28 JS_STATIC_PROP_ENTRY(buttonAlignX) | 30 JS_STATIC_PROP_ENTRY(buttonAlignX) |
(...skipping 4010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4039 #define JS_FIELD_MINWIDTH 1 | 4041 #define JS_FIELD_MINWIDTH 1 |
4040 #define JS_FIELD_MINHEIGHT 1 | 4042 #define JS_FIELD_MINHEIGHT 1 |
4041 | 4043 |
4042 void Field::AddField(CPDFSDK_Document* pDocument, | 4044 void Field::AddField(CPDFSDK_Document* pDocument, |
4043 int nPageIndex, | 4045 int nPageIndex, |
4044 int nFieldType, | 4046 int nFieldType, |
4045 const CFX_WideString& sName, | 4047 const CFX_WideString& sName, |
4046 const CPDF_Rect& rcCoords) { | 4048 const CPDF_Rect& rcCoords) { |
4047 // Not supported. | 4049 // Not supported. |
4048 } | 4050 } |
OLD | NEW |