OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "xfa/fxfa/parser/cxfa_document_parser.h" | 7 #include "xfa/fxfa/parser/cxfa_document_parser.h" |
8 | 8 |
9 #include "xfa/fxfa/include/fxfa.h" | 9 #include "xfa/fxfa/fxfa.h" |
10 #include "xfa/fxfa/parser/cxfa_document.h" | 10 #include "xfa/fxfa/parser/cxfa_document.h" |
11 | 11 |
12 CXFA_DocumentParser::CXFA_DocumentParser(CXFA_FFNotify* pNotify) | 12 CXFA_DocumentParser::CXFA_DocumentParser(CXFA_FFNotify* pNotify) |
13 : m_nodeParser(nullptr, TRUE), m_pNotify(pNotify) {} | 13 : m_nodeParser(nullptr, TRUE), m_pNotify(pNotify) {} |
14 | 14 |
15 CXFA_DocumentParser::~CXFA_DocumentParser() { | 15 CXFA_DocumentParser::~CXFA_DocumentParser() { |
16 } | 16 } |
17 | 17 |
18 int32_t CXFA_DocumentParser::StartParse(IFX_FileRead* pStream, | 18 int32_t CXFA_DocumentParser::StartParse(IFX_FileRead* pStream, |
19 XFA_XDPPACKET ePacketID) { | 19 XFA_XDPPACKET ePacketID) { |
(...skipping 21 matching lines...) Expand all Loading... |
41 return m_nodeParser.GetXMLDoc(); | 41 return m_nodeParser.GetXMLDoc(); |
42 } | 42 } |
43 | 43 |
44 CXFA_FFNotify* CXFA_DocumentParser::GetNotify() const { | 44 CXFA_FFNotify* CXFA_DocumentParser::GetNotify() const { |
45 return m_pNotify; | 45 return m_pNotify; |
46 } | 46 } |
47 | 47 |
48 CXFA_Document* CXFA_DocumentParser::GetDocument() const { | 48 CXFA_Document* CXFA_DocumentParser::GetDocument() const { |
49 return m_pDocument.get(); | 49 return m_pDocument.get(); |
50 } | 50 } |
OLD | NEW |