| 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/src/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
| 8 #include "xfa/src/fxfa/src/common/xfa_utils.h" | 8 #include "xfa/src/fxfa/src/common/xfa_docdata.h" |
| 9 #include "xfa/src/fxfa/src/common/xfa_doclayout.h" |
| 10 #include "xfa/src/fxfa/src/common/xfa_document.h" |
| 11 #include "xfa/src/fxfa/src/common/xfa_fm2jsapi.h" |
| 12 #include "xfa/src/fxfa/src/common/xfa_localemgr.h" |
| 9 #include "xfa/src/fxfa/src/common/xfa_object.h" | 13 #include "xfa/src/fxfa/src/common/xfa_object.h" |
| 10 #include "xfa/src/fxfa/src/common/xfa_document.h" | |
| 11 #include "xfa/src/fxfa/src/common/xfa_parser.h" | 14 #include "xfa/src/fxfa/src/common/xfa_parser.h" |
| 12 #include "xfa/src/fxfa/src/common/xfa_script.h" | 15 #include "xfa/src/fxfa/src/common/xfa_script.h" |
| 13 #include "xfa/src/fxfa/src/common/xfa_docdata.h" | 16 #include "xfa/src/fxfa/src/common/xfa_utils.h" |
| 14 #include "xfa/src/fxfa/src/common/xfa_doclayout.h" | |
| 15 #include "xfa/src/fxfa/src/common/xfa_localemgr.h" | |
| 16 #include "xfa/src/fxfa/src/common/xfa_fm2jsapi.h" | |
| 17 #define XFA_HASHCODE_Group 0xf7f75fcd | 17 #define XFA_HASHCODE_Group 0xf7f75fcd |
| 18 class CXFA_TraverseStrategy_DDGroup { | 18 class CXFA_TraverseStrategy_DDGroup { |
| 19 public: | 19 public: |
| 20 static inline CXFA_Node* GetFirstChild(CXFA_Node* pDDGroupNode) { | 20 static inline CXFA_Node* GetFirstChild(CXFA_Node* pDDGroupNode) { |
| 21 return pDDGroupNode->GetFirstChildByName(XFA_HASHCODE_Group); | 21 return pDDGroupNode->GetFirstChildByName(XFA_HASHCODE_Group); |
| 22 } | 22 } |
| 23 static inline CXFA_Node* GetNextSibling(CXFA_Node* pDDGroupNode) { | 23 static inline CXFA_Node* GetNextSibling(CXFA_Node* pDDGroupNode) { |
| 24 return pDDGroupNode->GetNextSameNameSibling(XFA_HASHCODE_Group); | 24 return pDDGroupNode->GetNextSameNameSibling(XFA_HASHCODE_Group); |
| 25 } | 25 } |
| 26 static inline CXFA_Node* GetParent(CXFA_Node* pDDGroupNode) { | 26 static inline CXFA_Node* GetParent(CXFA_Node* pDDGroupNode) { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 pDataNode->SetEnum(XFA_ATTRIBUTE_Contains, XFA_ATTRIBUTEENUM_MetaData); | 116 pDataNode->SetEnum(XFA_ATTRIBUTE_Contains, XFA_ATTRIBUTEENUM_MetaData); |
| 117 } | 117 } |
| 118 pDataParent->InsertChild(pDataNode); | 118 pDataParent->InsertChild(pDataNode); |
| 119 pDataNode->SetDataDescriptionNode(pDDNode); | 119 pDataNode->SetDataDescriptionNode(pDDNode); |
| 120 pDataNode->SetFlag(XFA_NODEFLAG_Initialized, TRUE, FALSE); | 120 pDataNode->SetFlag(XFA_NODEFLAG_Initialized, TRUE, FALSE); |
| 121 return pDataNode; | 121 return pDataNode; |
| 122 } | 122 } |
| 123 return NULL; | 123 return NULL; |
| 124 } | 124 } |
| 125 } | 125 } |
| OLD | NEW |