| 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 "xfa/fxfa/parser/xfa_object.h" | 7 #include "xfa/fxfa/parser/xfa_object.h" |
| 8 | 8 |
| 9 #include "core/fxcrt/include/fx_ext.h" | 9 #include "core/fxcrt/include/fx_ext.h" |
| 10 #include "xfa/fde/xml/fde_xml_imp.h" | 10 #include "xfa/fde/xml/fde_xml_imp.h" |
| (...skipping 4450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4461 return ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_ConnectionSet)); | 4461 return ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_ConnectionSet)); |
| 4462 case XFA_XDPPACKET_SourceSet: | 4462 case XFA_XDPPACKET_SourceSet: |
| 4463 return ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_SourceSet)); | 4463 return ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_SourceSet)); |
| 4464 case XFA_XDPPACKET_Xdc: | 4464 case XFA_XDPPACKET_Xdc: |
| 4465 return ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_Xdc)); | 4465 return ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_Xdc)); |
| 4466 default: | 4466 default: |
| 4467 return this; | 4467 return this; |
| 4468 } | 4468 } |
| 4469 } | 4469 } |
| 4470 FX_BOOL CXFA_Node::TryNamespace(CFX_WideString& wsNamespace) { | 4470 FX_BOOL CXFA_Node::TryNamespace(CFX_WideString& wsNamespace) { |
| 4471 wsNamespace.Empty(); | 4471 wsNamespace.clear(); |
| 4472 if (GetObjectType() == XFA_OBJECTTYPE_ModelNode || | 4472 if (GetObjectType() == XFA_OBJECTTYPE_ModelNode || |
| 4473 GetClassID() == XFA_ELEMENT_Packet) { | 4473 GetClassID() == XFA_ELEMENT_Packet) { |
| 4474 CFDE_XMLNode* pXMLNode = GetXMLMappingNode(); | 4474 CFDE_XMLNode* pXMLNode = GetXMLMappingNode(); |
| 4475 if (!pXMLNode || pXMLNode->GetType() != FDE_XMLNODE_Element) { | 4475 if (!pXMLNode || pXMLNode->GetType() != FDE_XMLNODE_Element) { |
| 4476 return FALSE; | 4476 return FALSE; |
| 4477 } | 4477 } |
| 4478 static_cast<CFDE_XMLElement*>(pXMLNode)->GetNamespaceURI(wsNamespace); | 4478 static_cast<CFDE_XMLElement*>(pXMLNode)->GetNamespaceURI(wsNamespace); |
| 4479 return TRUE; | 4479 return TRUE; |
| 4480 } else if (GetPacketID() == XFA_XDPPACKET_Datasets) { | 4480 } else if (GetPacketID() == XFA_XDPPACKET_Datasets) { |
| 4481 CFDE_XMLNode* pXMLNode = GetXMLMappingNode(); | 4481 CFDE_XMLNode* pXMLNode = GetXMLMappingNode(); |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5410 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode); | 5410 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode); |
| 5411 } | 5411 } |
| 5412 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) { | 5412 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) { |
| 5413 return m_pAttachNode->RemoveChild(pNode); | 5413 return m_pAttachNode->RemoveChild(pNode); |
| 5414 } | 5414 } |
| 5415 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) { | 5415 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) { |
| 5416 return m_pAttachNode->GetChild( | 5416 return m_pAttachNode->GetChild( |
| 5417 iIndex, XFA_ELEMENT_UNKNOWN, | 5417 iIndex, XFA_ELEMENT_UNKNOWN, |
| 5418 m_pAttachNode->GetClassID() == XFA_ELEMENT_Subform); | 5418 m_pAttachNode->GetClassID() == XFA_ELEMENT_Subform); |
| 5419 } | 5419 } |
| OLD | NEW |