| 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_SRC_FXFA_PARSER_XFA_OBJECT_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_ |
| 8 #define XFA_SRC_FXFA_PARSER_XFA_OBJECT_H_ | 8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ |
| 9 | 9 |
| 10 #include "xfa/src/fde/xml/fde_xml.h" | 10 #include "xfa/fde/xml/fde_xml.h" |
| 11 #include "xfa/src/fxfa/parser/xfa_utils.h" | 11 #include "xfa/fxfa/parser/xfa_utils.h" |
| 12 | 12 |
| 13 class CXFA_Document; | 13 class CXFA_Document; |
| 14 class CXFA_Node; | 14 class CXFA_Node; |
| 15 class CXFA_NodeList; | 15 class CXFA_NodeList; |
| 16 class CXFA_OrdinaryObject; | 16 class CXFA_OrdinaryObject; |
| 17 | 17 |
| 18 enum XFA_OBJECTTYPE { | 18 enum XFA_OBJECTTYPE { |
| 19 XFA_OBJECTTYPE_OrdinaryObject = 0x0, | 19 XFA_OBJECTTYPE_OrdinaryObject = 0x0, |
| 20 XFA_OBJECTTYPE_OrdinaryList = 0x1, | 20 XFA_OBJECTTYPE_OrdinaryList = 0x1, |
| 21 XFA_OBJECTTYPE_NodeList = 0x2, | 21 XFA_OBJECTTYPE_NodeList = 0x2, |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { | 793 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { |
| 794 return pObj ? pObj->AsNode() : nullptr; | 794 return pObj ? pObj->AsNode() : nullptr; |
| 795 } | 795 } |
| 796 inline const CXFA_OrdinaryObject* ToOrdinaryObject(const CXFA_Object* pObj) { | 796 inline const CXFA_OrdinaryObject* ToOrdinaryObject(const CXFA_Object* pObj) { |
| 797 return pObj ? pObj->AsOrdinaryObject() : nullptr; | 797 return pObj ? pObj->AsOrdinaryObject() : nullptr; |
| 798 } | 798 } |
| 799 inline const CXFA_NodeList* ToNodeList(const CXFA_Object* pObj) { | 799 inline const CXFA_NodeList* ToNodeList(const CXFA_Object* pObj) { |
| 800 return pObj ? pObj->AsNodeList() : nullptr; | 800 return pObj ? pObj->AsNodeList() : nullptr; |
| 801 } | 801 } |
| 802 | 802 |
| 803 #endif // XFA_SRC_FXFA_PARSER_XFA_OBJECT_H_ | 803 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ |
| OLD | NEW |