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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 const CXFA_Node* AsNode() const; | 79 const CXFA_Node* AsNode() const; |
80 const CXFA_OrdinaryObject* AsOrdinaryObject() const; | 80 const CXFA_OrdinaryObject* AsOrdinaryObject() const; |
81 const CXFA_NodeList* AsNodeList() const; | 81 const CXFA_NodeList* AsNodeList() const; |
82 | 82 |
83 XFA_ELEMENT GetClassID() const; | 83 XFA_ELEMENT GetClassID() const; |
84 void GetClassName(CFX_WideStringC& wsName) const; | 84 void GetClassName(CFX_WideStringC& wsName) const; |
85 uint32_t GetClassHashCode() const; | 85 uint32_t GetClassHashCode() const; |
86 void Script_ObjectClass_ClassName(CFXJSE_Value* pValue, | 86 void Script_ObjectClass_ClassName(CFXJSE_Value* pValue, |
87 FX_BOOL bSetting, | 87 FX_BOOL bSetting, |
88 XFA_ATTRIBUTE eAttribute); | 88 XFA_ATTRIBUTE eAttribute); |
89 void ThrowScriptErrorMessage(int32_t iStringID, ...); | 89 void ThrowException(int32_t iStringID, ...); |
90 | 90 |
91 protected: | 91 protected: |
92 CXFA_Document* const m_pDocument; | 92 CXFA_Document* const m_pDocument; |
93 uint32_t m_uFlags; | 93 uint32_t m_uFlags; |
94 }; | 94 }; |
95 using CXFA_ObjArray = CFX_ArrayTemplate<CXFA_Object*>; | 95 using CXFA_ObjArray = CFX_ArrayTemplate<CXFA_Object*>; |
96 | 96 |
97 #define XFA_NODEFILTER_Children 0x01 | 97 #define XFA_NODEFILTER_Children 0x01 |
98 #define XFA_NODEFILTER_Properties 0x02 | 98 #define XFA_NODEFILTER_Properties 0x02 |
99 #define XFA_NODEFILTER_OneOfProperty 0x04 | 99 #define XFA_NODEFILTER_OneOfProperty 0x04 |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 | 787 |
788 inline CXFA_Node* ToNode(CXFA_Object* pObj) { | 788 inline CXFA_Node* ToNode(CXFA_Object* pObj) { |
789 return pObj ? pObj->AsNode() : nullptr; | 789 return pObj ? pObj->AsNode() : nullptr; |
790 } | 790 } |
791 | 791 |
792 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { | 792 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { |
793 return pObj ? pObj->AsNode() : nullptr; | 793 return pObj ? pObj->AsNode() : nullptr; |
794 } | 794 } |
795 | 795 |
796 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ | 796 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ |
OLD | NEW |