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 #include "../../../foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
8 #include "../common/xfa_utils.h" | 8 #include "xfa/src/fxfa/src/common/xfa_utils.h" |
9 #include "../common/xfa_object.h" | 9 #include "xfa/src/fxfa/src/common/xfa_object.h" |
10 #include "../common/xfa_document.h" | 10 #include "xfa/src/fxfa/src/common/xfa_document.h" |
11 #include "../common/xfa_parser.h" | 11 #include "xfa/src/fxfa/src/common/xfa_parser.h" |
12 #include "../common/xfa_script.h" | 12 #include "xfa/src/fxfa/src/common/xfa_script.h" |
13 #include "../common/xfa_docdata.h" | 13 #include "xfa/src/fxfa/src/common/xfa_docdata.h" |
14 #include "../common/xfa_doclayout.h" | 14 #include "xfa/src/fxfa/src/common/xfa_doclayout.h" |
15 #include "../common/xfa_debug.h" | 15 #include "xfa/src/fxfa/src/common/xfa_localemgr.h" |
16 #include "../common/xfa_localemgr.h" | 16 #include "xfa/src/fxfa/src/common/xfa_fm2jsapi.h" |
17 #include "../common/xfa_fm2jsapi.h" | |
18 #include "xfa_debug_parser.h" | |
19 #include "xfa_basic_imp.h" | 17 #include "xfa_basic_imp.h" |
20 #include "xfa_parser_imp.h" | 18 #include "xfa_parser_imp.h" |
21 IXFA_Parser* IXFA_Parser::Create(IXFA_ObjFactory* pFactory, | 19 IXFA_Parser* IXFA_Parser::Create(IXFA_ObjFactory* pFactory, |
22 FX_BOOL bDocumentParser) { | 20 FX_BOOL bDocumentParser) { |
23 return new CXFA_SimpleParser(pFactory, bDocumentParser); | 21 return new CXFA_SimpleParser(pFactory, bDocumentParser); |
24 } | 22 } |
25 CXFA_SimpleParser::CXFA_SimpleParser(IXFA_ObjFactory* pFactory, | 23 CXFA_SimpleParser::CXFA_SimpleParser(IXFA_ObjFactory* pFactory, |
26 FX_BOOL bDocumentParser) | 24 FX_BOOL bDocumentParser) |
27 : m_pXMLParser(nullptr), | 25 : m_pXMLParser(nullptr), |
28 m_pXMLDoc(nullptr), | 26 m_pXMLDoc(nullptr), |
(...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1611 break; | 1609 break; |
1612 } | 1610 } |
1613 if (pPause != NULL && iCount > 500 && pPause->NeedToPauseNow()) { | 1611 if (pPause != NULL && iCount > 500 && pPause->NeedToPauseNow()) { |
1614 break; | 1612 break; |
1615 } | 1613 } |
1616 } | 1614 } |
1617 return (m_dwStatus == FDE_XMLSYNTAXSTATUS_Error || m_NodeStack.GetSize() != 1) | 1615 return (m_dwStatus == FDE_XMLSYNTAXSTATUS_Error || m_NodeStack.GetSize() != 1) |
1618 ? -1 | 1616 ? -1 |
1619 : m_pParser->GetStatus(); | 1617 : m_pParser->GetStatus(); |
1620 } | 1618 } |
OLD | NEW |