| 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_BASIC_IMP | 7 #ifndef XFA_SRC_FXFA_SRC_PARSER_XFA_BASIC_IMP_H_ |
| 8 #define _XFA_BASIC_IMP | 8 #define XFA_SRC_FXFA_SRC_PARSER_XFA_BASIC_IMP_H_ |
| 9 |
| 9 typedef struct _XFA_NOTSUREATTRIBUTE { | 10 typedef struct _XFA_NOTSUREATTRIBUTE { |
| 10 XFA_ELEMENT eElement; | 11 XFA_ELEMENT eElement; |
| 11 XFA_ATTRIBUTE eAttribute; | 12 XFA_ATTRIBUTE eAttribute; |
| 12 XFA_ATTRIBUTETYPE eType; | 13 XFA_ATTRIBUTETYPE eType; |
| 13 void* pValue; | 14 void* pValue; |
| 14 } XFA_NOTSUREATTRIBUTE, *XFA_LPNOTSUREATTRIBUTE; | 15 } XFA_NOTSUREATTRIBUTE, *XFA_LPNOTSUREATTRIBUTE; |
| 16 |
| 15 typedef XFA_NOTSUREATTRIBUTE const* XFA_LPCNOTSUREATTRIBUTE; | 17 typedef XFA_NOTSUREATTRIBUTE const* XFA_LPCNOTSUREATTRIBUTE; |
| 16 XFA_LPCNOTSUREATTRIBUTE XFA_GetNotsureAttribute( | 18 XFA_LPCNOTSUREATTRIBUTE XFA_GetNotsureAttribute( |
| 17 XFA_ELEMENT eElement, | 19 XFA_ELEMENT eElement, |
| 18 XFA_ATTRIBUTE eAttribute, | 20 XFA_ATTRIBUTE eAttribute, |
| 19 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE); | 21 XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE); |
| 20 class CXFA_WideTextRead : public IFX_Stream { | 22 class CXFA_WideTextRead : public IFX_Stream { |
| 21 public: | 23 public: |
| 22 CXFA_WideTextRead(const CFX_WideString& wsBuffer); | 24 CXFA_WideTextRead(const CFX_WideString& wsBuffer); |
| 23 virtual void Release(); | 25 virtual void Release(); |
| 24 virtual IFX_Stream* Retain(); | 26 virtual IFX_Stream* Retain(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 return NULL; | 58 return NULL; |
| 57 } | 59 } |
| 58 | 60 |
| 59 CFX_WideString GetSrcText() const { return m_wsBuffer; } | 61 CFX_WideString GetSrcText() const { return m_wsBuffer; } |
| 60 | 62 |
| 61 protected: | 63 protected: |
| 62 CFX_WideString m_wsBuffer; | 64 CFX_WideString m_wsBuffer; |
| 63 int32_t m_iPosition; | 65 int32_t m_iPosition; |
| 64 int32_t m_iRefCount; | 66 int32_t m_iRefCount; |
| 65 }; | 67 }; |
| 66 #endif | 68 |
| 69 #endif // XFA_SRC_FXFA_SRC_PARSER_XFA_BASIC_IMP_H_ |
| OLD | NEW |