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

Side by Side Diff: core/fpdfapi/fpdf_edit/editint.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 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_FPDFAPI_FPDF_EDIT_EDITINT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_EDIT_EDITINT_H_
8 #define CORE_FPDFAPI_FPDF_EDIT_EDITINT_H_ 8 #define CORE_FPDFAPI_FPDF_EDIT_EDITINT_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "core/fxcrt/include/fx_basic.h" 12 #include "core/fxcrt/include/fx_basic.h"
13 #include "core/fxcrt/include/fx_stream.h" 13 #include "core/fxcrt/include/fx_stream.h"
14 #include "core/fxcrt/include/fx_system.h" 14 #include "core/fxcrt/include/fx_system.h"
15 15
16 class CPDF_Creator; 16 class CPDF_Creator;
17 class CPDF_Object; 17 class CPDF_Object;
18 18
19 class CPDF_ObjectStream { 19 class CPDF_ObjectStream {
20 public: 20 public:
21 CPDF_ObjectStream(); 21 CPDF_ObjectStream();
22 22
23 FX_BOOL Start(); 23 FX_BOOL Start();
24 24
25 int32_t CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object* pObj); 25 int32_t CompressIndirectObject(uint32_t dwObjNum, const CPDF_Object* pObj);
26 int32_t CompressIndirectObject(FX_DWORD dwObjNum, 26 int32_t CompressIndirectObject(uint32_t dwObjNum,
27 const uint8_t* pBuffer, 27 const uint8_t* pBuffer,
28 FX_DWORD dwSize); 28 uint32_t dwSize);
29 29
30 FX_FILESIZE End(CPDF_Creator* pCreator); 30 FX_FILESIZE End(CPDF_Creator* pCreator);
31 31
32 CFX_ArrayTemplate<FX_DWORD> m_ObjNumArray; 32 CFX_ArrayTemplate<uint32_t> m_ObjNumArray;
33 33
34 CFX_ByteTextBuf m_Buffer; 34 CFX_ByteTextBuf m_Buffer;
35 FX_DWORD m_dwObjNum; 35 uint32_t m_dwObjNum;
36 int32_t m_index; 36 int32_t m_index;
37 37
38 protected: 38 protected:
39 CFX_ArrayTemplate<FX_DWORD> m_OffsetArray; 39 CFX_ArrayTemplate<uint32_t> m_OffsetArray;
40 }; 40 };
41 class CPDF_XRefStream { 41 class CPDF_XRefStream {
42 public: 42 public:
43 struct Index { 43 struct Index {
44 FX_DWORD objnum; 44 uint32_t objnum;
45 FX_DWORD count; 45 uint32_t count;
46 }; 46 };
47 47
48 CPDF_XRefStream(); 48 CPDF_XRefStream();
49 49
50 FX_BOOL Start(); 50 FX_BOOL Start();
51 int32_t CompressIndirectObject(FX_DWORD dwObjNum, 51 int32_t CompressIndirectObject(uint32_t dwObjNum,
52 const CPDF_Object* pObj, 52 const CPDF_Object* pObj,
53 CPDF_Creator* pCreator); 53 CPDF_Creator* pCreator);
54 int32_t CompressIndirectObject(FX_DWORD dwObjNum, 54 int32_t CompressIndirectObject(uint32_t dwObjNum,
55 const uint8_t* pBuffer, 55 const uint8_t* pBuffer,
56 FX_DWORD dwSize, 56 uint32_t dwSize,
57 CPDF_Creator* pCreator); 57 CPDF_Creator* pCreator);
58 FX_BOOL End(CPDF_Creator* pCreator, FX_BOOL bEOF = FALSE); 58 FX_BOOL End(CPDF_Creator* pCreator, FX_BOOL bEOF = FALSE);
59 void AddObjectNumberToIndexArray(FX_DWORD objnum); 59 void AddObjectNumberToIndexArray(uint32_t objnum);
60 FX_BOOL EndXRefStream(CPDF_Creator* pCreator); 60 FX_BOOL EndXRefStream(CPDF_Creator* pCreator);
61 61
62 std::vector<Index> m_IndexArray; 62 std::vector<Index> m_IndexArray;
63 FX_FILESIZE m_PrevOffset; 63 FX_FILESIZE m_PrevOffset;
64 FX_DWORD m_dwTempObjNum; 64 uint32_t m_dwTempObjNum;
65 65
66 protected: 66 protected:
67 int32_t EndObjectStream(CPDF_Creator* pCreator, FX_BOOL bEOF = TRUE); 67 int32_t EndObjectStream(CPDF_Creator* pCreator, FX_BOOL bEOF = TRUE);
68 FX_BOOL GenerateXRefStream(CPDF_Creator* pCreator, FX_BOOL bEOF); 68 FX_BOOL GenerateXRefStream(CPDF_Creator* pCreator, FX_BOOL bEOF);
69 size_t m_iSeg; 69 size_t m_iSeg;
70 CPDF_ObjectStream m_ObjStream; 70 CPDF_ObjectStream m_ObjStream;
71 CFX_ByteTextBuf m_Buffer; 71 CFX_ByteTextBuf m_Buffer;
72 }; 72 };
73 73
74 #endif // CORE_FPDFAPI_FPDF_EDIT_EDITINT_H_ 74 #endif // CORE_FPDFAPI_FPDF_EDIT_EDITINT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp ('k') | core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698