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_simple_parser.h" | 7 #include "xfa/fxfa/parser/cxfa_simple_parser.h" |
8 | 8 |
9 #include "core/fxcrt/fx_ext.h" | 9 #include "core/fxcrt/fx_ext.h" |
10 #include "xfa/fgas/crt/fgas_codepage.h" | 10 #include "xfa/fgas/crt/fgas_codepage.h" |
11 #include "xfa/fxfa/include/fxfa.h" | 11 #include "xfa/fxfa/fxfa.h" |
12 #include "xfa/fxfa/include/xfa_checksum.h" | |
13 #include "xfa/fxfa/parser/cxfa_document.h" | 12 #include "xfa/fxfa/parser/cxfa_document.h" |
14 #include "xfa/fxfa/parser/cxfa_widetextread.h" | 13 #include "xfa/fxfa/parser/cxfa_widetextread.h" |
15 #include "xfa/fxfa/parser/cxfa_xml_parser.h" | 14 #include "xfa/fxfa/parser/cxfa_xml_parser.h" |
16 #include "xfa/fxfa/parser/xfa_basic_data.h" | 15 #include "xfa/fxfa/parser/xfa_basic_data.h" |
17 #include "xfa/fxfa/parser/xfa_utils.h" | 16 #include "xfa/fxfa/parser/xfa_utils.h" |
| 17 #include "xfa/fxfa/xfa_checksum.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 CFDE_XMLNode* GetDocumentNode(CFDE_XMLDoc* pXMLDoc, | 21 CFDE_XMLNode* GetDocumentNode(CFDE_XMLDoc* pXMLDoc, |
22 FX_BOOL bVerifyWellFormness = FALSE) { | 22 FX_BOOL bVerifyWellFormness = FALSE) { |
23 if (!pXMLDoc) | 23 if (!pXMLDoc) |
24 return nullptr; | 24 return nullptr; |
25 | 25 |
26 for (CFDE_XMLNode* pXMLNode = | 26 for (CFDE_XMLNode* pXMLNode = |
27 pXMLDoc->GetRoot()->GetNodeItem(CFDE_XMLNode::FirstChild); | 27 pXMLDoc->GetRoot()->GetNodeItem(CFDE_XMLNode::FirstChild); |
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 pXFANode->GetDocument()->SetFlag(XFA_DOCFLAG_StrictScoping, TRUE); | 1300 pXFANode->GetDocument()->SetFlag(XFA_DOCFLAG_StrictScoping, TRUE); |
1301 } | 1301 } |
1302 } | 1302 } |
1303 } | 1303 } |
1304 } | 1304 } |
1305 | 1305 |
1306 void CXFA_SimpleParser::CloseParser() { | 1306 void CXFA_SimpleParser::CloseParser() { |
1307 m_pXMLDoc.reset(); | 1307 m_pXMLDoc.reset(); |
1308 m_pStream.reset(); | 1308 m_pStream.reset(); |
1309 } | 1309 } |
OLD | NEW |