• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 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_ATTACHNODELIST_H_
8 #define XFA_FXFA_PARSER_CXFA_ATTACHNODELIST_H_
9 
10 #include "xfa/fxfa/parser/cxfa_treelist.h"
11 
12 class CXFA_Document;
13 class CXFA_Node;
14 
15 class CXFA_AttachNodeList : public CXFA_TreeList {
16  public:
17   CXFA_AttachNodeList(CXFA_Document* pDocument, CXFA_Node* pAttachNode);
18 
19   // From CXFA_TreeList.
20   size_t GetLength() override;
21   bool Append(CXFA_Node* pNode) override;
22   bool Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) override;
23   bool Remove(CXFA_Node* pNode) override;
24   CXFA_Node* Item(size_t iIndex) override;
25 
26  private:
27   CXFA_Node* m_pAttachNode;
28 };
29 
30 #endif  // XFA_FXFA_PARSER_CXFA_ATTACHNODELIST_H_
31