| 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 CORE_FPDFDOC_CPDF_INTERFORM_H_ | 7 #ifndef CORE_FPDFDOC_CPDF_INTERFORM_H_ |
| 8 #define CORE_FPDFDOC_CPDF_INTERFORM_H_ | 8 #define CORE_FPDFDOC_CPDF_INTERFORM_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 int FindFieldInCalculationOrder(const CPDF_FormField* pField); | 66 int FindFieldInCalculationOrder(const CPDF_FormField* pField); |
| 67 | 67 |
| 68 CPDF_Font* GetFormFont(CFX_ByteString csNameTag); | 68 CPDF_Font* GetFormFont(CFX_ByteString csNameTag); |
| 69 CPDF_DefaultAppearance GetDefaultAppearance() const; | 69 CPDF_DefaultAppearance GetDefaultAppearance() const; |
| 70 int GetFormAlignment() const; | 70 int GetFormAlignment() const; |
| 71 | 71 |
| 72 CPDF_FormField* CheckRequiredFields( | 72 CPDF_FormField* CheckRequiredFields( |
| 73 const std::vector<CPDF_FormField*>* fields, | 73 const std::vector<CPDF_FormField*>* fields, |
| 74 bool bIncludeOrExclude) const; | 74 bool bIncludeOrExclude) const; |
| 75 | 75 |
| 76 CFDF_Document* ExportToFDF(const CFX_WideStringC& pdf_path, | 76 std::unique_ptr<CFDF_Document> ExportToFDF(const CFX_WideStringC& pdf_path, |
| 77 bool bSimpleFileSpec) const; | 77 bool bSimpleFileSpec) const; |
| 78 CFDF_Document* ExportToFDF(const CFX_WideStringC& pdf_path, | 78 |
| 79 const std::vector<CPDF_FormField*>& fields, | 79 std::unique_ptr<CFDF_Document> ExportToFDF( |
| 80 bool bIncludeOrExclude, | 80 const CFX_WideStringC& pdf_path, |
| 81 bool bSimpleFileSpec) const; | 81 const std::vector<CPDF_FormField*>& fields, |
| 82 bool bIncludeOrExclude, |
| 83 bool bSimpleFileSpec) const; |
| 82 | 84 |
| 83 bool ResetForm(const std::vector<CPDF_FormField*>& fields, | 85 bool ResetForm(const std::vector<CPDF_FormField*>& fields, |
| 84 bool bIncludeOrExclude, | 86 bool bIncludeOrExclude, |
| 85 bool bNotify); | 87 bool bNotify); |
| 86 bool ResetForm(bool bNotify); | 88 bool ResetForm(bool bNotify); |
| 87 | 89 |
| 88 void SetFormNotify(IPDF_FormNotify* pNotify); | 90 void SetFormNotify(IPDF_FormNotify* pNotify); |
| 89 bool HasXFAForm() const; | 91 bool HasXFAForm() const; |
| 90 void FixPageFields(const CPDF_Page* pPage); | 92 void FixPageFields(const CPDF_Page* pPage); |
| 91 | 93 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 110 | 112 |
| 111 CPDF_Document* const m_pDocument; | 113 CPDF_Document* const m_pDocument; |
| 112 CPDF_Dictionary* m_pFormDict; | 114 CPDF_Dictionary* m_pFormDict; |
| 113 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap; | 115 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap; |
| 114 std::unique_ptr<CFieldTree> m_pFieldTree; | 116 std::unique_ptr<CFieldTree> m_pFieldTree; |
| 115 CFX_ByteString m_bsEncoding; | 117 CFX_ByteString m_bsEncoding; |
| 116 IPDF_FormNotify* m_pFormNotify; | 118 IPDF_FormNotify* m_pFormNotify; |
| 117 }; | 119 }; |
| 118 | 120 |
| 119 #endif // CORE_FPDFDOC_CPDF_INTERFORM_H_ | 121 #endif // CORE_FPDFDOC_CPDF_INTERFORM_H_ |
| OLD | NEW |