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 "core/fxcrt/include/fx_ext.h" | 7 #include "core/fxcrt/include/fx_ext.h" |
8 #include "xfa/fxfa/app/xfa_ffnotify.h" | 8 #include "xfa/fxfa/app/xfa_ffnotify.h" |
9 #include "xfa/fxfa/parser/cscript_datawindow.h" | 9 #include "xfa/fxfa/parser/cscript_datawindow.h" |
10 #include "xfa/fxfa/parser/cscript_eventpseudomodel.h" | 10 #include "xfa/fxfa/parser/cscript_eventpseudomodel.h" |
11 #include "xfa/fxfa/parser/cscript_hostpseudomodel.h" | 11 #include "xfa/fxfa/parser/cscript_hostpseudomodel.h" |
12 #include "xfa/fxfa/parser/cscript_layoutpseudomodel.h" | 12 #include "xfa/fxfa/parser/cscript_layoutpseudomodel.h" |
13 #include "xfa/fxfa/parser/cscript_logpseudomodel.h" | 13 #include "xfa/fxfa/parser/cscript_logpseudomodel.h" |
14 #include "xfa/fxfa/parser/cscript_signaturepseudomodel.h" | 14 #include "xfa/fxfa/parser/cscript_signaturepseudomodel.h" |
15 #include "xfa/fxfa/parser/cxfa_document_parser.h" | 15 #include "xfa/fxfa/parser/cxfa_document_parser.h" |
| 16 #include "xfa/fxfa/parser/cxfa_scriptcontext.h" |
16 #include "xfa/fxfa/parser/xfa_basic_imp.h" | 17 #include "xfa/fxfa/parser/xfa_basic_imp.h" |
17 #include "xfa/fxfa/parser/xfa_doclayout.h" | 18 #include "xfa/fxfa/parser/xfa_doclayout.h" |
18 #include "xfa/fxfa/parser/xfa_document.h" | 19 #include "xfa/fxfa/parser/xfa_document.h" |
19 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" | 20 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" |
20 #include "xfa/fxfa/parser/xfa_localemgr.h" | 21 #include "xfa/fxfa/parser/xfa_localemgr.h" |
21 #include "xfa/fxfa/parser/xfa_object.h" | 22 #include "xfa/fxfa/parser/xfa_object.h" |
22 #include "xfa/fxfa/parser/xfa_script.h" | 23 #include "xfa/fxfa/parser/xfa_resolvenode_rs.h" |
23 #include "xfa/fxfa/parser/xfa_script_imp.h" | |
24 #include "xfa/fxfa/parser/xfa_utils.h" | 24 #include "xfa/fxfa/parser/xfa_utils.h" |
25 | 25 |
26 CXFA_Document::CXFA_Document(CXFA_DocumentParser* pParser) | 26 CXFA_Document::CXFA_Document(CXFA_DocumentParser* pParser) |
27 : m_pParser(pParser), | 27 : m_pParser(pParser), |
28 m_pScriptContext(nullptr), | 28 m_pScriptContext(nullptr), |
29 m_pLayoutProcessor(nullptr), | 29 m_pLayoutProcessor(nullptr), |
30 m_pRootNode(nullptr), | 30 m_pRootNode(nullptr), |
31 m_pLocalMgr(nullptr), | 31 m_pLocalMgr(nullptr), |
32 m_pScriptDataWindow(nullptr), | 32 m_pScriptDataWindow(nullptr), |
33 m_pScriptEvent(nullptr), | 33 m_pScriptEvent(nullptr), |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 if (!mIDMap.Lookup(FX_HashCode_GetW(wsID, false), pProtoNode)) { | 407 if (!mIDMap.Lookup(FX_HashCode_GetW(wsID, false), pProtoNode)) { |
408 continue; | 408 continue; |
409 } | 409 } |
410 } | 410 } |
411 if (!pProtoNode) { | 411 if (!pProtoNode) { |
412 continue; | 412 continue; |
413 } | 413 } |
414 XFA_ProtoMerge_MergeNode(this, pUseHrefNode, pProtoNode); | 414 XFA_ProtoMerge_MergeNode(this, pUseHrefNode, pProtoNode); |
415 } | 415 } |
416 } | 416 } |
OLD | NEW |