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 #include <map> | 10 #include <map> |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 CPDFSDK_XFAWidget* GetXFAWidget(CXFA_FFWidget* hWidget); | 274 CPDFSDK_XFAWidget* GetXFAWidget(CXFA_FFWidget* hWidget); |
275 void XfaEnableCalculate(FX_BOOL bEnabled); | 275 void XfaEnableCalculate(FX_BOOL bEnabled); |
276 FX_BOOL IsXfaCalculateEnabled() const; | 276 FX_BOOL IsXfaCalculateEnabled() const; |
277 FX_BOOL IsXfaValidationsEnabled(); | 277 FX_BOOL IsXfaValidationsEnabled(); |
278 void XfaSetValidationsEnabled(FX_BOOL bEnabled); | 278 void XfaSetValidationsEnabled(FX_BOOL bEnabled); |
279 #endif // PDF_ENABLE_XFA | 279 #endif // PDF_ENABLE_XFA |
280 | 280 |
281 FX_BOOL OnKeyStrokeCommit(CPDF_FormField* pFormField, | 281 FX_BOOL OnKeyStrokeCommit(CPDF_FormField* pFormField, |
282 const CFX_WideString& csValue); | 282 const CFX_WideString& csValue); |
283 FX_BOOL OnValidate(CPDF_FormField* pFormField, const CFX_WideString& csValue); | 283 FX_BOOL OnValidate(CPDF_FormField* pFormField, const CFX_WideString& csValue); |
284 void OnCalculate(CPDF_FormField* pFormField = NULL); | 284 void OnCalculate(CPDF_FormField* pFormField = nullptr); |
285 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated); | 285 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated); |
286 | 286 |
287 void ResetFieldAppearance(CPDF_FormField* pFormField, | 287 void ResetFieldAppearance(CPDF_FormField* pFormField, |
288 const FX_WCHAR* sValue, | 288 const FX_WCHAR* sValue, |
289 FX_BOOL bValueChanged); | 289 FX_BOOL bValueChanged); |
290 void UpdateField(CPDF_FormField* pFormField); | 290 void UpdateField(CPDF_FormField* pFormField); |
291 | 291 |
292 FX_BOOL DoAction_Hide(const CPDF_Action& action); | 292 FX_BOOL DoAction_Hide(const CPDF_Action& action); |
293 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action); | 293 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action); |
294 FX_BOOL DoAction_ResetForm(const CPDF_Action& action); | 294 FX_BOOL DoAction_ResetForm(const CPDF_Action& action); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 const CPDFSDK_Annot* p2); | 390 const CPDFSDK_Annot* p2); |
391 | 391 |
392 TabOrder m_eTabOrder; | 392 TabOrder m_eTabOrder; |
393 CPDFSDK_PageView* m_pPageView; | 393 CPDFSDK_PageView* m_pPageView; |
394 CFX_ByteString m_sType; | 394 CFX_ByteString m_sType; |
395 CFX_ByteString m_sSubType; | 395 CFX_ByteString m_sSubType; |
396 std::vector<CPDFSDK_Annot*> m_Annots; | 396 std::vector<CPDFSDK_Annot*> m_Annots; |
397 }; | 397 }; |
398 | 398 |
399 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 399 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
OLD | NEW |