| 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_FXFA_PARSER_XFA_BASIC_IMP_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ |
| 8 #define XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ | 8 #define XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ |
| 9 | 9 |
| 10 #include "xfa/fgas/crt/fgas_stream.h" | 10 #include "xfa/fgas/crt/fgas_stream.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 IFX_Stream* Retain() override; | 30 IFX_Stream* Retain() override; |
| 31 uint32_t GetAccessModes() const override; | 31 uint32_t GetAccessModes() const override; |
| 32 int32_t GetLength() const override; | 32 int32_t GetLength() const override; |
| 33 int32_t Seek(FX_STREAMSEEK eSeek, int32_t iOffset) override; | 33 int32_t Seek(FX_STREAMSEEK eSeek, int32_t iOffset) override; |
| 34 int32_t GetPosition() override; | 34 int32_t GetPosition() override; |
| 35 FX_BOOL IsEOF() const override; | 35 FX_BOOL IsEOF() const override; |
| 36 int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) override; | 36 int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) override; |
| 37 int32_t ReadString(FX_WCHAR* pStr, | 37 int32_t ReadString(FX_WCHAR* pStr, |
| 38 int32_t iMaxLength, | 38 int32_t iMaxLength, |
| 39 FX_BOOL& bEOS, | 39 FX_BOOL& bEOS, |
| 40 int32_t const* pByteSize = NULL) override; | 40 int32_t const* pByteSize = nullptr) override; |
| 41 int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) override; | 41 int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) override; |
| 42 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override; | 42 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override; |
| 43 void Flush() override {} | 43 void Flush() override {} |
| 44 FX_BOOL SetLength(int32_t iLength) override; | 44 FX_BOOL SetLength(int32_t iLength) override; |
| 45 int32_t GetBOM(uint8_t bom[4]) const override; | 45 int32_t GetBOM(uint8_t bom[4]) const override; |
| 46 uint16_t GetCodePage() const override; | 46 uint16_t GetCodePage() const override; |
| 47 uint16_t SetCodePage(uint16_t wCodePage) override; | 47 uint16_t SetCodePage(uint16_t wCodePage) override; |
| 48 IFX_Stream* CreateSharedStream(uint32_t dwAccess, | 48 IFX_Stream* CreateSharedStream(uint32_t dwAccess, |
| 49 int32_t iOffset, | 49 int32_t iOffset, |
| 50 int32_t iLength) override; | 50 int32_t iLength) override; |
| 51 | 51 |
| 52 virtual void Lock(); | 52 virtual void Lock(); |
| 53 virtual void Unlock(); | 53 virtual void Unlock(); |
| 54 | 54 |
| 55 CFX_WideString GetSrcText() const; | 55 CFX_WideString GetSrcText() const; |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 CFX_WideString m_wsBuffer; | 58 CFX_WideString m_wsBuffer; |
| 59 int32_t m_iPosition; | 59 int32_t m_iPosition; |
| 60 int32_t m_iRefCount; | 60 int32_t m_iRefCount; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 #endif // XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ | 63 #endif // XFA_FXFA_PARSER_XFA_BASIC_IMP_H_ |
| OLD | NEW |