Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: core/fpdfapi/fpdf_parser/include/cpdf_document.h

Issue 1832173003: Remove FX_DWORD from core/ and delete definition (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 CPDF_Dictionary* GetRoot() const { return m_pRootDict; } 43 CPDF_Dictionary* GetRoot() const { return m_pRootDict; }
44 CPDF_Dictionary* GetInfo() const { return m_pInfoDict; } 44 CPDF_Dictionary* GetInfo() const { return m_pInfoDict; }
45 45
46 void GetID(CFX_ByteString& id1, CFX_ByteString& id2) const { 46 void GetID(CFX_ByteString& id1, CFX_ByteString& id2) const {
47 id1 = m_ID1; 47 id1 = m_ID1;
48 id2 = m_ID2; 48 id2 = m_ID2;
49 } 49 }
50 50
51 int GetPageCount() const; 51 int GetPageCount() const;
52 CPDF_Dictionary* GetPage(int iPage); 52 CPDF_Dictionary* GetPage(int iPage);
53 int GetPageIndex(FX_DWORD objnum); 53 int GetPageIndex(uint32_t objnum);
54 FX_DWORD GetUserPermissions(FX_BOOL bCheckRevision = FALSE) const; 54 uint32_t GetUserPermissions(FX_BOOL bCheckRevision = FALSE) const;
55 CPDF_DocPageData* GetPageData() { return GetValidatePageData(); } 55 CPDF_DocPageData* GetPageData() { return GetValidatePageData(); }
56 void ClearPageData(); 56 void ClearPageData();
57 void RemoveColorSpaceFromPageData(CPDF_Object* pObject); 57 void RemoveColorSpaceFromPageData(CPDF_Object* pObject);
58 58
59 CPDF_DocRenderData* GetRenderData() { return GetValidateRenderData(); } 59 CPDF_DocRenderData* GetRenderData() { return GetValidateRenderData(); }
60 void ClearRenderData(); 60 void ClearRenderData();
61 void ClearRenderFont(); 61 void ClearRenderFont();
62 62
63 FX_BOOL IsFormStream(FX_DWORD objnum, FX_BOOL& bForm) const; 63 FX_BOOL IsFormStream(uint32_t objnum, FX_BOOL& bForm) const;
64 64
65 // |pFontDict| must not be null. 65 // |pFontDict| must not be null.
66 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict); 66 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict);
67 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj, 67 CPDF_ColorSpace* LoadColorSpace(CPDF_Object* pCSObj,
68 CPDF_Dictionary* pResources = NULL); 68 CPDF_Dictionary* pResources = NULL);
69 69
70 CPDF_Pattern* LoadPattern(CPDF_Object* pObj, 70 CPDF_Pattern* LoadPattern(CPDF_Object* pObj,
71 FX_BOOL bShading, 71 FX_BOOL bShading,
72 const CFX_Matrix* matrix = NULL); 72 const CFX_Matrix* matrix = NULL);
73 73
(...skipping 29 matching lines...) Expand all
103 103
104 protected: 104 protected:
105 // Retrieve page count information by getting count value from the tree nodes 105 // Retrieve page count information by getting count value from the tree nodes
106 // or walking through the tree nodes to calculate it. 106 // or walking through the tree nodes to calculate it.
107 int RetrievePageCount() const; 107 int RetrievePageCount() const;
108 CPDF_Dictionary* _FindPDFPage(CPDF_Dictionary* pPages, 108 CPDF_Dictionary* _FindPDFPage(CPDF_Dictionary* pPages,
109 int iPage, 109 int iPage,
110 int nPagesToGo, 110 int nPagesToGo,
111 int level); 111 int level);
112 int _FindPageIndex(CPDF_Dictionary* pNode, 112 int _FindPageIndex(CPDF_Dictionary* pNode,
113 FX_DWORD& skip_count, 113 uint32_t& skip_count,
114 FX_DWORD objnum, 114 uint32_t objnum,
115 int& index, 115 int& index,
116 int level = 0); 116 int level = 0);
117 FX_BOOL CheckOCGVisible(CPDF_Dictionary* pOCG, FX_BOOL bPrinting); 117 FX_BOOL CheckOCGVisible(CPDF_Dictionary* pOCG, FX_BOOL bPrinting);
118 CPDF_DocPageData* GetValidatePageData(); 118 CPDF_DocPageData* GetValidatePageData();
119 CPDF_DocRenderData* GetValidateRenderData(); 119 CPDF_DocRenderData* GetValidateRenderData();
120 friend class CPDF_Creator; 120 friend class CPDF_Creator;
121 friend class CPDF_Parser; 121 friend class CPDF_Parser;
122 friend class CPDF_DataAvail; 122 friend class CPDF_DataAvail;
123 friend class CPDF_OCContext; 123 friend class CPDF_OCContext;
124 124
125 CPDF_Dictionary* m_pRootDict; 125 CPDF_Dictionary* m_pRootDict;
126 CPDF_Dictionary* m_pInfoDict; 126 CPDF_Dictionary* m_pInfoDict;
127 CFX_ByteString m_ID1; 127 CFX_ByteString m_ID1;
128 CFX_ByteString m_ID2; 128 CFX_ByteString m_ID2;
129 FX_BOOL m_bLinearized; 129 FX_BOOL m_bLinearized;
130 FX_DWORD m_dwFirstPageNo; 130 uint32_t m_dwFirstPageNo;
131 FX_DWORD m_dwFirstPageObjNum; 131 uint32_t m_dwFirstPageObjNum;
132 CFX_ArrayTemplate<FX_DWORD> m_PageList; 132 CFX_ArrayTemplate<uint32_t> m_PageList;
133 CPDF_DocPageData* m_pDocPage; 133 CPDF_DocPageData* m_pDocPage;
134 CPDF_DocRenderData* m_pDocRender; 134 CPDF_DocRenderData* m_pDocRender;
135 }; 135 };
136 136
137 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_ 137 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_DOCUMENT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h ('k') | core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698