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_CPDFSDK_INTERFORM_H_ | 7 #ifndef FPDFSDK_CPDFSDK_INTERFORM_H_ |
8 #define FPDFSDK_CPDFSDK_INTERFORM_H_ | 8 #define FPDFSDK_CPDFSDK_INTERFORM_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 21 matching lines...) Expand all Loading... |
32 public: | 32 public: |
33 explicit CPDFSDK_InterForm(CPDFSDK_FormFillEnvironment* pFormFillEnv); | 33 explicit CPDFSDK_InterForm(CPDFSDK_FormFillEnvironment* pFormFillEnv); |
34 ~CPDFSDK_InterForm() override; | 34 ~CPDFSDK_InterForm() override; |
35 | 35 |
36 CPDF_InterForm* GetInterForm() const { return m_pInterForm.get(); } | 36 CPDF_InterForm* GetInterForm() const { return m_pInterForm.get(); } |
37 CPDFSDK_FormFillEnvironment* GetFormFillEnv() const { return m_pFormFillEnv; } | 37 CPDFSDK_FormFillEnvironment* GetFormFillEnv() const { return m_pFormFillEnv; } |
38 | 38 |
39 bool HighlightWidgets(); | 39 bool HighlightWidgets(); |
40 | 40 |
41 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, bool bNext) const; | 41 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, bool bNext) const; |
42 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl, | 42 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl) const; |
43 bool createIfNeeded) const; | |
44 void GetWidgets(const CFX_WideString& sFieldName, | 43 void GetWidgets(const CFX_WideString& sFieldName, |
45 std::vector<CPDFSDK_Widget*>* widgets) const; | 44 std::vector<CPDFSDK_Widget*>* widgets) const; |
46 void GetWidgets(CPDF_FormField* pField, | 45 void GetWidgets(CPDF_FormField* pField, |
47 std::vector<CPDFSDK_Widget*>* widgets) const; | 46 std::vector<CPDFSDK_Widget*>* widgets) const; |
48 | 47 |
49 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget); | 48 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget); |
50 void RemoveMap(CPDF_FormControl* pControl); | 49 void RemoveMap(CPDF_FormControl* pControl); |
51 | 50 |
52 void EnableCalculate(bool bEnabled); | 51 void EnableCalculate(bool bEnabled); |
53 bool IsCalculateEnabled() const; | 52 bool IsCalculateEnabled() const; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 #endif // PDF_ENABLE_XFA | 133 #endif // PDF_ENABLE_XFA |
135 bool m_bCalculate; | 134 bool m_bCalculate; |
136 bool m_bBusy; | 135 bool m_bBusy; |
137 | 136 |
138 FX_COLORREF m_aHighlightColor[kNumFieldTypes]; | 137 FX_COLORREF m_aHighlightColor[kNumFieldTypes]; |
139 uint8_t m_iHighlightAlpha; | 138 uint8_t m_iHighlightAlpha; |
140 bool m_bNeedHightlight[kNumFieldTypes]; | 139 bool m_bNeedHightlight[kNumFieldTypes]; |
141 }; | 140 }; |
142 | 141 |
143 #endif // FPDFSDK_CPDFSDK_INTERFORM_H_ | 142 #endif // FPDFSDK_CPDFSDK_INTERFORM_H_ |
OLD | NEW |