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_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ |
8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ | 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 FX_BOOL bVert, | 93 FX_BOOL bVert, |
94 FX_BOOL bTranslateName = FALSE); | 94 FX_BOOL bTranslateName = FALSE); |
95 CPDF_Font* AddWindowsFont(LOGFONTW* pLogFont, | 95 CPDF_Font* AddWindowsFont(LOGFONTW* pLogFont, |
96 FX_BOOL bVert, | 96 FX_BOOL bVert, |
97 FX_BOOL bTranslateName = FALSE); | 97 FX_BOOL bTranslateName = FALSE); |
98 #endif | 98 #endif |
99 | 99 |
100 protected: | 100 protected: |
101 friend class CPDF_Creator; | 101 friend class CPDF_Creator; |
102 friend class CPDF_Parser; | 102 friend class CPDF_Parser; |
103 friend class CPDF_OCContext; | |
104 | 103 |
105 // Retrieve page count information by getting count value from the tree nodes | 104 // Retrieve page count information by getting count value from the tree nodes |
106 int RetrievePageCount() const; | 105 int RetrievePageCount() const; |
107 CPDF_Dictionary* FindPDFPage(CPDF_Dictionary* pPages, | 106 CPDF_Dictionary* FindPDFPage(CPDF_Dictionary* pPages, |
108 int iPage, | 107 int iPage, |
109 int nPagesToGo, | 108 int nPagesToGo, |
110 int level); | 109 int level); |
111 int FindPageIndex(CPDF_Dictionary* pNode, | 110 int FindPageIndex(CPDF_Dictionary* pNode, |
112 uint32_t& skip_count, | 111 uint32_t& skip_count, |
113 uint32_t objnum, | 112 uint32_t objnum, |
(...skipping 21 matching lines...) Expand all Loading... |
135 CPDF_Dictionary* pBaseDict, | 134 CPDF_Dictionary* pBaseDict, |
136 int charset, | 135 int charset, |
137 FX_BOOL bVert, | 136 FX_BOOL bVert, |
138 CFX_ByteString basefont, | 137 CFX_ByteString basefont, |
139 std::function<void(FX_WCHAR, FX_WCHAR, CPDF_Array*)> Insert); | 138 std::function<void(FX_WCHAR, FX_WCHAR, CPDF_Array*)> Insert); |
140 | 139 |
141 CFX_ArrayTemplate<uint32_t> m_PageList; | 140 CFX_ArrayTemplate<uint32_t> m_PageList; |
142 }; | 141 }; |
143 | 142 |
144 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ | 143 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ |
OLD | NEW |