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_TRAVERSESTRATEGY_LAYOUTITEM_H_ 8 #define XFA_FXFA_PARSER_CXFA_TRAVERSESTRATEGY_LAYOUTITEM_H_ 9 10 #include "xfa/fxfa/parser/cxfa_layoutitem.h" 11 12 class CXFA_TraverseStrategy_LayoutItem { 13 public: GetFirstChild(CXFA_LayoutItem * pLayoutItem)14 static CXFA_LayoutItem* GetFirstChild(CXFA_LayoutItem* pLayoutItem) { 15 return pLayoutItem->m_pFirstChild; 16 } GetNextSibling(CXFA_LayoutItem * pLayoutItem)17 static CXFA_LayoutItem* GetNextSibling(CXFA_LayoutItem* pLayoutItem) { 18 return pLayoutItem->m_pNextSibling; 19 } GetParent(CXFA_LayoutItem * pLayoutItem)20 static CXFA_LayoutItem* GetParent(CXFA_LayoutItem* pLayoutItem) { 21 return pLayoutItem->m_pParent; 22 } 23 }; 24 25 #endif // XFA_FXFA_PARSER_CXFA_TRAVERSESTRATEGY_LAYOUTITEM_H_ 26