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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 public: | 256 public: |
257 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument); | 257 explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument); |
258 ~CPDFSDK_InterForm() override; | 258 ~CPDFSDK_InterForm() override; |
259 | 259 |
260 CPDF_InterForm* GetInterForm() const { return m_pInterForm.get(); } | 260 CPDF_InterForm* GetInterForm() const { return m_pInterForm.get(); } |
261 CPDFSDK_Document* GetDocument() const { return m_pDocument; } | 261 CPDFSDK_Document* GetDocument() const { return m_pDocument; } |
262 | 262 |
263 FX_BOOL HighlightWidgets(); | 263 FX_BOOL HighlightWidgets(); |
264 | 264 |
265 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, FX_BOOL bNext) const; | 265 CPDFSDK_Widget* GetSibling(CPDFSDK_Widget* pWidget, FX_BOOL bNext) const; |
266 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl) const; | 266 CPDFSDK_Widget* GetWidget(CPDF_FormControl* pControl, |
| 267 bool createIfNeeded) const; |
267 void GetWidgets(const CFX_WideString& sFieldName, | 268 void GetWidgets(const CFX_WideString& sFieldName, |
268 std::vector<CPDFSDK_Widget*>* widgets) const; | 269 std::vector<CPDFSDK_Widget*>* widgets) const; |
269 void GetWidgets(CPDF_FormField* pField, | 270 void GetWidgets(CPDF_FormField* pField, |
270 std::vector<CPDFSDK_Widget*>* widgets) const; | 271 std::vector<CPDFSDK_Widget*>* widgets) const; |
271 | 272 |
272 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget); | 273 void AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget); |
273 void RemoveMap(CPDF_FormControl* pControl); | 274 void RemoveMap(CPDF_FormControl* pControl); |
274 | 275 |
275 void EnableCalculate(FX_BOOL bEnabled); | 276 void EnableCalculate(FX_BOOL bEnabled); |
276 FX_BOOL IsCalculateEnabled() const; | 277 FX_BOOL IsCalculateEnabled() const; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 const CPDFSDK_Annot* p2); | 398 const CPDFSDK_Annot* p2); |
398 | 399 |
399 TabOrder m_eTabOrder; | 400 TabOrder m_eTabOrder; |
400 CPDFSDK_PageView* m_pPageView; | 401 CPDFSDK_PageView* m_pPageView; |
401 CFX_ByteString m_sType; | 402 CFX_ByteString m_sType; |
402 CFX_ByteString m_sSubType; | 403 CFX_ByteString m_sSubType; |
403 std::vector<CPDFSDK_Annot*> m_Annots; | 404 std::vector<CPDFSDK_Annot*> m_Annots; |
404 }; | 405 }; |
405 | 406 |
406 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ | 407 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ |
OLD | NEW |