blob: 500d3e4959f14c8d010e2965fa2f59f35d3c9b04 [file] [log] [blame]
dsinclair0b851ff2016-07-21 12:03:01 -07001// 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
12class CXFA_ContentLayoutItem : public CXFA_LayoutItem {
13 public:
Dan Sinclair85c8e7f2016-11-21 13:50:32 -050014 explicit CXFA_ContentLayoutItem(CXFA_Node* pNode);
dsinclair0b851ff2016-07-21 12:03:01 -070015 ~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 Zhangafc8eb32017-03-28 14:32:13 -070021 mutable uint32_t m_dwStatus;
dsinclair0b851ff2016-07-21 12:03:01 -070022};
23
24inline CXFA_ContentLayoutItem* ToContentLayoutItem(CXFA_LayoutItem* pItem) {
25 return pItem ? pItem->AsContentLayoutItem() : nullptr;
26}
27
28#endif // XFA_FXFA_PARSER_CXFA_CONTENTLAYOUTITEM_H_