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 #ifndef FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
9 | 9 |
10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 std::vector<CPDFSDK_Widget*>* widgets) const; | 189 std::vector<CPDFSDK_Widget*>* widgets) const; |
190 void GetWidgets(CPDF_FormField* pField, | 190 void GetWidgets(CPDF_FormField* pField, |
191 std::vector<CPDFSDK_Widget*>* widgets) const; | 191 std::vector<CPDFSDK_Widget*>* widgets) const; |
192 | 192 |
193 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget); | 193 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget); |
194 void RemoveMap(CPDF_FormControl* pControl); | 194 void RemoveMap(CPDF_FormControl* pControl); |
195 | 195 |
196 void EnableCalculate(FX_BOOL bEnabled); | 196 void EnableCalculate(FX_BOOL bEnabled); |
197 FX_BOOL IsCalculateEnabled() const; | 197 FX_BOOL IsCalculateEnabled() const; |
198 | 198 |
199 #ifdef _WIN32 | |
200 CPDF_Stream* LoadImageFromFile(const CFX_WideString& sFile); | |
201 #endif | |
202 | |
203 void OnKeyStrokeCommit(CPDF_FormField* pFormField, | 199 void OnKeyStrokeCommit(CPDF_FormField* pFormField, |
204 CFX_WideString& csValue, | 200 CFX_WideString& csValue, |
205 FX_BOOL& bRC); | 201 FX_BOOL& bRC); |
206 void OnValidate(CPDF_FormField* pFormField, | 202 void OnValidate(CPDF_FormField* pFormField, |
207 CFX_WideString& csValue, | 203 CFX_WideString& csValue, |
208 FX_BOOL& bRC); | 204 FX_BOOL& bRC); |
209 void OnCalculate(CPDF_FormField* pFormField = NULL); | 205 void OnCalculate(CPDF_FormField* pFormField = NULL); |
210 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated); | 206 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated); |
211 | 207 |
212 void ResetFieldAppearance(CPDF_FormField* pFormField, | 208 void ResetFieldAppearance(CPDF_FormField* pFormField, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); | 298 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); |
303 | 299 |
304 CPDFSDK_PageView* m_pPageView; | 300 CPDFSDK_PageView* m_pPageView; |
305 CFX_ByteString m_sType; | 301 CFX_ByteString m_sType; |
306 CFX_ByteString m_sSubType; | 302 CFX_ByteString m_sSubType; |
307 int m_nTabs; | 303 int m_nTabs; |
308 CPDFSDK_Annots m_Annots; | 304 CPDFSDK_Annots m_Annots; |
309 }; | 305 }; |
310 | 306 |
311 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 307 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
OLD | NEW |