Chromium Code Reviews| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 | 77 |
| 78 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, | 78 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, |
| 79 FX_BOOL bShading, | 79 FX_BOOL bShading, |
| 80 const CFX_Matrix& matrix); | 80 const CFX_Matrix& matrix); |
| 81 | 81 |
| 82 CPDF_Image* LoadImageF(CPDF_Object* pObj); | 82 CPDF_Image* LoadImageF(CPDF_Object* pObj); |
| 83 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream); | 83 CPDF_StreamAcc* LoadFontFile(CPDF_Stream* pStream); |
| 84 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); | 84 CPDF_IccProfile* LoadIccProfile(CPDF_Stream* pStream); |
| 85 | 85 |
| 86 void LoadDoc(); | 86 void LoadDoc(); |
| 87 void LoadAsynDoc(CPDF_Dictionary* pLinearized); | 87 void LoadLinearizedDoc(CPDF_Dictionary* pLinearized); |
|
Tom Sepez
2016/08/16 18:08:01
nit: pLinearized also should get renamed, sounds t
dsinclair
2016/08/16 18:28:18
Done.
| |
| 88 void LoadPages(); | 88 void LoadPages(); |
| 89 | 89 |
| 90 // Editing methods. | 90 // Editing methods. |
| 91 void CreateNewDoc(); | 91 void CreateNewDoc(); |
| 92 CPDF_Dictionary* CreateNewPage(int iPage); | 92 CPDF_Dictionary* CreateNewPage(int iPage); |
| 93 void DeletePage(int iPage); | 93 void DeletePage(int iPage); |
| 94 CPDF_Font* AddStandardFont(const FX_CHAR* font, CPDF_FontEncoding* pEncoding); | 94 CPDF_Font* AddStandardFont(const FX_CHAR* font, CPDF_FontEncoding* pEncoding); |
| 95 CPDF_Font* AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert); | 95 CPDF_Font* AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert); |
| 96 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 96 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
| 97 CPDF_Font* AddWindowsFont(LOGFONTA* pLogFont, | 97 CPDF_Font* AddWindowsFont(LOGFONTA* pLogFont, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 CFX_ByteString m_ID2; | 132 CFX_ByteString m_ID2; |
| 133 bool m_bLinearized; | 133 bool m_bLinearized; |
| 134 int m_iFirstPageNo; | 134 int m_iFirstPageNo; |
| 135 uint32_t m_dwFirstPageObjNum; | 135 uint32_t m_dwFirstPageObjNum; |
| 136 CFX_ArrayTemplate<uint32_t> m_PageList; | 136 CFX_ArrayTemplate<uint32_t> m_PageList; |
| 137 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. | 137 // TODO(thestig): Figure out why this cannot be a std::unique_ptr. |
| 138 CPDF_DocPageData* m_pDocPage; | 138 CPDF_DocPageData* m_pDocPage; |
| 139 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; | 139 std::unique_ptr<CPDF_DocRenderData> m_pDocRender; |
| 140 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; | 140 std::unique_ptr<JBig2_DocumentContext> m_pCodecContext; |
| 141 std::unique_ptr<CPDF_LinkList> m_pLinksContext; | 141 std::unique_ptr<CPDF_LinkList> m_pLinksContext; |
| 142 | |
| 143 private: | |
| 144 void LoadDocInternal(); | |
| 142 }; | 145 }; |
| 143 | 146 |
| 144 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ | 147 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ |
| OLD | NEW |