dsinclair | 0b851ff | 2016-07-21 12:03:01 -0700 | [diff] [blame] | 1 | // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
| 7 | #ifndef XFA_FXFA_PARSER_CXFA_CONTENTLAYOUTITEM_H_ |
| 8 | #define XFA_FXFA_PARSER_CXFA_CONTENTLAYOUTITEM_H_ |
| 9 | |
| 10 | #include "xfa/fxfa/parser/cxfa_layoutitem.h" |
| 11 | |
| 12 | class CXFA_ContentLayoutItem : public CXFA_LayoutItem { |
| 13 | public: |
Dan Sinclair | 85c8e7f | 2016-11-21 13:50:32 -0500 | [diff] [blame] | 14 | explicit CXFA_ContentLayoutItem(CXFA_Node* pNode); |
dsinclair | 0b851ff | 2016-07-21 12:03:01 -0700 | [diff] [blame] | 15 | ~CXFA_ContentLayoutItem() override; |
| 16 | |
| 17 | CXFA_ContentLayoutItem* m_pPrev; |
| 18 | CXFA_ContentLayoutItem* m_pNext; |
| 19 | CFX_PointF m_sPos; |
| 20 | CFX_SizeF m_sSize; |
Lei Zhang | afc8eb3 | 2017-03-28 14:32:13 -0700 | [diff] [blame^] | 21 | mutable uint32_t m_dwStatus; |
dsinclair | 0b851ff | 2016-07-21 12:03:01 -0700 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | inline CXFA_ContentLayoutItem* ToContentLayoutItem(CXFA_LayoutItem* pItem) { |
| 25 | return pItem ? pItem->AsContentLayoutItem() : nullptr; |
| 26 | } |
| 27 | |
| 28 | #endif // XFA_FXFA_PARSER_CXFA_CONTENTLAYOUTITEM_H_ |