Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cxfa_arraynodelist.h
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
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_ARRAYNODELIST_H_
8#define XFA_FXFA_PARSER_CXFA_ARRAYNODELIST_H_
9
10#include <vector>
11
12#include "v8/include/cppgc/member.h"
13#include "v8/include/cppgc/visitor.h"
14#include "xfa/fxfa/parser/cxfa_treelist.h"
15
16class CXFA_Document;
17class CXFA_Node;
18
19class CXFA_ArrayNodeList final : public CXFA_TreeList {
20 public:
22 ~CXFA_ArrayNodeList() override;
23
24 void Trace(cppgc::Visitor* visitor) const override;
25
26 // CXFA_TreeList:
27 size_t GetLength() override;
28 bool Append(CXFA_Node* pNode) override;
29 bool Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) override;
30 void Remove(CXFA_Node* pNode) override;
31 CXFA_Node* Item(size_t iIndex) override;
32
33 void SetArrayNodeList(const std::vector<CXFA_Node*>& srcArray);
34
35 private:
36 explicit CXFA_ArrayNodeList(CXFA_Document* pDocument);
37
38 std::vector<cppgc::Member<CXFA_Node>> m_array;
39};
40
41#endif // XFA_FXFA_PARSER_CXFA_ARRAYNODELIST_H_
XFA_ResolveFlag
friend class EventParamScope
static CJS_Result Success()
Definition cjs_result.h:27
bool DynamicTypeIs(TypeTag eType) const override
~CJX_Container() override
CJX_Container(CXFA_Node *node)
~CJX_Node() override
bool DynamicTypeIs(TypeTag eType) const override
Definition cjx_node.cpp:112
CJX_Node(CXFA_Node *node)
Definition cjx_node.cpp:106
XFA_EventError execSingleEventByName(WideStringView wsEventName, XFA_Element eType)
Definition cjx_node.cpp:468
void DefineMethods(pdfium::span< const CJX_MethodSpec > methods)
CXFA_Document * GetDocument() const
CJX_Tree(CXFA_Object *obj)
Definition cjx_tree.cpp:30
bool DynamicTypeIs(TypeTag eType) const override
Definition cjx_tree.cpp:36
~CJX_Tree() override
size_t GetLength() override
CXFA_Node * Item(size_t iIndex) override
~CXFA_ArrayNodeList() override
bool Append(CXFA_Node *pNode) override
void SetArrayNodeList(const std::vector< CXFA_Node * > &srcArray)
void Remove(CXFA_Node *pNode) override
void Trace(cppgc::Visitor *visitor) const override
bool Insert(CXFA_Node *pNewNode, CXFA_Node *pBeforeNode) override
CXFA_NodeOwner * GetNodeOwner()
void PersistList(CXFA_List *list)
XFA_EventError
Definition fxfa.h:54
XFA_Element
Definition fxfa_basic.h:75
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
#define JSE_PROP(prop_name)
Definition jse_define.h:28
#define JSE_METHOD(method_name)
Definition jse_define.h:17
Definition heap.h:12