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

Side by Side Diff: core/include/fpdfapi/fpdf_serial.h

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 years, 5 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
« no previous file with comments | « core/include/fpdfapi/fpdf_resource.h ('k') | core/include/fpdfdoc/fpdf_ap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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_INCLUDE_FPDFAPI_FPDF_SERIAL_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_
9 9
10 #include "fpdf_page.h" 10 #include "fpdf_page.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 class CPDF_Creator 114 class CPDF_Creator
115 { 115 {
116 public: 116 public:
117 117
118 CPDF_Creator(CPDF_Document* pDoc); 118 CPDF_Creator(CPDF_Document* pDoc);
119 119
120 ~CPDF_Creator(); 120 ~CPDF_Creator();
121 121
122 void RemoveSecurity(); 122 void RemoveSecurity();
123 123
124 FX_BOOL» » » » Create(const FX_WCHAR* filename, FX_DWOR D flags = 0); 124 bool» » » » Create(const FX_WCHAR* filename, FX_DWOR D flags = 0);
125 125
126 FX_BOOL» » » » Create(const FX_CHAR* filename, FX_DWORD flags = 0); 126 bool» » » » Create(const FX_CHAR* filename, FX_DWORD flags = 0);
127 127
128 FX_BOOL» » » » Create(IFX_StreamWrite* pFile, FX_DWORD flags = 0); 128 bool» » » » Create(IFX_StreamWrite* pFile, FX_DWORD flags = 0);
129 129
130 int32_t Continue(IFX_Pause *pPause = NULL); 130 int32_t Continue(IFX_Pause *pPause = NULL);
131 131
132 FX_BOOL» » » » SetFileVersion(int32_t fileVersion = 17) ; 132 bool» » » » SetFileVersion(int32_t fileVersion = 17) ;
133 protected: 133 protected:
134 134
135 CPDF_Document* m_pDocument; 135 CPDF_Document* m_pDocument;
136 136
137 CPDF_Parser* m_pParser; 137 CPDF_Parser* m_pParser;
138 138
139 FX_BOOL» » » » m_bCompress; 139 bool» » » » m_bCompress;
140 140
141 FX_BOOL» » » » m_bSecurityChanged; 141 bool» » » » m_bSecurityChanged;
142 142
143 CPDF_Dictionary* m_pEncryptDict; 143 CPDF_Dictionary* m_pEncryptDict;
144 FX_DWORD m_dwEnryptObjNum; 144 FX_DWORD m_dwEnryptObjNum;
145 FX_BOOL» » » » m_bEncryptCloned; 145 bool» » » » m_bEncryptCloned;
146 146
147 FX_BOOL» » » » m_bStandardSecurity; 147 bool» » » » m_bStandardSecurity;
148 148
149 CPDF_CryptoHandler* m_pCryptoHandler; 149 CPDF_CryptoHandler* m_pCryptoHandler;
150 FX_BOOL» » » » m_bNewCrypto; 150 bool» » » » m_bNewCrypto;
151 151
152 FX_BOOL» » » » m_bEncryptMetadata; 152 bool» » » » m_bEncryptMetadata;
153 153
154 CPDF_Object* m_pMetadata; 154 CPDF_Object* m_pMetadata;
155 155
156 CPDF_XRefStream* m_pXRefStream; 156 CPDF_XRefStream* m_pXRefStream;
157 157
158 int32_t m_ObjectStreamSize; 158 int32_t m_ObjectStreamSize;
159 159
160 FX_DWORD m_dwLastObjNum; 160 FX_DWORD m_dwLastObjNum;
161 FX_BOOL» » » » Create(FX_DWORD flags); 161 bool» » » » Create(FX_DWORD flags);
162 void ResetStandardSecurity(); 162 void ResetStandardSecurity();
163 void Clear(); 163 void Clear();
164 int32_t WriteDoc_Stage1(IFX_Pause *pPause); 164 int32_t WriteDoc_Stage1(IFX_Pause *pPause);
165 int32_t WriteDoc_Stage2(IFX_Pause *pPause); 165 int32_t WriteDoc_Stage2(IFX_Pause *pPause);
166 int32_t WriteDoc_Stage3(IFX_Pause *pPause); 166 int32_t WriteDoc_Stage3(IFX_Pause *pPause);
167 int32_t WriteDoc_Stage4(IFX_Pause *pPause); 167 int32_t WriteDoc_Stage4(IFX_Pause *pPause);
168 168
169 CFX_FileBufferArchive m_File; 169 CFX_FileBufferArchive m_File;
170 170
171 FX_FILESIZE m_Offset; 171 FX_FILESIZE m_Offset;
172 void InitOldObjNumOffsets(); 172 void InitOldObjNumOffsets();
173 void InitNewObjNumOffsets(); 173 void InitNewObjNumOffsets();
174 void AppendNewObjNum(FX_DWORD objbum); 174 void AppendNewObjNum(FX_DWORD objbum);
175 int32_t WriteOldIndirectObject(FX_DWORD objnum); 175 int32_t WriteOldIndirectObject(FX_DWORD objnum);
176 int32_t WriteOldObjs(IFX_Pause *pPause); 176 int32_t WriteOldObjs(IFX_Pause *pPause);
177 int32_t» » » WriteNewObjs(FX_BOOL bIncremental, IFX_Pause *pP ause); 177 int32_t» » » WriteNewObjs(bool bIncremental, IFX_Pause *pPaus e);
178 int32_t WriteIndirectObj(const CPDF_Object* pObj); 178 int32_t WriteIndirectObj(const CPDF_Object* pObj);
179 int32_t» » » WriteDirectObj(FX_DWORD objnum, const CPDF_Objec t* pObj, FX_BOOL bEncrypt = TRUE); 179 int32_t» » » WriteDirectObj(FX_DWORD objnum, const CPDF_Objec t* pObj, bool bEncrypt = true);
180 int32_t WriteIndirectObjectToStream(const CPDF_Object* p Obj); 180 int32_t WriteIndirectObjectToStream(const CPDF_Object* p Obj);
181 int32_t WriteIndirectObj(FX_DWORD objnum, const CPDF_Obj ect* pObj); 181 int32_t WriteIndirectObj(FX_DWORD objnum, const CPDF_Obj ect* pObj);
182 int32_t WriteIndirectObjectToStream(FX_DWORD objnum, con st uint8_t* pBuffer, FX_DWORD dwSize); 182 int32_t WriteIndirectObjectToStream(FX_DWORD objnum, con st uint8_t* pBuffer, FX_DWORD dwSize);
183 int32_t AppendObjectNumberToXRef(FX_DWORD objnum); 183 int32_t AppendObjectNumberToXRef(FX_DWORD objnum);
184 void» » » » InitID(FX_BOOL bDefault = TRUE); 184 void» » » » InitID(bool bDefault = true);
185 int32_t WriteStream(const CPDF_Object* pStream, FX_DWORD objnum, CPDF_CryptoHandler* pCrypto); 185 int32_t WriteStream(const CPDF_Object* pStream, FX_DWORD objnum, CPDF_CryptoHandler* pCrypto);
186 186
187 int32_t m_iStage; 187 int32_t m_iStage;
188 FX_DWORD m_dwFlags; 188 FX_DWORD m_dwFlags;
189 FX_POSITION m_Pos; 189 FX_POSITION m_Pos;
190 FX_FILESIZE m_XrefStart; 190 FX_FILESIZE m_XrefStart;
191 191
192 CFX_FileSizeListArray m_ObjectOffset; 192 CFX_FileSizeListArray m_ObjectOffset;
193 193
194 CFX_DWordListArray m_ObjectSize; 194 CFX_DWordListArray m_ObjectSize;
195 CFX_DWordArray m_NewObjNumArray; 195 CFX_DWordArray m_NewObjNumArray;
196 196
197 CPDF_Array* m_pIDArray; 197 CPDF_Array* m_pIDArray;
198 198
199 int32_t m_FileVersion; 199 int32_t m_FileVersion;
200 friend class CPDF_ObjectStream; 200 friend class CPDF_ObjectStream;
201 friend class CPDF_XRefStream; 201 friend class CPDF_XRefStream;
202 }; 202 };
203 203
204 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_ 204 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_resource.h ('k') | core/include/fpdfdoc/fpdf_ap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698