| 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_INCLUDE_CPDF_INTERFORM_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_INTERFORM_H_ |
| 8 #define CORE_FPDFDOC_INCLUDE_CPDF_INTERFORM_H_ | 8 #define CORE_FPDFDOC_INCLUDE_CPDF_INTERFORM_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h" | 14 #include "core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h" |
| 15 #include "core/fpdfdoc/include/cpdf_defaultappearance.h" | 15 #include "core/fpdfdoc/include/cpdf_defaultappearance.h" |
| 16 #include "core/fxcrt/include/fx_string.h" | 16 #include "core/fxcrt/include/fx_string.h" |
| 17 #include "core/fxcrt/include/fx_system.h" | 17 #include "core/fxcrt/include/fx_system.h" |
| 18 | 18 |
| 19 class CFieldTree; | 19 class CFieldTree; |
| 20 class CFDF_Document; | 20 class CFDF_Document; |
| 21 class CPDF_Document; | 21 class CPDF_Document; |
| 22 class CPDF_Dictionary; | 22 class CPDF_Dictionary; |
| 23 class CPDF_Font; | 23 class CPDF_Font; |
| 24 class CPDF_FormControl; | 24 class CPDF_FormControl; |
| 25 class CPDF_FormField; | 25 class CPDF_FormField; |
| 26 class CPDF_Object; | 26 class CPDF_Object; |
| 27 class CPDF_Page; | 27 class CPDF_Page; |
| 28 class IPDF_FormNotify; | 28 class IPDF_FormNotify; |
| 29 | 29 |
| 30 CPDF_Font* AddNativeInterFormFont(CPDF_Dictionary*& pFormDict, |
| 31 CPDF_Document* pDocument, |
| 32 CFX_ByteString& csNameTag); |
| 33 |
| 30 class CPDF_InterForm { | 34 class CPDF_InterForm { |
| 31 public: | 35 public: |
| 32 explicit CPDF_InterForm(CPDF_Document* pDocument); | 36 explicit CPDF_InterForm(CPDF_Document* pDocument); |
| 33 ~CPDF_InterForm(); | 37 ~CPDF_InterForm(); |
| 34 | 38 |
| 35 static void SetUpdateAP(FX_BOOL bUpdateAP); | 39 static void SetUpdateAP(FX_BOOL bUpdateAP); |
| 36 static FX_BOOL IsUpdateAPEnabled(); | 40 static FX_BOOL IsUpdateAPEnabled(); |
| 37 static CFX_ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict, | 41 static CFX_ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict, |
| 38 const FX_CHAR* csType, | 42 const FX_CHAR* csType, |
| 39 int iMinLen = 2, | 43 int iMinLen = 2, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 150 |
| 147 CPDF_Document* const m_pDocument; | 151 CPDF_Document* const m_pDocument; |
| 148 CPDF_Dictionary* m_pFormDict; | 152 CPDF_Dictionary* m_pFormDict; |
| 149 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap; | 153 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap; |
| 150 std::unique_ptr<CFieldTree> m_pFieldTree; | 154 std::unique_ptr<CFieldTree> m_pFieldTree; |
| 151 CFX_ByteString m_bsEncoding; | 155 CFX_ByteString m_bsEncoding; |
| 152 IPDF_FormNotify* m_pFormNotify; | 156 IPDF_FormNotify* m_pFormNotify; |
| 153 }; | 157 }; |
| 154 | 158 |
| 155 #endif // CORE_FPDFDOC_INCLUDE_CPDF_INTERFORM_H_ | 159 #endif // CORE_FPDFDOC_INCLUDE_CPDF_INTERFORM_H_ |
| OLD | NEW |