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

Side by Side Diff: core/src/fpdfapi/fpdf_edit/editint.h

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 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
« no previous file with comments | « core/include/fxge/fx_ge.h ('k') | core/src/fpdfapi/fpdf_font/font_int.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 _FPDF_EDITINT_ 7 #ifndef _FPDF_EDITINT_
8 #define _FPDF_EDITINT_ 8 #define _FPDF_EDITINT_
9 class CPDF_ObjectStream : public CFX_Object 9 class CPDF_ObjectStream
10 { 10 {
11 public: 11 public:
12 CPDF_ObjectStream(); 12 CPDF_ObjectStream();
13 13
14 FX_BOOL Start(); 14 FX_BOOL Start();
15 15
16 FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj); 16 FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj);
17 FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, FX_LPC BYTE pBuffer, FX_DWORD dwSize); 17 FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, FX_LPC BYTE pBuffer, FX_DWORD dwSize);
18 18
19 FX_FILESIZE End(CPDF_Creator* pCreator); 19 FX_FILESIZE End(CPDF_Creator* pCreator);
20 20
21 CFX_DWordArray m_ObjNumArray; 21 CFX_DWordArray m_ObjNumArray;
22 22
23 CFX_ByteTextBuf m_Buffer; 23 CFX_ByteTextBuf m_Buffer;
24 FX_DWORD m_dwObjNum; 24 FX_DWORD m_dwObjNum;
25 FX_INT32 m_index; 25 FX_INT32 m_index;
26 protected: 26 protected:
27 27
28 CFX_DWordArray m_OffsetArray; 28 CFX_DWordArray m_OffsetArray;
29 }; 29 };
30 class CPDF_XRefStream : public CFX_Object 30 class CPDF_XRefStream
31 { 31 {
32 public: 32 public:
33 33
34 CPDF_XRefStream(); 34 CPDF_XRefStream();
35 35
36 FX_BOOL Start(); 36 FX_BOOL Start();
37 37
38 FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj, CPDF_Creator *pCreator); 38 FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object *pObj, CPDF_Creator *pCreator);
39 39
40 FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, FX_LPC BYTE pBuffer, FX_DWORD dwSize, CPDF_Creator *pCreator); 40 FX_INT32 CompressIndirectObject(FX_DWORD dwObjNum, FX_LPC BYTE pBuffer, FX_DWORD dwSize, CPDF_Creator *pCreator);
41 41
42 FX_BOOL End(CPDF_Creator *pCreator, FX_BOOL bEOF = FALSE); 42 FX_BOOL End(CPDF_Creator *pCreator, FX_BOOL bEOF = FALSE);
43 FX_BOOL AddObjectNumberToIndexArray(FX_DWORD obj num); 43 FX_BOOL AddObjectNumberToIndexArray(FX_DWORD obj num);
44 FX_BOOL EndXRefStream(CPDF_Creator* pCreator); 44 FX_BOOL EndXRefStream(CPDF_Creator* pCreator);
45 45
46 46
47 CFX_DWordArray m_IndexArray; 47 CFX_DWordArray m_IndexArray;
48 48
49 FX_FILESIZE m_PrevOffset; 49 FX_FILESIZE m_PrevOffset;
50 FX_DWORD m_dwTempObjNum; 50 FX_DWORD m_dwTempObjNum;
51 51
52 protected: 52 protected:
53 FX_INT32 EndObjectStream(CPDF_Creator *pCreator, FX_BOOL bEOF = TRUE); 53 FX_INT32 EndObjectStream(CPDF_Creator *pCreator, FX_BOOL bEOF = TRUE);
54 FX_BOOL GenerateXRefStream(CPDF_Creator* pCreato r, FX_BOOL bEOF); 54 FX_BOOL GenerateXRefStream(CPDF_Creator* pCreato r, FX_BOOL bEOF);
55 FX_INT32 m_iSeg; 55 FX_INT32 m_iSeg;
56 CPDF_ObjectStream m_ObjStream; 56 CPDF_ObjectStream m_ObjStream;
57 CFX_ByteTextBuf m_Buffer; 57 CFX_ByteTextBuf m_Buffer;
58 }; 58 };
59 #endif 59 #endif
OLDNEW
« no previous file with comments | « core/include/fxge/fx_ge.h ('k') | core/src/fpdfapi/fpdf_font/font_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698