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 <memory> | 11 #include <memory> |
11 | 12 |
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h" | 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h" |
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" | 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" |
14 #include "core/fpdfdoc/include/cpdf_linklist.h" | 15 #include "core/fpdfdoc/include/cpdf_linklist.h" |
15 #include "core/fxcrt/include/fx_basic.h" | 16 #include "core/fxcrt/include/fx_basic.h" |
16 | 17 |
17 class CFX_Font; | 18 class CFX_Font; |
18 class CFX_Matrix; | 19 class CFX_Matrix; |
19 class CPDF_ColorSpace; | 20 class CPDF_ColorSpace; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. | 122 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. |
122 CPDF_DocPageData* m_pDocPage; | 123 CPDF_DocPageData* m_pDocPage; |
123 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; | 124 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; |
124 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; | 125 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; |
125 std::unique_ptr<CPDF_LinkList> m_pLinksContext; | 126 std::unique_ptr<CPDF_LinkList> m_pLinksContext; |
126 | 127 |
127 private: | 128 private: |
128 void LoadDocInternal(); | 129 void LoadDocInternal(); |
129 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict); | 130 size_t CalculateEncodingDict(int charset, CPDF_Dictionary* pBaseDict); |
130 CPDF_Dictionary* GetPagesDict() const; | 131 CPDF_Dictionary* GetPagesDict() const; |
| 132 CPDF_Dictionary* ProcessbCJK( |
| 133 CPDF_Dictionary* pBaseDict, |
| 134 int charset, |
| 135 FX_BOOL bVert, |
| 136 CFX_ByteString basefont, |
| 137 std::function<void(FX_WCHAR, FX_WCHAR, CPDF_Array*)> Insert); |
131 }; | 138 }; |
132 | 139 |
133 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ | 140 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ |
OLD | NEW |