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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 CPDF_Dictionary* GetInfo() const { return m_pInfoDict; } | 45 CPDF_Dictionary* GetInfo() const { return m_pInfoDict; } |
46 | 46 |
47 void GetID(CFX_ByteString& id1, CFX_ByteString& id2) const { | 47 void GetID(CFX_ByteString& id1, CFX_ByteString& id2) const { |
48 id1 = m_ID1; | 48 id1 = m_ID1; |
49 id2 = m_ID2; | 49 id2 = m_ID2; |
50 } | 50 } |
51 | 51 |
52 int GetPageCount() const; | 52 int GetPageCount() const; |
53 CPDF_Dictionary* GetPage(int iPage); | 53 CPDF_Dictionary* GetPage(int iPage); |
54 int GetPageIndex(uint32_t objnum); | 54 int GetPageIndex(uint32_t objnum); |
55 uint32_t GetUserPermissions(FX_BOOL bCheckRevision = FALSE) const; | 55 uint32_t GetUserPermissions() const; |
56 CPDF_DocPageData* GetPageData() const { return m_pDocPage; } | 56 CPDF_DocPageData* GetPageData() const { return m_pDocPage; } |
57 void ClearPageData(); | 57 void ClearPageData(); |
58 void RemoveColorSpaceFromPageData(CPDF_Object* pObject); | 58 void RemoveColorSpaceFromPageData(CPDF_Object* pObject); |
59 | 59 |
60 CPDF_DocRenderData* GetRenderData() const { return m_pDocRender.get(); } | 60 CPDF_DocRenderData* GetRenderData() const { return m_pDocRender.get(); } |
61 void ClearRenderData(); | 61 void ClearRenderData(); |
62 void ClearRenderFont(); | 62 void ClearRenderFont(); |
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 |
(...skipping 61 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 |