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_FDE_XML_FDE_XML_H_ | 7 #ifndef XFA_FDE_XML_FDE_XML_H_ |
8 #define XFA_FDE_XML_FDE_XML_H_ | 8 #define XFA_FDE_XML_FDE_XML_H_ |
9 | 9 |
10 #include "xfa/fgas/crt/fgas_stream.h" | 10 #include "xfa/fgas/crt/fgas_stream.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 #define FDE_XMLSYNTAXSTATUS_Error 0xFE | 202 #define FDE_XMLSYNTAXSTATUS_Error 0xFE |
203 #define FDE_XMLSYNTAXSTATUS_EOS 0xFF | 203 #define FDE_XMLSYNTAXSTATUS_EOS 0xFF |
204 class IFDE_XMLSyntaxParser { | 204 class IFDE_XMLSyntaxParser { |
205 public: | 205 public: |
206 static IFDE_XMLSyntaxParser* Create(); | 206 static IFDE_XMLSyntaxParser* Create(); |
207 virtual ~IFDE_XMLSyntaxParser() {} | 207 virtual ~IFDE_XMLSyntaxParser() {} |
208 virtual void Release() = 0; | 208 virtual void Release() = 0; |
209 virtual void Init(IFX_Stream* pStream, | 209 virtual void Init(IFX_Stream* pStream, |
210 int32_t iXMLPlaneSize, | 210 int32_t iXMLPlaneSize, |
211 int32_t iTextDataSize = 256) = 0; | 211 int32_t iTextDataSize = 256) = 0; |
212 virtual FX_DWORD DoSyntaxParse() = 0; | 212 virtual uint32_t DoSyntaxParse() = 0; |
213 virtual int32_t GetStatus() const = 0; | 213 virtual int32_t GetStatus() const = 0; |
214 virtual int32_t GetCurrentPos() const = 0; | 214 virtual int32_t GetCurrentPos() const = 0; |
215 virtual FX_FILESIZE GetCurrentBinaryPos() const = 0; | 215 virtual FX_FILESIZE GetCurrentBinaryPos() const = 0; |
216 virtual int32_t GetCurrentNodeNumber() const = 0; | 216 virtual int32_t GetCurrentNodeNumber() const = 0; |
217 virtual int32_t GetLastNodeNumber() const = 0; | 217 virtual int32_t GetLastNodeNumber() const = 0; |
218 virtual void GetTargetName(CFX_WideString& wsTarget) const = 0; | 218 virtual void GetTargetName(CFX_WideString& wsTarget) const = 0; |
219 virtual void GetTagName(CFX_WideString& wsTag) const = 0; | 219 virtual void GetTagName(CFX_WideString& wsTag) const = 0; |
220 virtual void GetAttributeName(CFX_WideString& wsAttriName) const = 0; | 220 virtual void GetAttributeName(CFX_WideString& wsAttriName) const = 0; |
221 virtual void GetAttributeValue(CFX_WideString& wsAttriValue) const = 0; | 221 virtual void GetAttributeValue(CFX_WideString& wsAttriValue) const = 0; |
222 virtual void GetTextData(CFX_WideString& wsText) const = 0; | 222 virtual void GetTextData(CFX_WideString& wsText) const = 0; |
223 virtual void GetTargetData(CFX_WideString& wsData) const = 0; | 223 virtual void GetTargetData(CFX_WideString& wsData) const = 0; |
224 }; | 224 }; |
225 | 225 |
226 #endif // XFA_FDE_XML_FDE_XML_H_ | 226 #endif // XFA_FDE_XML_FDE_XML_H_ |
OLD | NEW |