| 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 #include "../include/fsdk_define.h" | 7 #include "../include/fsdk_define.h" |
| 8 #include "../include/fpdfsave.h" | 8 #include "../include/fpdfsave.h" |
| 9 #include "../include/fpdfedit.h" | 9 #include "../include/fpdfedit.h" |
| 10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
| 11 #include "time.h" | 11 #include "time.h" |
| 12 #else | 12 #else |
| 13 #include <ctime> | 13 #include <ctime> |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 class CFX_IFileWrite:public IFX_StreamWrite | 16 class CFX_IFileWrite FX_FINAL : public IFX_StreamWrite |
| 17 { | 17 { |
| 18 | 18 |
| 19 public: | 19 public: |
| 20 CFX_IFileWrite(); | 20 CFX_IFileWrite(); |
| 21 FX_BOOL Init( FPDF_FILEWRITE * pFileWriteStruct
); | 21 FX_BOOL Init( FPDF_FILEWRITE * pFileWriteStruct
); |
| 22 virtual FX_BOOL WriteBlock(const void* pData, size_t size); | 22 virtual FX_BOOL WriteBlock(const void* pData, size_t size); |
| 23 virtual void Release(){}; | 23 virtual void Release(){}; |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 FPDF_FILEWRITE* m_pFileWriteStruct; | 26 FPDF_FILEWRITE* m_pFileWriteStruct; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 { | 87 { |
| 88 return _FPDF_Doc_Save(document, pFileWrite, flags, FALSE , 0); | 88 return _FPDF_Doc_Save(document, pFileWrite, flags, FALSE , 0); |
| 89 } | 89 } |
| 90 | 90 |
| 91 | 91 |
| 92 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion( FPDF_DOCUMENT document,F
PDF_FILEWRITE * pFileWrite, | 92 DLLEXPORT FPDF_BOOL STDCALL FPDF_SaveWithVersion( FPDF_DOCUMENT document,F
PDF_FILEWRITE * pFileWrite, |
| 93 FPDF_DWORD flags, int fileVersion) | 93 FPDF_DWORD flags, int fileVersion) |
| 94 { | 94 { |
| 95 return _FPDF_Doc_Save(document, pFileWrite, flags, TRUE , fileVersion); | 95 return _FPDF_Doc_Save(document, pFileWrite, flags, TRUE , fileVersion); |
| 96 } | 96 } |
| OLD | NEW |