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> |
| 11 |
10 #include "xfa/fde/xml/fde_xml_imp.h" | 12 #include "xfa/fde/xml/fde_xml_imp.h" |
11 #include "xfa/fxfa/include/fxfa_basic.h" | 13 #include "xfa/fxfa/include/fxfa_basic.h" |
12 | 14 |
13 class CXFA_Document; | 15 class CXFA_Document; |
14 class CXFA_Node; | 16 class CXFA_Node; |
15 class CXFA_XMLParser; | 17 class CXFA_XMLParser; |
16 class IFX_FileRead; | 18 class IFX_FileRead; |
17 class IFX_Pause; | 19 class IFX_Pause; |
18 class IFX_Stream; | 20 class IFX_Stream; |
19 | 21 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 XFA_XDPPACKET ePacketID); | 68 XFA_XDPPACKET ePacketID); |
67 void ParseDataGroup(CXFA_Node* pXFANode, | 69 void ParseDataGroup(CXFA_Node* pXFANode, |
68 CFDE_XMLNode* pXMLNode, | 70 CFDE_XMLNode* pXMLNode, |
69 XFA_XDPPACKET ePacketID); | 71 XFA_XDPPACKET ePacketID); |
70 void ParseInstruction(CXFA_Node* pXFANode, | 72 void ParseInstruction(CXFA_Node* pXFANode, |
71 CFDE_XMLInstruction* pXMLInstruction, | 73 CFDE_XMLInstruction* pXMLInstruction, |
72 XFA_XDPPACKET ePacketID); | 74 XFA_XDPPACKET ePacketID); |
73 void SetFactory(CXFA_Document* pFactory); | 75 void SetFactory(CXFA_Document* pFactory); |
74 | 76 |
75 CXFA_XMLParser* m_pXMLParser; | 77 CXFA_XMLParser* m_pXMLParser; |
76 CFDE_XMLDoc* m_pXMLDoc; | 78 std::unique_ptr<CFDE_XMLDoc> m_pXMLDoc; |
77 IFX_Stream* m_pStream; | 79 std::unique_ptr<IFX_Stream, ReleaseDeleter<IFX_Stream>> m_pStream; |
78 IFX_FileRead* m_pFileRead; | 80 IFX_FileRead* m_pFileRead; |
79 CXFA_Document* m_pFactory; | 81 CXFA_Document* m_pFactory; |
80 CXFA_Node* m_pRootNode; | 82 CXFA_Node* m_pRootNode; |
81 XFA_XDPPACKET m_ePacketID; | 83 XFA_XDPPACKET m_ePacketID; |
82 FX_BOOL m_bDocumentParser; | 84 FX_BOOL m_bDocumentParser; |
83 friend class CXFA_DocumentParser; | 85 friend class CXFA_DocumentParser; |
84 }; | 86 }; |
85 | 87 |
86 #endif // XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ | 88 #endif // XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ |
OLD | NEW |