| 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 "Field.h" |
| 8 | 8 |
| 9 #include "../../include/fsdk_mgr.h" // For CPDFDoc_Environment. | |
| 10 #include "../../include/javascript/IJavaScript.h" | |
| 11 #include "Document.h" | 9 #include "Document.h" |
| 12 #include "Icon.h" | 10 #include "Icon.h" |
| 13 #include "JS_Context.h" | 11 #include "JS_Context.h" |
| 14 #include "JS_Define.h" | 12 #include "JS_Define.h" |
| 15 #include "JS_EventHandler.h" | 13 #include "JS_EventHandler.h" |
| 16 #include "JS_Object.h" | 14 #include "JS_Object.h" |
| 17 #include "JS_Runtime.h" | 15 #include "JS_Runtime.h" |
| 18 #include "JS_Value.h" | 16 #include "JS_Value.h" |
| 19 #include "PublicMethods.h" | 17 #include "PublicMethods.h" |
| 20 #include "color.h" | 18 #include "color.h" |
| 19 #include "fpdfsdk/include/fsdk_mgr.h" // For CPDFDoc_Environment. |
| 20 #include "fpdfsdk/include/javascript/IJavaScript.h" |
| 21 | 21 |
| 22 /* ---------------------- Field ---------------------- */ | 22 /* ---------------------- Field ---------------------- */ |
| 23 | 23 |
| 24 BEGIN_JS_STATIC_CONST(CJS_Field) | 24 BEGIN_JS_STATIC_CONST(CJS_Field) |
| 25 END_JS_STATIC_CONST() | 25 END_JS_STATIC_CONST() |
| 26 | 26 |
| 27 BEGIN_JS_STATIC_PROP(CJS_Field) | 27 BEGIN_JS_STATIC_PROP(CJS_Field) |
| 28 JS_STATIC_PROP_ENTRY(alignment) | 28 JS_STATIC_PROP_ENTRY(alignment) |
| 29 JS_STATIC_PROP_ENTRY(borderStyle) | 29 JS_STATIC_PROP_ENTRY(borderStyle) |
| 30 JS_STATIC_PROP_ENTRY(buttonAlignX) | 30 JS_STATIC_PROP_ENTRY(buttonAlignX) |
| (...skipping 3708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3739 #define JS_FIELD_MINWIDTH 1 | 3739 #define JS_FIELD_MINWIDTH 1 |
| 3740 #define JS_FIELD_MINHEIGHT 1 | 3740 #define JS_FIELD_MINHEIGHT 1 |
| 3741 | 3741 |
| 3742 void Field::AddField(CPDFSDK_Document* pDocument, | 3742 void Field::AddField(CPDFSDK_Document* pDocument, |
| 3743 int nPageIndex, | 3743 int nPageIndex, |
| 3744 int nFieldType, | 3744 int nFieldType, |
| 3745 const CFX_WideString& sName, | 3745 const CFX_WideString& sName, |
| 3746 const CPDF_Rect& rcCoords) { | 3746 const CPDF_Rect& rcCoords) { |
| 3747 // Not supported. | 3747 // Not supported. |
| 3748 } | 3748 } |
| OLD | NEW |