| 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 XFA_SRC_FGAS_INCLUDE_FX_STM_H_ | 7 #ifndef XFA_SRC_FGAS_INCLUDE_FX_STM_H_ |
| 8 #define XFA_SRC_FGAS_INCLUDE_FX_STM_H_ | 8 #define XFA_SRC_FGAS_INCLUDE_FX_STM_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_stream.h" |
| 11 |
| 10 class IFX_Stream; | 12 class IFX_Stream; |
| 13 |
| 11 IFX_FileRead* FX_CreateFileRead(IFX_Stream* pBaseStream, | 14 IFX_FileRead* FX_CreateFileRead(IFX_Stream* pBaseStream, |
| 12 FX_BOOL bReleaseStream = FALSE); | 15 FX_BOOL bReleaseStream = FALSE); |
| 13 IFX_FileRead* FX_CreateFileRead(IFX_BufferRead* pBufferRead, | 16 IFX_FileRead* FX_CreateFileRead(IFX_BufferRead* pBufferRead, |
| 14 FX_FILESIZE iFileSize = -1, | 17 FX_FILESIZE iFileSize = -1, |
| 15 FX_BOOL bReleaseStream = TRUE); | 18 FX_BOOL bReleaseStream = TRUE); |
| 16 IFX_FileWrite* FX_CreateFileWrite(IFX_Stream* pBaseStream, | 19 IFX_FileWrite* FX_CreateFileWrite(IFX_Stream* pBaseStream, |
| 17 FX_BOOL bReleaseStream = FALSE); | 20 FX_BOOL bReleaseStream = FALSE); |
| 18 enum FX_STREAMACCESS { | 21 enum FX_STREAMACCESS { |
| 19 FX_STREAMACCESS_Binary = 0x00, | 22 FX_STREAMACCESS_Binary = 0x00, |
| 20 FX_STREAMACCESS_Text = 0x01, | 23 FX_STREAMACCESS_Text = 0x01, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual FX_BOOL SetLength(int32_t iLength) = 0; | 66 virtual FX_BOOL SetLength(int32_t iLength) = 0; |
| 64 virtual int32_t GetBOM(uint8_t bom[4]) const = 0; | 67 virtual int32_t GetBOM(uint8_t bom[4]) const = 0; |
| 65 virtual FX_WORD GetCodePage() const = 0; | 68 virtual FX_WORD GetCodePage() const = 0; |
| 66 virtual FX_WORD SetCodePage(FX_WORD wCodePage) = 0; | 69 virtual FX_WORD SetCodePage(FX_WORD wCodePage) = 0; |
| 67 virtual IFX_Stream* CreateSharedStream(FX_DWORD dwAccess, | 70 virtual IFX_Stream* CreateSharedStream(FX_DWORD dwAccess, |
| 68 int32_t iOffset, | 71 int32_t iOffset, |
| 69 int32_t iLength) = 0; | 72 int32_t iLength) = 0; |
| 70 }; | 73 }; |
| 71 | 74 |
| 72 #endif // XFA_SRC_FGAS_INCLUDE_FX_STM_H_ | 75 #endif // XFA_SRC_FGAS_INCLUDE_FX_STM_H_ |
| OLD | NEW |