| 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_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> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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(FX_DWORD dwObjNum, const CPDF_Object* pObj); |
| 26 int32_t CompressIndirectObject(FX_DWORD dwObjNum, | 26 int32_t CompressIndirectObject(FX_DWORD dwObjNum, |
| 27 const uint8_t* pBuffer, | 27 const uint8_t* pBuffer, |
| 28 FX_DWORD dwSize); | 28 FX_DWORD dwSize); |
| 29 | 29 |
| 30 FX_FILESIZE End(CPDF_Creator* pCreator); | 30 FX_FILESIZE End(CPDF_Creator* pCreator); |
| 31 | 31 |
| 32 CFX_DWordArray m_ObjNumArray; | 32 CFX_ArrayTemplate<FX_DWORD> m_ObjNumArray; |
| 33 | 33 |
| 34 CFX_ByteTextBuf m_Buffer; | 34 CFX_ByteTextBuf m_Buffer; |
| 35 FX_DWORD m_dwObjNum; | 35 FX_DWORD m_dwObjNum; |
| 36 int32_t m_index; | 36 int32_t m_index; |
| 37 | 37 |
| 38 protected: | 38 protected: |
| 39 CFX_DWordArray m_OffsetArray; | 39 CFX_ArrayTemplate<FX_DWORD> 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 FX_DWORD objnum; |
| 45 FX_DWORD count; | 45 FX_DWORD count; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 CPDF_XRefStream(); | 48 CPDF_XRefStream(); |
| 49 | 49 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 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_ |
| OLD | NEW |