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_OBJECT_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_ |
8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ | 8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ |
9 | 9 |
10 #include <unordered_set> | 10 #include <unordered_set> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 return m_objectType == XFA_ObjectType::VariablesThis; | 77 return m_objectType == XFA_ObjectType::VariablesThis; |
78 } | 78 } |
79 | 79 |
80 CXFA_Node* AsNode(); | 80 CXFA_Node* AsNode(); |
81 CXFA_NodeList* AsNodeList(); | 81 CXFA_NodeList* AsNodeList(); |
82 | 82 |
83 const CXFA_Node* AsNode() const; | 83 const CXFA_Node* AsNode() const; |
84 const CXFA_NodeList* AsNodeList() const; | 84 const CXFA_NodeList* AsNodeList() const; |
85 | 85 |
86 XFA_Element GetElementType() const; | 86 XFA_Element GetElementType() const; |
87 void GetClassName(CFX_WideStringC& wsName) const; | 87 CFX_WideStringC GetClassName() const; |
88 uint32_t GetClassHashCode() const; | 88 uint32_t GetClassHashCode() const; |
89 void Script_ObjectClass_ClassName(CFXJSE_Value* pValue, | 89 void Script_ObjectClass_ClassName(CFXJSE_Value* pValue, |
90 FX_BOOL bSetting, | 90 FX_BOOL bSetting, |
91 XFA_ATTRIBUTE eAttribute); | 91 XFA_ATTRIBUTE eAttribute); |
92 void ThrowException(int32_t iStringID, ...); | 92 void ThrowException(int32_t iStringID, ...); |
93 | 93 |
94 protected: | 94 protected: |
95 CXFA_Document* const m_pDocument; | 95 CXFA_Document* const m_pDocument; |
96 const XFA_ObjectType m_objectType; | 96 const XFA_ObjectType m_objectType; |
97 const XFA_Element m_elementType; | 97 const XFA_Element m_elementType; |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 | 801 |
802 inline CXFA_Node* ToNode(CXFA_Object* pObj) { | 802 inline CXFA_Node* ToNode(CXFA_Object* pObj) { |
803 return pObj ? pObj->AsNode() : nullptr; | 803 return pObj ? pObj->AsNode() : nullptr; |
804 } | 804 } |
805 | 805 |
806 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { | 806 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { |
807 return pObj ? pObj->AsNode() : nullptr; | 807 return pObj ? pObj->AsNode() : nullptr; |
808 } | 808 } |
809 | 809 |
810 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ | 810 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ |
OLD | NEW |