| 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_PARSER_CPDF_DOCUMENT_H_ | 7 #ifndef CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ |
| 8 #define CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ | 8 #define CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // |pFontDict| must not be null. | 75 // |pFontDict| must not be null. |
| 76 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict); | 76 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict); |
| 77 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj, | 77 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj, |
| 78 CPDF_Dictionary* pResources = nullptr); | 78 CPDF_Dictionary* pResources = nullptr); |
| 79 | 79 |
| 80 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, | 80 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, |
| 81 bool bShading, | 81 bool bShading, |
| 82 const CFX_Matrix& matrix); | 82 const CFX_Matrix& matrix); |
| 83 | 83 |
| 84 CPDF_Image* LoadImageF(CPDF_Object* pObj); | 84 CPDF_Image* LoadImageFromPageData(uint32_t dwStreamObjNum); |
| 85 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream); | 85 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream); |
| 86 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); | 86 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); |
| 87 | 87 |
| 88 void LoadDoc(); | 88 void LoadDoc(); |
| 89 void LoadLinearizedDoc(const CPDF_LinearizedHeader* pLinearizationParams); | 89 void LoadLinearizedDoc(const CPDF_LinearizedHeader* pLinearizationParams); |
| 90 void LoadPages(); | 90 void LoadPages(); |
| 91 | 91 |
| 92 void CreateNewDoc(); | 92 void CreateNewDoc(); |
| 93 CPDF_Dictionary* CreateNewPage(int iPage); | 93 CPDF_Dictionary* CreateNewPage(int iPage); |
| 94 | 94 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. | 147 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. |
| 148 CPDF_DocPageData* m_pDocPage; | 148 CPDF_DocPageData* m_pDocPage; |
| 149 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; | 149 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; |
| 150 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; | 150 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; |
| 151 std::unique_ptr<CPDF_LinkList> m_pLinksContext; | 151 std::unique_ptr<CPDF_LinkList> m_pLinksContext; |
| 152 CFX_ArrayTemplate<uint32_t> m_PageList; | 152 CFX_ArrayTemplate<uint32_t> m_PageList; |
| 153 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool; | 153 CFX_WeakPtr<CFX_ByteStringPool> m_pByteStringPool; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ | 156 #endif // CORE_FPDFAPI_PARSER_CPDF_DOCUMENT_H_ |
| OLD | NEW |