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" | 7 #include "fpdfsdk/src/javascript/Field.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "Document.h" | |
14 #include "Icon.h" | |
15 #include "JS_Context.h" | |
16 #include "JS_Define.h" | |
17 #include "JS_EventHandler.h" | |
18 #include "JS_Object.h" | |
19 #include "JS_Runtime.h" | |
20 #include "JS_Value.h" | |
21 #include "PublicMethods.h" | |
22 #include "color.h" | |
23 #include "fpdfsdk/include/fsdk_mgr.h" // For CPDFDoc_Environment. | 13 #include "fpdfsdk/include/fsdk_mgr.h" // For CPDFDoc_Environment. |
24 #include "fpdfsdk/include/javascript/IJavaScript.h" | 14 #include "fpdfsdk/include/javascript/IJavaScript.h" |
| 15 #include "fpdfsdk/src/javascript/Document.h" |
| 16 #include "fpdfsdk/src/javascript/Icon.h" |
| 17 #include "fpdfsdk/src/javascript/JS_Context.h" |
| 18 #include "fpdfsdk/src/javascript/JS_Define.h" |
| 19 #include "fpdfsdk/src/javascript/JS_EventHandler.h" |
| 20 #include "fpdfsdk/src/javascript/JS_Object.h" |
| 21 #include "fpdfsdk/src/javascript/JS_Runtime.h" |
| 22 #include "fpdfsdk/src/javascript/JS_Value.h" |
| 23 #include "fpdfsdk/src/javascript/PublicMethods.h" |
| 24 #include "fpdfsdk/src/javascript/color.h" |
25 | 25 |
26 BEGIN_JS_STATIC_CONST(CJS_Field) | 26 BEGIN_JS_STATIC_CONST(CJS_Field) |
27 END_JS_STATIC_CONST() | 27 END_JS_STATIC_CONST() |
28 | 28 |
29 BEGIN_JS_STATIC_PROP(CJS_Field) | 29 BEGIN_JS_STATIC_PROP(CJS_Field) |
30 JS_STATIC_PROP_ENTRY(alignment) | 30 JS_STATIC_PROP_ENTRY(alignment) |
31 JS_STATIC_PROP_ENTRY(borderStyle) | 31 JS_STATIC_PROP_ENTRY(borderStyle) |
32 JS_STATIC_PROP_ENTRY(buttonAlignX) | 32 JS_STATIC_PROP_ENTRY(buttonAlignX) |
33 JS_STATIC_PROP_ENTRY(buttonAlignY) | 33 JS_STATIC_PROP_ENTRY(buttonAlignY) |
34 JS_STATIC_PROP_ENTRY(buttonFitBounds) | 34 JS_STATIC_PROP_ENTRY(buttonFitBounds) |
(...skipping 3553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3588 } | 3588 } |
3589 } | 3589 } |
3590 | 3590 |
3591 void Field::AddField(CPDFSDK_Document* pDocument, | 3591 void Field::AddField(CPDFSDK_Document* pDocument, |
3592 int nPageIndex, | 3592 int nPageIndex, |
3593 int nFieldType, | 3593 int nFieldType, |
3594 const CFX_WideString& sName, | 3594 const CFX_WideString& sName, |
3595 const CPDF_Rect& rcCoords) { | 3595 const CPDF_Rect& rcCoords) { |
3596 // Not supported. | 3596 // Not supported. |
3597 } | 3597 } |
OLD | NEW |