| 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" |
| 11 #include "xfa/fxfa/include/fxfa_basic.h" | 11 #include "xfa/fxfa/include/fxfa_basic.h" |
| 12 | 12 |
| 13 struct XFA_NOTSUREATTRIBUTE { | 13 struct XFA_NOTSUREATTRIBUTE { |
| 14 XFA_ELEMENT eElement; | 14 XFA_Element eElement; |
| 15 XFA_ATTRIBUTE eAttribute; | 15 XFA_ATTRIBUTE eAttribute; |
| 16 XFA_ATTRIBUTETYPE eType; | 16 XFA_ATTRIBUTETYPE eType; |
| 17 void* pValue; | 17 void* pValue; |
| 18 }; | 18 }; |
| 19 const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute( | 19 const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute( |
| 20 XFA_ELEMENT eElement, | 20 XFA_Element eElement, |
| 21 XFA_ATTRIBUTE eAttribute, | 21 XFA_ATTRIBUTE eAttribute, |
| 22 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE); | 22 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE); |
| 23 | 23 |
| 24 class CXFA_WideTextRead : public IFX_Stream { | 24 class CXFA_WideTextRead : public IFX_Stream { |
| 25 public: | 25 public: |
| 26 CXFA_WideTextRead(const CFX_WideString& wsBuffer); | 26 CXFA_WideTextRead(const CFX_WideString& wsBuffer); |
| 27 | 27 |
| 28 // IFX_Stream | 28 // IFX_Stream |
| 29 void Release() override; | 29 void Release() override; |
| 30 IFX_Stream* Retain() override; | 30 IFX_Stream* Retain() override; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 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 |