| 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_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" |
| 11 #include "fpdf_pageobj.h" | 11 #include "fpdf_pageobj.h" |
| 12 | 12 |
| 13 class CPDF_ObjectStream; | 13 class CPDF_ObjectStream; |
| 14 class CPDF_XRefStream; | 14 class CPDF_XRefStream; |
| 15 CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj); | 15 CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj); |
| 16 #define FPDFCREATE_INCREMENTAL 1 | 16 #define FPDFCREATE_INCREMENTAL 1 |
| 17 #define FPDFCREATE_NO_ORIGINAL 2 | 17 #define FPDFCREATE_NO_ORIGINAL 2 |
| 18 #define FPDFCREATE_PROGRESSIVE 4 | 18 #define FPDFCREATE_PROGRESSIVE 4 |
| 19 #define FPDFCREATE_OBJECTSTREAM 8 | 19 #define FPDFCREATE_OBJECTSTREAM 8 |
| 20 |
| 20 class CPDF_Creator { | 21 class CPDF_Creator { |
| 21 public: | 22 public: |
| 22 CPDF_Creator(CPDF_Document* pDoc); | 23 CPDF_Creator(CPDF_Document* pDoc); |
| 23 | |
| 24 ~CPDF_Creator(); | 24 ~CPDF_Creator(); |
| 25 | 25 |
| 26 void RemoveSecurity(); | 26 void RemoveSecurity(); |
| 27 | |
| 28 FX_BOOL Create(const FX_WCHAR* filename, FX_DWORD flags = 0); | |
| 29 | |
| 30 FX_BOOL Create(const FX_CHAR* filename, FX_DWORD flags = 0); | |
| 31 | |
| 32 FX_BOOL Create(IFX_StreamWrite* pFile, FX_DWORD flags = 0); | 27 FX_BOOL Create(IFX_StreamWrite* pFile, FX_DWORD flags = 0); |
| 33 | |
| 34 int32_t Continue(IFX_Pause* pPause = NULL); | 28 int32_t Continue(IFX_Pause* pPause = NULL); |
| 35 | |
| 36 FX_BOOL SetFileVersion(int32_t fileVersion = 17); | 29 FX_BOOL SetFileVersion(int32_t fileVersion = 17); |
| 37 | 30 |
| 38 protected: | 31 protected: |
| 39 CPDF_Document* m_pDocument; | 32 CPDF_Document* m_pDocument; |
| 40 | 33 |
| 41 CPDF_Parser* m_pParser; | 34 CPDF_Parser* m_pParser; |
| 42 | 35 |
| 43 FX_BOOL m_bCompress; | 36 FX_BOOL m_bCompress; |
| 44 | 37 |
| 45 FX_BOOL m_bSecurityChanged; | 38 FX_BOOL m_bSecurityChanged; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 CFX_DWordArray m_NewObjNumArray; | 98 CFX_DWordArray m_NewObjNumArray; |
| 106 | 99 |
| 107 CPDF_Array* m_pIDArray; | 100 CPDF_Array* m_pIDArray; |
| 108 | 101 |
| 109 int32_t m_FileVersion; | 102 int32_t m_FileVersion; |
| 110 friend class CPDF_ObjectStream; | 103 friend class CPDF_ObjectStream; |
| 111 friend class CPDF_XRefStream; | 104 friend class CPDF_XRefStream; |
| 112 }; | 105 }; |
| 113 | 106 |
| 114 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_ | 107 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_ |
| OLD | NEW |