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 FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ | 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ |
8 #define FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ | 8 #define FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void SetOptionSelection(int index, FX_BOOL bSelected, FX_BOOL bNotify); | 104 void SetOptionSelection(int index, FX_BOOL bSelected, FX_BOOL bNotify); |
105 void ClearSelection(FX_BOOL bNotify); | 105 void ClearSelection(FX_BOOL bNotify); |
106 void SetTopVisibleIndex(int index); | 106 void SetTopVisibleIndex(int index); |
107 | 107 |
108 #ifdef PDF_ENABLE_XFA | 108 #ifdef PDF_ENABLE_XFA |
109 void ResetAppearance(FX_BOOL bValueChanged); | 109 void ResetAppearance(FX_BOOL bValueChanged); |
110 #endif // PDF_ENABLE_XFA | 110 #endif // PDF_ENABLE_XFA |
111 void ResetAppearance(const FX_WCHAR* sValue, FX_BOOL bValueChanged); | 111 void ResetAppearance(const FX_WCHAR* sValue, FX_BOOL bValueChanged); |
112 void ResetFieldAppearance(FX_BOOL bValueChanged); | 112 void ResetFieldAppearance(FX_BOOL bValueChanged); |
113 void UpdateField(); | 113 void UpdateField(); |
114 CFX_WideString OnFormat(FX_BOOL& bFormated); | 114 CFX_WideString OnFormat(FX_BOOL& bFormatted); |
115 | 115 |
116 FX_BOOL OnAAction(CPDF_AAction::AActionType type, | 116 FX_BOOL OnAAction(CPDF_AAction::AActionType type, |
117 PDFSDK_FieldAction& data, | 117 PDFSDK_FieldAction& data, |
118 CPDFSDK_PageView* pPageView); | 118 CPDFSDK_PageView* pPageView); |
119 | 119 |
120 CPDFSDK_InterForm* GetInterForm() const { return m_pInterForm; } | 120 CPDFSDK_InterForm* GetInterForm() const { return m_pInterForm; } |
121 CPDF_FormField* GetFormField() const; | 121 CPDF_FormField* GetFormField() const; |
122 CPDF_FormControl* GetFormControl() const; | 122 CPDF_FormControl* GetFormControl() const; |
123 static CPDF_FormControl* GetFormControl(CPDF_InterForm* pInterForm, | 123 static CPDF_FormControl* GetFormControl(CPDF_InterForm* pInterForm, |
124 const CPDF_Dictionary* pAnnotDict); | 124 const CPDF_Dictionary* pAnnotDict); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 int32_t m_nAppAge; | 167 int32_t m_nAppAge; |
168 int32_t m_nValueAge; | 168 int32_t m_nValueAge; |
169 | 169 |
170 #ifdef PDF_ENABLE_XFA | 170 #ifdef PDF_ENABLE_XFA |
171 mutable CXFA_FFWidget* m_hMixXFAWidget; | 171 mutable CXFA_FFWidget* m_hMixXFAWidget; |
172 mutable CXFA_FFWidgetHandler* m_pWidgetHandler; | 172 mutable CXFA_FFWidgetHandler* m_pWidgetHandler; |
173 #endif // PDF_ENABLE_XFA | 173 #endif // PDF_ENABLE_XFA |
174 }; | 174 }; |
175 | 175 |
176 #endif // FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ | 176 #endif // FPDFSDK_INCLUDE_CPDFSDK_WIDGET_H_ |
OLD | NEW |