OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_CXFA_LAYOUTITEM_H_ | 7 #ifndef XFA_FXFA_PARSER_CXFA_LAYOUTITEM_H_ |
8 #define XFA_FXFA_PARSER_CXFA_LAYOUTITEM_H_ | 8 #define XFA_FXFA_PARSER_CXFA_LAYOUTITEM_H_ |
9 | 9 |
10 #include "xfa/fxfa/parser/cxfa_document.h" | 10 #include "xfa/fxfa/parser/cxfa_document.h" |
11 | 11 |
12 class CXFA_ContainerLayoutItem; | 12 class CXFA_ContainerLayoutItem; |
13 class CXFA_ContentLayoutItem; | 13 class CXFA_ContentLayoutItem; |
14 class CXFA_LayoutProcessor; | 14 class CXFA_LayoutProcessor; |
15 | 15 |
| 16 void XFA_ReleaseLayoutItem(CXFA_LayoutItem* pLayoutItem); |
| 17 |
16 class CXFA_LayoutItem { | 18 class CXFA_LayoutItem { |
17 public: | 19 public: |
18 virtual ~CXFA_LayoutItem(); | 20 virtual ~CXFA_LayoutItem(); |
19 | 21 |
20 FX_BOOL IsContainerLayoutItem() const { return !m_bIsContentLayoutItem; } | 22 FX_BOOL IsContainerLayoutItem() const { return !m_bIsContentLayoutItem; } |
21 FX_BOOL IsContentLayoutItem() const { return m_bIsContentLayoutItem; } | 23 FX_BOOL IsContentLayoutItem() const { return m_bIsContentLayoutItem; } |
22 CXFA_ContainerLayoutItem* AsContainerLayoutItem(); | 24 CXFA_ContainerLayoutItem* AsContainerLayoutItem(); |
23 CXFA_ContentLayoutItem* AsContentLayoutItem(); | 25 CXFA_ContentLayoutItem* AsContentLayoutItem(); |
24 | 26 |
25 CXFA_ContainerLayoutItem* GetPage() const; | 27 CXFA_ContainerLayoutItem* GetPage() const; |
(...skipping 19 matching lines...) Expand all Loading... |
45 CXFA_LayoutItem* m_pNextSibling; | 47 CXFA_LayoutItem* m_pNextSibling; |
46 CXFA_LayoutItem* m_pFirstChild; | 48 CXFA_LayoutItem* m_pFirstChild; |
47 | 49 |
48 protected: | 50 protected: |
49 CXFA_LayoutItem(CXFA_Node* pNode, FX_BOOL bIsContentLayoutItem); | 51 CXFA_LayoutItem(CXFA_Node* pNode, FX_BOOL bIsContentLayoutItem); |
50 | 52 |
51 FX_BOOL m_bIsContentLayoutItem; | 53 FX_BOOL m_bIsContentLayoutItem; |
52 }; | 54 }; |
53 | 55 |
54 #endif // XFA_FXFA_PARSER_CXFA_LAYOUTITEM_H_ | 56 #endif // XFA_FXFA_PARSER_CXFA_LAYOUTITEM_H_ |
OLD | NEW |