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 "../../../foxitlib.h" |
8 #include "../common/xfa_utils.h" | 8 #include "../common/xfa_utils.h" |
9 #include "../common/xfa_object.h" | 9 #include "../common/xfa_object.h" |
10 #include "../common/xfa_document.h" | 10 #include "../common/xfa_document.h" |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 XFA_RESOLVENODE_Children | XFA_RESOLVENODE_CreateNode; | 1194 XFA_RESOLVENODE_Children | XFA_RESOLVENODE_CreateNode; |
1195 XFA_RESOLVENODE_RS rs; | 1195 XFA_RESOLVENODE_RS rs; |
1196 pDocument->GetScriptContext()->ResolveObjects(pDataScope, wsRef, rs, | 1196 pDocument->GetScriptContext()->ResolveObjects(pDataScope, wsRef, rs, |
1197 dFlags, pTemplateNode); | 1197 dFlags, pTemplateNode); |
1198 CXFA_Object* pObject = (rs.nodes.GetSize() > 0) ? rs.nodes[0] : NULL; | 1198 CXFA_Object* pObject = (rs.nodes.GetSize() > 0) ? rs.nodes[0] : NULL; |
1199 pDataNode = | 1199 pDataNode = |
1200 (pObject && pObject->IsNode()) ? (CXFA_Node*)pObject : NULL; | 1200 (pObject && pObject->IsNode()) ? (CXFA_Node*)pObject : NULL; |
1201 if (pDataNode) { | 1201 if (pDataNode) { |
1202 XFA_DataMerge_CreateDataBinding( | 1202 XFA_DataMerge_CreateDataBinding( |
1203 pFormNode, pDataNode, | 1203 pFormNode, pDataNode, |
1204 rs.dwFlags == XFA_RESOVENODE_RSTYPE_ExistNodes ? TRUE : FALSE); | 1204 rs.dwFlags == XFA_RESOVENODE_RSTYPE_ExistNodes); |
1205 } else { | 1205 } else { |
1206 XFA_DataMerge_FormValueNode_MatchNoneCreateChild(pFormNode); | 1206 XFA_DataMerge_FormValueNode_MatchNoneCreateChild(pFormNode); |
1207 } | 1207 } |
1208 } | 1208 } |
1209 } break; | 1209 } break; |
1210 default: | 1210 default: |
1211 break; | 1211 break; |
1212 } | 1212 } |
1213 } | 1213 } |
1214 if (bMatchRef && | 1214 if (bMatchRef && |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 } | 1548 } |
1549 pFormRoot->SetObject(XFA_ATTRIBUTE_BindingNode, NULL); | 1549 pFormRoot->SetObject(XFA_ATTRIBUTE_BindingNode, NULL); |
1550 } | 1550 } |
1551 XFA_DataMerge_ClearGlobalBinding(this); | 1551 XFA_DataMerge_ClearGlobalBinding(this); |
1552 if (bDoDataMerge) { | 1552 if (bDoDataMerge) { |
1553 DoDataMerge(); | 1553 DoDataMerge(); |
1554 } | 1554 } |
1555 CXFA_LayoutProcessor* pLayoutProcessor = GetLayoutProcessor(); | 1555 CXFA_LayoutProcessor* pLayoutProcessor = GetLayoutProcessor(); |
1556 pLayoutProcessor->SetForceReLayout(TRUE); | 1556 pLayoutProcessor->SetForceReLayout(TRUE); |
1557 } | 1557 } |
OLD | NEW |