| 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_CXFA_SIMPLE_PARSER_H_ | 7 #ifndef XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ |
| 8 #define XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ | 8 #define XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "xfa/fde/xml/fde_xml_imp.h" | 12 #include "xfa/fde/xml/fde_xml_imp.h" |
| 13 #include "xfa/fxfa/fxfa_basic.h" | 13 #include "xfa/fxfa/fxfa_basic.h" |
| 14 | 14 |
| 15 class CXFA_Document; | 15 class CXFA_Document; |
| 16 class CXFA_Node; | 16 class CXFA_Node; |
| 17 class CXFA_XMLParser; | 17 class CXFA_XMLParser; |
| 18 class IFX_SeekableReadStream; | 18 class IFX_SeekableReadStream; |
| 19 class IFX_Pause; | 19 class IFX_Pause; |
| 20 class IFX_Stream; | 20 class IFGAS_Stream; |
| 21 | 21 |
| 22 class CXFA_SimpleParser { | 22 class CXFA_SimpleParser { |
| 23 public: | 23 public: |
| 24 CXFA_SimpleParser(CXFA_Document* pFactory, bool bDocumentParser); | 24 CXFA_SimpleParser(CXFA_Document* pFactory, bool bDocumentParser); |
| 25 ~CXFA_SimpleParser(); | 25 ~CXFA_SimpleParser(); |
| 26 | 26 |
| 27 int32_t StartParse(IFX_SeekableReadStream* pStream, XFA_XDPPACKET ePacketID); | 27 int32_t StartParse(IFX_SeekableReadStream* pStream, XFA_XDPPACKET ePacketID); |
| 28 int32_t DoParse(IFX_Pause* pPause); | 28 int32_t DoParse(IFX_Pause* pPause); |
| 29 int32_t ParseXMLData(const CFX_WideString& wsXML, | 29 int32_t ParseXMLData(const CFX_WideString& wsXML, |
| 30 CFDE_XMLNode*& pXMLNode, | 30 CFDE_XMLNode*& pXMLNode, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 XFA_XDPPACKET ePacketID); | 70 XFA_XDPPACKET ePacketID); |
| 71 void ParseDataGroup(CXFA_Node* pXFANode, | 71 void ParseDataGroup(CXFA_Node* pXFANode, |
| 72 CFDE_XMLNode* pXMLNode, | 72 CFDE_XMLNode* pXMLNode, |
| 73 XFA_XDPPACKET ePacketID); | 73 XFA_XDPPACKET ePacketID); |
| 74 void ParseInstruction(CXFA_Node* pXFANode, | 74 void ParseInstruction(CXFA_Node* pXFANode, |
| 75 CFDE_XMLInstruction* pXMLInstruction, | 75 CFDE_XMLInstruction* pXMLInstruction, |
| 76 XFA_XDPPACKET ePacketID); | 76 XFA_XDPPACKET ePacketID); |
| 77 | 77 |
| 78 CXFA_XMLParser* m_pXMLParser; | 78 CXFA_XMLParser* m_pXMLParser; |
| 79 std::unique_ptr<CFDE_XMLDoc> m_pXMLDoc; | 79 std::unique_ptr<CFDE_XMLDoc> m_pXMLDoc; |
| 80 std::unique_ptr<IFX_Stream, ReleaseDeleter<IFX_Stream>> m_pStream; | 80 std::unique_ptr<IFGAS_Stream, ReleaseDeleter<IFGAS_Stream>> m_pStream; |
| 81 IFX_SeekableReadStream* m_pFileRead; | 81 IFX_SeekableReadStream* m_pFileRead; |
| 82 CXFA_Document* m_pFactory; | 82 CXFA_Document* m_pFactory; |
| 83 CXFA_Node* m_pRootNode; | 83 CXFA_Node* m_pRootNode; |
| 84 XFA_XDPPACKET m_ePacketID; | 84 XFA_XDPPACKET m_ePacketID; |
| 85 bool m_bDocumentParser; | 85 bool m_bDocumentParser; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 #endif // XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ | 88 #endif // XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ |
| OLD | NEW |