| OLD | NEW |
| 1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 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_SRC_FPDFDOC_DOC_UTILS_H_ | 7 #ifndef CORE_SRC_FPDFDOC_DOC_UTILS_H_ |
| 8 #define CORE_SRC_FPDFDOC_DOC_UTILS_H_ | 8 #define CORE_SRC_FPDFDOC_DOC_UTILS_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 class CPDF_Dictionary; |
| 13 class CPDF_FormField; |
| 14 |
| 15 class CPDF_NumberTree { |
| 16 public: |
| 17 CPDF_NumberTree(CPDF_Dictionary* pRoot) : m_pRoot(pRoot) {} |
| 18 CPDF_Object* LookupValue(int num) const; |
| 19 |
| 20 protected: |
| 21 CPDF_Dictionary* const m_pRoot; |
| 22 }; |
| 23 |
| 12 CFX_WideString GetFullName(CPDF_Dictionary* pFieldDict); | 24 CFX_WideString GetFullName(CPDF_Dictionary* pFieldDict); |
| 13 void InitInterFormDict(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument); | 25 void InitInterFormDict(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument); |
| 14 FX_DWORD CountInterFormFonts(CPDF_Dictionary* pFormDict); | 26 FX_DWORD CountInterFormFonts(CPDF_Dictionary* pFormDict); |
| 15 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, | 27 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, |
| 16 CPDF_Document* pDocument, | 28 CPDF_Document* pDocument, |
| 17 FX_DWORD index, | 29 FX_DWORD index, |
| 18 CFX_ByteString& csNameTag); | 30 CFX_ByteString& csNameTag); |
| 19 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, | 31 CPDF_Font* GetInterFormFont(CPDF_Dictionary* pFormDict, |
| 20 CPDF_Document* pDocument, | 32 CPDF_Document* pDocument, |
| 21 CFX_ByteString csNameTag); | 33 CFX_ByteString csNameTag); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 void SetDefaultInterFormFont(CPDF_Dictionary*& pFormDict, | 68 void SetDefaultInterFormFont(CPDF_Dictionary*& pFormDict, |
| 57 CPDF_Document* pDocument, | 69 CPDF_Document* pDocument, |
| 58 const CPDF_Font* pFont); | 70 const CPDF_Font* pFont); |
| 59 std::vector<bool> SaveCheckedFieldStatus(CPDF_FormField* pField); | 71 std::vector<bool> SaveCheckedFieldStatus(CPDF_FormField* pField); |
| 60 FX_BOOL NeedPDFEncodeForFieldFullName(const CFX_WideString& csFieldName); | 72 FX_BOOL NeedPDFEncodeForFieldFullName(const CFX_WideString& csFieldName); |
| 61 FX_BOOL NeedPDFEncodeForFieldTree(CPDF_Dictionary* pFieldDict, int nLevel = 0); | 73 FX_BOOL NeedPDFEncodeForFieldTree(CPDF_Dictionary* pFieldDict, int nLevel = 0); |
| 62 void EncodeFieldName(const CFX_WideString& csName, CFX_ByteString& csT); | 74 void EncodeFieldName(const CFX_WideString& csName, CFX_ByteString& csT); |
| 63 void UpdateEncodeFieldName(CPDF_Dictionary* pFieldDict, int nLevel = 0); | 75 void UpdateEncodeFieldName(CPDF_Dictionary* pFieldDict, int nLevel = 0); |
| 64 | 76 |
| 65 #endif // CORE_SRC_FPDFDOC_DOC_UTILS_H_ | 77 #endif // CORE_SRC_FPDFDOC_DOC_UTILS_H_ |
| OLD | NEW |