OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 CORE_FPDFDOC_INCLUDE_CPDF_FORMFIELD_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_FORMFIELD_H_ |
8 #define CORE_FPDFDOC_INCLUDE_CPDF_FORMFIELD_H_ | 8 #define CORE_FPDFDOC_INCLUDE_CPDF_FORMFIELD_H_ |
9 | 9 |
10 #include "core/fpdfdoc/include/cpdf_aaction.h" | 10 #include "core/fpdfdoc/include/cpdf_aaction.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 class CPDF_Dictionary; | 25 class CPDF_Dictionary; |
26 class CPDF_Font; | 26 class CPDF_Font; |
27 class CPDF_FormControl; | 27 class CPDF_FormControl; |
28 class CPDF_InterForm; | 28 class CPDF_InterForm; |
29 class CPDF_String; | 29 class CPDF_String; |
30 | 30 |
31 CPDF_Object* FPDF_GetFieldAttr(CPDF_Dictionary* pFieldDict, | 31 CPDF_Object* FPDF_GetFieldAttr(CPDF_Dictionary* pFieldDict, |
32 const FX_CHAR* name, | 32 const FX_CHAR* name, |
33 int nLevel = 0); | 33 int nLevel = 0); |
| 34 CFX_WideString FPDF_GetFullName(CPDF_Dictionary* pFieldDict); |
34 | 35 |
35 class CPDF_FormField { | 36 class CPDF_FormField { |
36 public: | 37 public: |
37 enum Type { | 38 enum Type { |
38 Unknown, | 39 Unknown, |
39 PushButton, | 40 PushButton, |
40 RadioButton, | 41 RadioButton, |
41 CheckBox, | 42 CheckBox, |
42 Text, | 43 Text, |
43 RichText, | 44 RichText, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 CPDF_FormField::Type m_Type; | 159 CPDF_FormField::Type m_Type; |
159 uint32_t m_Flags; | 160 uint32_t m_Flags; |
160 CPDF_InterForm* m_pForm; | 161 CPDF_InterForm* m_pForm; |
161 CPDF_Dictionary* m_pDict; | 162 CPDF_Dictionary* m_pDict; |
162 CFX_ArrayTemplate<CPDF_FormControl*> m_ControlList; | 163 CFX_ArrayTemplate<CPDF_FormControl*> m_ControlList; |
163 FX_FLOAT m_FontSize; | 164 FX_FLOAT m_FontSize; |
164 CPDF_Font* m_pFont; | 165 CPDF_Font* m_pFont; |
165 }; | 166 }; |
166 | 167 |
167 #endif // CORE_FPDFDOC_INCLUDE_CPDF_FORMFIELD_H_ | 168 #endif // CORE_FPDFDOC_INCLUDE_CPDF_FORMFIELD_H_ |
OLD | NEW |