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 <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 5064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5075 CXFA_Node* pDstChild = pDstModule->GetNodeItem(XFA_NODEITEM_FirstChild); | 5075 CXFA_Node* pDstChild = pDstModule->GetNodeItem(XFA_NODEITEM_FirstChild); |
5076 for (; pSrcChild && pDstChild; | 5076 for (; pSrcChild && pDstChild; |
5077 pSrcChild = pSrcChild->GetNodeItem(XFA_NODEITEM_NextSibling), | 5077 pSrcChild = pSrcChild->GetNodeItem(XFA_NODEITEM_NextSibling), |
5078 pDstChild = pDstChild->GetNodeItem(XFA_NODEITEM_NextSibling)) { | 5078 pDstChild = pDstChild->GetNodeItem(XFA_NODEITEM_NextSibling)) { |
5079 MoveBufferMapData(pSrcChild, pDstChild, pKey, TRUE); | 5079 MoveBufferMapData(pSrcChild, pDstChild, pKey, TRUE); |
5080 } | 5080 } |
5081 } | 5081 } |
5082 pSrcModule->MoveBufferMapData(pDstModule, pKey); | 5082 pSrcModule->MoveBufferMapData(pDstModule, pKey); |
5083 } | 5083 } |
5084 | 5084 |
5085 CXFA_OrdinaryObject::CXFA_OrdinaryObject(CXFA_Document* pDocument, | |
5086 XFA_Element eElement) | |
5087 : CXFA_Object(pDocument, XFA_ObjectType::OrdinaryObject, eElement) {} | |
5088 | |
5089 CXFA_OrdinaryObject::~CXFA_OrdinaryObject() {} | |
5090 | |
5091 CXFA_ThisProxy::CXFA_ThisProxy(CXFA_Node* pThisNode, CXFA_Node* pScriptNode) | 5085 CXFA_ThisProxy::CXFA_ThisProxy(CXFA_Node* pThisNode, CXFA_Node* pScriptNode) |
5092 : CXFA_Object(pThisNode->GetDocument(), | 5086 : CXFA_Object(pThisNode->GetDocument(), |
5093 XFA_ObjectType::VariablesThis, | 5087 XFA_ObjectType::VariablesThis, |
5094 XFA_Element::Unknown), | 5088 XFA_Element::Unknown), |
5095 m_pThisNode(NULL), | 5089 m_pThisNode(NULL), |
5096 m_pScriptNode(NULL) { | 5090 m_pScriptNode(NULL) { |
5097 m_pThisNode = pThisNode; | 5091 m_pThisNode = pThisNode; |
5098 m_pScriptNode = pScriptNode; | 5092 m_pScriptNode = pScriptNode; |
5099 } | 5093 } |
5100 | 5094 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5280 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode); | 5274 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode); |
5281 } | 5275 } |
5282 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) { | 5276 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) { |
5283 return m_pAttachNode->RemoveChild(pNode); | 5277 return m_pAttachNode->RemoveChild(pNode); |
5284 } | 5278 } |
5285 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) { | 5279 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) { |
5286 return m_pAttachNode->GetChild( | 5280 return m_pAttachNode->GetChild( |
5287 iIndex, XFA_Element::Unknown, | 5281 iIndex, XFA_Element::Unknown, |
5288 m_pAttachNode->GetElementType() == XFA_Element::Subform); | 5282 m_pAttachNode->GetElementType() == XFA_Element::Subform); |
5289 } | 5283 } |
OLD | NEW |