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 #ifndef XFA_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_ |
8 #define XFA_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_ | 8 #define XFA_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_ |
9 | 9 |
10 #include "xfa/fxfa/parser/xfa_object.h" | 10 #include "xfa/fxfa/parser/xfa_object.h" |
11 #include "xfa/fxfa/parser/xfa_script.h" | 11 #include "xfa/fxfa/parser/xfa_script.h" |
12 | 12 |
13 class CXFA_ScriptContext; | 13 class CXFA_ScriptContext; |
14 | 14 |
15 enum XFA_LOGIC_TYPE { | 15 enum XFA_LOGIC_TYPE { |
16 XFA_LOGIC_NoTransparent, | 16 XFA_LOGIC_NoTransparent, |
17 XFA_LOGIC_Transparent, | 17 XFA_LOGIC_Transparent, |
18 }; | 18 }; |
19 | 19 |
20 class CXFA_NodeHelper { | 20 class CXFA_NodeHelper { |
21 public: | 21 public: |
22 CXFA_NodeHelper(void); | 22 CXFA_NodeHelper(); |
23 ~CXFA_NodeHelper(void); | 23 ~CXFA_NodeHelper(); |
| 24 |
24 CXFA_Node* XFA_ResolveNodes_GetOneChild(CXFA_Node* parent, | 25 CXFA_Node* XFA_ResolveNodes_GetOneChild(CXFA_Node* parent, |
25 const FX_WCHAR* pwsName, | 26 const FX_WCHAR* pwsName, |
26 FX_BOOL bIsClassName = FALSE); | 27 FX_BOOL bIsClassName = FALSE); |
27 CXFA_Node* XFA_ResolveNodes_GetParent( | 28 CXFA_Node* XFA_ResolveNodes_GetParent( |
28 CXFA_Node* pNode, | 29 CXFA_Node* pNode, |
29 XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent); | 30 XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent); |
30 | 31 |
31 int32_t XFA_NodeAcc_TraverseSiblings(CXFA_Node* parent, | 32 int32_t XFA_NodeAcc_TraverseSiblings(CXFA_Node* parent, |
32 uint32_t dNameHash, | 33 uint32_t dNameHash, |
33 CXFA_NodeArray* pSiblings, | 34 CXFA_NodeArray* pSiblings, |
(...skipping 29 matching lines...) Expand all Loading... |
63 public: | 64 public: |
64 XFA_ELEMENT m_eLastCreateType; | 65 XFA_ELEMENT m_eLastCreateType; |
65 CXFA_Node* m_pCreateParent; | 66 CXFA_Node* m_pCreateParent; |
66 int32_t m_iCreateCount; | 67 int32_t m_iCreateCount; |
67 XFA_RESOVENODE_RSTYPE m_iCreateFlag; | 68 XFA_RESOVENODE_RSTYPE m_iCreateFlag; |
68 int32_t m_iCurAllStart; | 69 int32_t m_iCurAllStart; |
69 CXFA_Node* m_pAllStartParent; | 70 CXFA_Node* m_pAllStartParent; |
70 }; | 71 }; |
71 | 72 |
72 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_ | 73 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_ |
OLD | NEW |