1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FXFA_PARSER_XFA_DOCUMENT_DATAMERGER_IMP_H_
8 #define XFA_FXFA_PARSER_XFA_DOCUMENT_DATAMERGER_IMP_H_
9 
10 #include <vector>
11 
12 #include "xfa/fxfa/fxfa_basic.h"
13 
14 class CXFA_Document;
15 class CXFA_Node;
16 
17 bool XFA_DataMerge_NeedGenerateForm(CXFA_Node* pTemplateChild,
18                                     bool bUseInstanceManager);
19 CXFA_Node* XFA_NodeMerge_CloneOrMergeContainer(
20     CXFA_Document* pDocument,
21     CXFA_Node* pFormParent,
22     CXFA_Node* pTemplateNode,
23     bool bRecursive,
24     std::vector<CXFA_Node*>* pSubformArray);
25 CXFA_Node* XFA_DataMerge_FindDataScope(CXFA_Node* pParentFormNode);
26 CXFA_Node* XFA_DataMerge_FindFormDOMInstance(CXFA_Document* pDocument,
27                                              XFA_Element eType,
28                                              uint32_t dwNameHash,
29                                              CXFA_Node* pFormParent);
30 
31 #endif  // XFA_FXFA_PARSER_XFA_DOCUMENT_DATAMERGER_IMP_H_
32