| OLD | NEW |
| 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_SRC_FPDFAPI_FPDF_EDIT_EDITINT_H_ | 7 #ifndef CORE_SRC_FPDFAPI_FPDF_EDIT_EDITINT_H_ |
| 8 #define CORE_SRC_FPDFAPI_FPDF_EDIT_EDITINT_H_ | 8 #define CORE_SRC_FPDFAPI_FPDF_EDIT_EDITINT_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 #include "core/include/fxcrt/fx_stream.h" |
| 12 #include "core/include/fxcrt/fx_system.h" |
| 13 |
| 14 class CPDF_Creator; |
| 15 class CPDF_Object; |
| 16 |
| 10 class CPDF_ObjectStream { | 17 class CPDF_ObjectStream { |
| 11 public: | 18 public: |
| 12 CPDF_ObjectStream(); | 19 CPDF_ObjectStream(); |
| 13 | 20 |
| 14 FX_BOOL Start(); | 21 FX_BOOL Start(); |
| 15 | 22 |
| 16 int32_t CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object* pObj); | 23 int32_t CompressIndirectObject(FX_DWORD dwObjNum, const CPDF_Object* pObj); |
| 17 int32_t CompressIndirectObject(FX_DWORD dwObjNum, | 24 int32_t CompressIndirectObject(FX_DWORD dwObjNum, |
| 18 const uint8_t* pBuffer, | 25 const uint8_t* pBuffer, |
| 19 FX_DWORD dwSize); | 26 FX_DWORD dwSize); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 62 |
| 56 protected: | 63 protected: |
| 57 int32_t EndObjectStream(CPDF_Creator* pCreator, FX_BOOL bEOF = TRUE); | 64 int32_t EndObjectStream(CPDF_Creator* pCreator, FX_BOOL bEOF = TRUE); |
| 58 FX_BOOL GenerateXRefStream(CPDF_Creator* pCreator, FX_BOOL bEOF); | 65 FX_BOOL GenerateXRefStream(CPDF_Creator* pCreator, FX_BOOL bEOF); |
| 59 int32_t m_iSeg; | 66 int32_t m_iSeg; |
| 60 CPDF_ObjectStream m_ObjStream; | 67 CPDF_ObjectStream m_ObjStream; |
| 61 CFX_ByteTextBuf m_Buffer; | 68 CFX_ByteTextBuf m_Buffer; |
| 62 }; | 69 }; |
| 63 | 70 |
| 64 #endif // CORE_SRC_FPDFAPI_FPDF_EDIT_EDITINT_H_ | 71 #endif // CORE_SRC_FPDFAPI_FPDF_EDIT_EDITINT_H_ |
| OLD | NEW |