• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CONTAINERLAYOUTITEM_H_
8 #define XFA_FXFA_PARSER_CXFA_CONTAINERLAYOUTITEM_H_
9 
10 #include "xfa/fxfa/parser/cxfa_layoutitem.h"
11 
12 class CXFA_ContainerLayoutItem : public CXFA_LayoutItem {
13  public:
14   explicit CXFA_ContainerLayoutItem(CXFA_Node* pNode);
15 
16   CXFA_LayoutProcessor* GetLayout() const;
17   int32_t GetPageIndex() const;
18   CFX_SizeF GetPageSize() const;
19   CXFA_Node* GetMasterPage() const;
20 
21   CXFA_Node* m_pOldSubform;
22 };
23 
ToContainerLayoutItem(CXFA_LayoutItem * pItem)24 inline CXFA_ContainerLayoutItem* ToContainerLayoutItem(CXFA_LayoutItem* pItem) {
25   return pItem ? pItem->AsContainerLayoutItem() : nullptr;
26 }
27 
28 #endif  // XFA_FXFA_PARSER_CXFA_CONTAINERLAYOUTITEM_H_
29