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: |
| 14 | CXFA_ContentLayoutItem(CXFA_Node* pNode); |
| 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; |
| 21 | uint32_t m_dwStatus; |
| 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_ |