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_list.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_LIST_H_
8#define XFA_FXFA_PARSER_CXFA_LIST_H_
9
10#include "fxjs/gc/heap.h"
11#include "xfa/fxfa/parser/cxfa_object.h"
12
13class CJX_Object;
14class CXFA_Document;
15class CXFA_Node;
16
17class CXFA_List : public CXFA_Object {
18 public:
20 ~CXFA_List() override;
21
22 virtual size_t GetLength() = 0;
23 virtual bool Append(CXFA_Node* pNode) = 0;
24 virtual bool Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) = 0;
25 virtual void Remove(CXFA_Node* pNode) = 0;
26 virtual CXFA_Node* Item(size_t iIndex) = 0;
27
28 protected:
29 CXFA_List(CXFA_Document* doc, CJX_Object* js_obj);
30 CXFA_List(CXFA_Document* pDocument,
31 XFA_ObjectType objectType,
32 XFA_Element eType,
33 CJX_Object* obj);
34};
35
36#endif // XFA_FXFA_PARSER_CXFA_LIST_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()
virtual void Remove(CXFA_Node *pNode)=0
~CXFA_List() override
virtual CXFA_Node * Item(size_t iIndex)=0
CXFA_List(CXFA_Document *doc, CJX_Object *js_obj)
Definition cxfa_list.cpp:15
virtual bool Append(CXFA_Node *pNode)=0
virtual size_t GetLength()=0
virtual bool Insert(CXFA_Node *pNewNode, CXFA_Node *pBeforeNode)=0
CXFA_List(CXFA_Document *pDocument, XFA_ObjectType objectType, XFA_Element eType, CJX_Object *obj)
Definition cxfa_list.cpp:18
void PersistList(CXFA_List *list)
~CXFA_TreeList() override
CXFA_Node * NamedItem(WideStringView wsName)
CXFA_TreeList(CXFA_Document *pDocument)
XFA_ObjectType
Definition cxfa_object.h:21
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