| 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 "xfa/fde/xml/fde_xml.h" | 10 #include "xfa/fde/xml/fde_xml.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 uint32_t GetClassHashCode() const; | 80 uint32_t GetClassHashCode() const; |
| 81 void Script_ObjectClass_ClassName(FXJSE_HVALUE hValue, | 81 void Script_ObjectClass_ClassName(FXJSE_HVALUE hValue, |
| 82 FX_BOOL bSetting, | 82 FX_BOOL bSetting, |
| 83 XFA_ATTRIBUTE eAttribute); | 83 XFA_ATTRIBUTE eAttribute); |
| 84 void ThrowScriptErrorMessage(int32_t iStringID, ...); | 84 void ThrowScriptErrorMessage(int32_t iStringID, ...); |
| 85 | 85 |
| 86 protected: | 86 protected: |
| 87 CXFA_Document* const m_pDocument; | 87 CXFA_Document* const m_pDocument; |
| 88 uint32_t m_uFlags; | 88 uint32_t m_uFlags; |
| 89 }; | 89 }; |
| 90 using CXFA_ObjArray = CFX_ArrayTemplate<CXFA_Object*>; |
| 90 | 91 |
| 91 #define XFA_NODEFILTER_Children 0x01 | 92 #define XFA_NODEFILTER_Children 0x01 |
| 92 #define XFA_NODEFILTER_Properties 0x02 | 93 #define XFA_NODEFILTER_Properties 0x02 |
| 93 #define XFA_NODEFILTER_OneOfProperty 0x04 | 94 #define XFA_NODEFILTER_OneOfProperty 0x04 |
| 94 #define XFA_CLONEFLAG_Content 0x01 | 95 #define XFA_CLONEFLAG_Content 0x01 |
| 95 enum XFA_NODEITEM { | 96 enum XFA_NODEITEM { |
| 96 XFA_NODEITEM_Parent, | 97 XFA_NODEITEM_Parent, |
| 97 XFA_NODEITEM_FirstChild, | 98 XFA_NODEITEM_FirstChild, |
| 98 XFA_NODEITEM_NextSibling, | 99 XFA_NODEITEM_NextSibling, |
| 99 XFA_NODEITEM_PrevSibling, | 100 XFA_NODEITEM_PrevSibling, |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 return pObj ? pObj->AsNode() : nullptr; | 796 return pObj ? pObj->AsNode() : nullptr; |
| 796 } | 797 } |
| 797 inline const CXFA_OrdinaryObject* ToOrdinaryObject(const CXFA_Object* pObj) { | 798 inline const CXFA_OrdinaryObject* ToOrdinaryObject(const CXFA_Object* pObj) { |
| 798 return pObj ? pObj->AsOrdinaryObject() : nullptr; | 799 return pObj ? pObj->AsOrdinaryObject() : nullptr; |
| 799 } | 800 } |
| 800 inline const CXFA_NodeList* ToNodeList(const CXFA_Object* pObj) { | 801 inline const CXFA_NodeList* ToNodeList(const CXFA_Object* pObj) { |
| 801 return pObj ? pObj->AsNodeList() : nullptr; | 802 return pObj ? pObj->AsNodeList() : nullptr; |
| 802 } | 803 } |
| 803 | 804 |
| 804 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ | 805 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ |
| OLD | NEW |