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 <memory> | 10 #include <memory> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 FX_BOOL IsFormStream(uint32_t objnum, FX_BOOL& bForm) const; | 64 FX_BOOL IsFormStream(uint32_t objnum, FX_BOOL& bForm) const; |
65 | 65 |
66 // |pFontDict| must not be null. | 66 // |pFontDict| must not be null. |
67 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict); | 67 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict); |
68 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj, | 68 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj, |
69 CPDF_Dictionary* pResources = NULL); | 69 CPDF_Dictionary* pResources = NULL); |
70 | 70 |
71 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, | 71 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, |
72 FX_BOOL bShading, | 72 FX_BOOL bShading, |
73 const CFX_Matrix* matrix = NULL); | 73 const CFX_Matrix& matrix); |
74 | 74 |
75 CPDF_Image* LoadImageF(CPDF_Object* pObj); | 75 CPDF_Image* LoadImageF(CPDF_Object* pObj); |
76 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream); | 76 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream); |
77 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); | 77 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); |
78 | 78 |
79 void LoadDoc(); | 79 void LoadDoc(); |
80 void LoadAsynDoc(CPDF_Dictionary* pLinearized); | 80 void LoadAsynDoc(CPDF_Dictionary* pLinearized); |
81 void LoadPages(); | 81 void LoadPages(); |
82 | 82 |
83 // Editing methods. | 83 // Editing methods. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 bool m_bLinearized; | 127 bool m_bLinearized; |
128 int m_iFirstPageNo; | 128 int m_iFirstPageNo; |
129 uint32_t m_dwFirstPageObjNum; | 129 uint32_t m_dwFirstPageObjNum; |
130 CFX_ArrayTemplate<uint32_t> m_PageList; | 130 CFX_ArrayTemplate<uint32_t> m_PageList; |
131 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. | 131 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. |
132 CPDF_DocPageData* m_pDocPage; | 132 CPDF_DocPageData* m_pDocPage; |
133 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; | 133 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; |
134 }; | 134 }; |
135 | 135 |
136 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ | 136 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ |
OLD | NEW |