OLD | NEW |
(Empty) | |
| 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_CONTENTLAYOUTITEM_H_ |
| 8 #define XFA_FXFA_PARSER_CXFA_TRAVERSESTRATEGY_CONTENTLAYOUTITEM_H_ |
| 9 |
| 10 #include "xfa/fxfa/parser/cxfa_contentlayoutitem.h" |
| 11 |
| 12 class CXFA_TraverseStrategy_ContentLayoutItem { |
| 13 public: |
| 14 static CXFA_ContentLayoutItem* GetFirstChild( |
| 15 CXFA_ContentLayoutItem* pLayoutItem) { |
| 16 return static_cast<CXFA_ContentLayoutItem*>(pLayoutItem->m_pFirstChild); |
| 17 } |
| 18 |
| 19 static CXFA_ContentLayoutItem* GetNextSibling( |
| 20 CXFA_ContentLayoutItem* pLayoutItem) { |
| 21 return static_cast<CXFA_ContentLayoutItem*>(pLayoutItem->m_pNextSibling); |
| 22 } |
| 23 |
| 24 static CXFA_ContentLayoutItem* GetParent( |
| 25 CXFA_ContentLayoutItem* pLayoutItem) { |
| 26 return static_cast<CXFA_ContentLayoutItem*>(pLayoutItem->m_pParent); |
| 27 } |
| 28 }; |
| 29 |
| 30 #endif // XFA_FXFA_PARSER_CXFA_TRAVERSESTRATEGY_CONTENTLAYOUTITEM_H_ |
OLD | NEW |