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_FPDFDOC_DOC_UTILS_H_ | 7 #ifndef CORE_FPDFDOC_DOC_UTILS_H_ |
8 #define CORE_FPDFDOC_DOC_UTILS_H_ | 8 #define CORE_FPDFDOC_DOC_UTILS_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "core/include/fpdfapi/cpdf_parser.h" | 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h" |
13 #include "core/include/fpdfapi/fpdf_resource.h" | 13 #include "core/include/fpdfapi/fpdf_resource.h" |
14 | 14 |
15 class CPDF_Dictionary; | 15 class CPDF_Dictionary; |
16 class CPDF_FormField; | 16 class CPDF_FormField; |
17 | 17 |
18 class CPDF_NumberTree { | 18 class CPDF_NumberTree { |
19 public: | 19 public: |
20 CPDF_NumberTree(CPDF_Dictionary* pRoot) : m_pRoot(pRoot) {} | 20 CPDF_NumberTree(CPDF_Dictionary* pRoot) : m_pRoot(pRoot) {} |
21 CPDF_Object* LookupValue(int num) const; | 21 CPDF_Object* LookupValue(int num) const; |
22 | 22 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void SetDefaultInterFormFont(CPDF_Dictionary*& pFormDict, | 71 void SetDefaultInterFormFont(CPDF_Dictionary*& pFormDict, |
72 CPDF_Document* pDocument, | 72 CPDF_Document* pDocument, |
73 const CPDF_Font* pFont); | 73 const CPDF_Font* pFont); |
74 std::vector<bool> SaveCheckedFieldStatus(CPDF_FormField* pField); | 74 std::vector<bool> SaveCheckedFieldStatus(CPDF_FormField* pField); |
75 FX_BOOL NeedPDFEncodeForFieldFullName(const CFX_WideString& csFieldName); | 75 FX_BOOL NeedPDFEncodeForFieldFullName(const CFX_WideString& csFieldName); |
76 FX_BOOL NeedPDFEncodeForFieldTree(CPDF_Dictionary* pFieldDict, int nLevel = 0); | 76 FX_BOOL NeedPDFEncodeForFieldTree(CPDF_Dictionary* pFieldDict, int nLevel = 0); |
77 void EncodeFieldName(const CFX_WideString& csName, CFX_ByteString& csT); | 77 void EncodeFieldName(const CFX_WideString& csName, CFX_ByteString& csT); |
78 void UpdateEncodeFieldName(CPDF_Dictionary* pFieldDict, int nLevel = 0); | 78 void UpdateEncodeFieldName(CPDF_Dictionary* pFieldDict, int nLevel = 0); |
79 | 79 |
80 #endif // CORE_FPDFDOC_DOC_UTILS_H_ | 80 #endif // CORE_FPDFDOC_DOC_UTILS_H_ |
OLD | NEW |