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_RESOLVEPROCESSOR_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_SCRIPT_RESOLVEPROCESSOR_H_ |
8 #define XFA_FXFA_PARSER_XFA_SCRIPT_RESOLVEPROCESSOR_H_ | 8 #define XFA_FXFA_PARSER_XFA_SCRIPT_RESOLVEPROCESSOR_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_NodeHelper; | 13 class CXFA_NodeHelper; |
14 class CXFA_ScriptContext; | 14 class CXFA_ScriptContext; |
15 | 15 |
16 class CXFA_ResolveNodesData { | 16 class CXFA_ResolveNodesData { |
17 public: | 17 public: |
18 CXFA_ResolveNodesData(CXFA_ScriptContext* pSC = NULL) | 18 CXFA_ResolveNodesData(CXFA_ScriptContext* pSC = nullptr) |
19 : m_pSC(pSC), | 19 : m_pSC(pSC), |
20 m_CurNode(NULL), | 20 m_CurNode(nullptr), |
21 m_wsName(), | 21 m_wsName(), |
22 m_uHashName(XFA_HASHCODE_None), | 22 m_uHashName(XFA_HASHCODE_None), |
23 m_wsCondition(), | 23 m_wsCondition(), |
24 m_nLevel(0), | 24 m_nLevel(0), |
25 m_Nodes(), | 25 m_Nodes(), |
26 m_dwStyles(XFA_RESOLVENODE_Children), | 26 m_dwStyles(XFA_RESOLVENODE_Children), |
27 m_pScriptAttribute(NULL), | 27 m_pScriptAttribute(nullptr), |
28 m_dwFlag(XFA_RESOVENODE_RSTYPE_Nodes) {} | 28 m_dwFlag(XFA_RESOVENODE_RSTYPE_Nodes) {} |
29 ~CXFA_ResolveNodesData() { m_Nodes.RemoveAll(); } | 29 ~CXFA_ResolveNodesData() { m_Nodes.RemoveAll(); } |
30 CXFA_ScriptContext* m_pSC; | 30 CXFA_ScriptContext* m_pSC; |
31 CXFA_Object* m_CurNode; | 31 CXFA_Object* m_CurNode; |
32 CFX_WideString m_wsName; | 32 CFX_WideString m_wsName; |
33 XFA_HashCode m_uHashName; | 33 XFA_HashCode m_uHashName; |
34 CFX_WideString m_wsCondition; | 34 CFX_WideString m_wsCondition; |
35 int32_t m_nLevel; | 35 int32_t m_nLevel; |
36 CXFA_ObjArray m_Nodes; | 36 CXFA_ObjArray m_Nodes; |
37 uint32_t m_dwStyles; | 37 uint32_t m_dwStyles; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 CXFA_NodeHelper* GetNodeHelper() { return m_pNodeHelper; } | 76 CXFA_NodeHelper* GetNodeHelper() { return m_pNodeHelper; } |
77 | 77 |
78 private: | 78 private: |
79 CXFA_NodeHelper* m_pNodeHelper; | 79 CXFA_NodeHelper* m_pNodeHelper; |
80 | 80 |
81 public: | 81 public: |
82 int32_t m_iCurStart; | 82 int32_t m_iCurStart; |
83 }; | 83 }; |
84 | 84 |
85 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_RESOLVEPROCESSOR_H_ | 85 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_RESOLVEPROCESSOR_H_ |
OLD | NEW |