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_CPDF_FORMCONTROL_H_ | 7 #ifndef CORE_FPDFDOC_CPDF_FORMCONTROL_H_ |
8 #define CORE_FPDFDOC_CPDF_FORMCONTROL_H_ | 8 #define CORE_FPDFDOC_CPDF_FORMCONTROL_H_ |
9 | 9 |
10 #include "core/fpdfdoc/cpdf_aaction.h" | 10 #include "core/fpdfdoc/cpdf_aaction.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 int GetControlAlignment(); | 108 int GetControlAlignment(); |
109 | 109 |
110 private: | 110 private: |
111 friend class CPDF_InterForm; | 111 friend class CPDF_InterForm; |
112 friend class CPDF_FormField; | 112 friend class CPDF_FormField; |
113 | 113 |
114 CPDF_FormControl(CPDF_FormField* pField, CPDF_Dictionary* pWidgetDict); | 114 CPDF_FormControl(CPDF_FormField* pField, CPDF_Dictionary* pWidgetDict); |
115 | 115 |
116 CFX_ByteString GetOnStateName() const; | 116 CFX_ByteString GetOnStateName() const; |
117 void SetOnStateName(const CFX_ByteString& csOn); | 117 void SetOnStateName(const CFX_ByteString& csOn); |
118 void CheckControl(FX_BOOL bChecked); | 118 void CheckControl(bool bChecked); |
119 FX_ARGB GetColor(int& iColorType, const CFX_ByteString& csEntry); | 119 FX_ARGB GetColor(int& iColorType, const CFX_ByteString& csEntry); |
120 FX_FLOAT GetOriginalColor(int index, const CFX_ByteString& csEntry); | 120 FX_FLOAT GetOriginalColor(int index, const CFX_ByteString& csEntry); |
121 void GetOriginalColor(int& iColorType, | 121 void GetOriginalColor(int& iColorType, |
122 FX_FLOAT fc[4], | 122 FX_FLOAT fc[4], |
123 const CFX_ByteString& csEntry); | 123 const CFX_ByteString& csEntry); |
124 | 124 |
125 CFX_WideString GetCaption(const CFX_ByteString& csEntry); | 125 CFX_WideString GetCaption(const CFX_ByteString& csEntry); |
126 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry); | 126 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry); |
127 CPDF_ApSettings GetMK() const; | 127 CPDF_ApSettings GetMK() const; |
128 | 128 |
129 CPDF_FormField* const m_pField; | 129 CPDF_FormField* const m_pField; |
130 CPDF_Dictionary* const m_pWidgetDict; | 130 CPDF_Dictionary* const m_pWidgetDict; |
131 CPDF_InterForm* const m_pForm; | 131 CPDF_InterForm* const m_pForm; |
132 }; | 132 }; |
133 | 133 |
134 #endif // CORE_FPDFDOC_CPDF_FORMCONTROL_H_ | 134 #endif // CORE_FPDFDOC_CPDF_FORMCONTROL_H_ |
OLD | NEW |