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