| 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_INTERFORM_H_ | 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_INTERFORM_H_ |
| 8 #define FPDFSDK_INCLUDE_CPDFSDK_INTERFORM_H_ | 8 #define FPDFSDK_INCLUDE_CPDFSDK_INTERFORM_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 FX_BOOL IsXfaCalculateEnabled() const; | 60 FX_BOOL IsXfaCalculateEnabled() const; |
| 61 FX_BOOL IsXfaValidationsEnabled(); | 61 FX_BOOL IsXfaValidationsEnabled(); |
| 62 void XfaSetValidationsEnabled(FX_BOOL bEnabled); | 62 void XfaSetValidationsEnabled(FX_BOOL bEnabled); |
| 63 void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); | 63 void SynchronizeField(CPDF_FormField* pFormField, FX_BOOL bSynchronizeElse); |
| 64 #endif // PDF_ENABLE_XFA | 64 #endif // PDF_ENABLE_XFA |
| 65 | 65 |
| 66 FX_BOOL OnKeyStrokeCommit(CPDF_FormField* pFormField, | 66 FX_BOOL OnKeyStrokeCommit(CPDF_FormField* pFormField, |
| 67 const CFX_WideString& csValue); | 67 const CFX_WideString& csValue); |
| 68 FX_BOOL OnValidate(CPDF_FormField* pFormField, const CFX_WideString& csValue); | 68 FX_BOOL OnValidate(CPDF_FormField* pFormField, const CFX_WideString& csValue); |
| 69 void OnCalculate(CPDF_FormField* pFormField = nullptr); | 69 void OnCalculate(CPDF_FormField* pFormField = nullptr); |
| 70 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated); | 70 CFX_WideString OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormatted); |
| 71 | 71 |
| 72 void ResetFieldAppearance(CPDF_FormField* pFormField, | 72 void ResetFieldAppearance(CPDF_FormField* pFormField, |
| 73 const FX_WCHAR* sValue, | 73 const FX_WCHAR* sValue, |
| 74 FX_BOOL bValueChanged); | 74 FX_BOOL bValueChanged); |
| 75 void UpdateField(CPDF_FormField* pFormField); | 75 void UpdateField(CPDF_FormField* pFormField); |
| 76 | 76 |
| 77 FX_BOOL DoAction_Hide(const CPDF_Action& action); | 77 FX_BOOL DoAction_Hide(const CPDF_Action& action); |
| 78 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action); | 78 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action); |
| 79 FX_BOOL DoAction_ResetForm(const CPDF_Action& action); | 79 FX_BOOL DoAction_ResetForm(const CPDF_Action& action); |
| 80 FX_BOOL DoAction_ImportData(const CPDF_Action& action); | 80 FX_BOOL DoAction_ImportData(const CPDF_Action& action); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 #endif // PDF_ENABLE_XFA | 135 #endif // PDF_ENABLE_XFA |
| 136 FX_BOOL m_bCalculate; | 136 FX_BOOL m_bCalculate; |
| 137 FX_BOOL m_bBusy; | 137 FX_BOOL m_bBusy; |
| 138 | 138 |
| 139 FX_COLORREF m_aHighlightColor[kNumFieldTypes]; | 139 FX_COLORREF m_aHighlightColor[kNumFieldTypes]; |
| 140 uint8_t m_iHighlightAlpha; | 140 uint8_t m_iHighlightAlpha; |
| 141 FX_BOOL m_bNeedHightlight[kNumFieldTypes]; | 141 FX_BOOL m_bNeedHightlight[kNumFieldTypes]; |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 #endif // FPDFSDK_INCLUDE_CPDFSDK_INTERFORM_H_ | 144 #endif // FPDFSDK_INCLUDE_CPDFSDK_INTERFORM_H_ |
| OLD | NEW |