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
cjx_instancemanager.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 FXJS_XFA_CJX_INSTANCEMANAGER_H_
8#define FXJS_XFA_CJX_INSTANCEMANAGER_H_
9
10#include "fxjs/xfa/cjx_node.h"
11#include "fxjs/xfa/jse_define.h"
12#include "v8/include/v8-forward.h"
13
14class CXFA_InstanceManager;
15
16class CJX_InstanceManager final : public CJX_Node {
17 public:
20
21 // CJX_Object:
22 bool DynamicTypeIs(TypeTag eType) const override;
23
24 JSE_METHOD(addInstance);
25 JSE_METHOD(insertInstance);
26 JSE_METHOD(moveInstance);
27 JSE_METHOD(removeInstance);
28 JSE_METHOD(setInstances);
29
30 JSE_PROP(count);
33
34 int32_t MoveInstance(v8::Isolate* pIsolate, int32_t iTo, int32_t iFrom);
35
36 private:
37 explicit CJX_InstanceManager(CXFA_InstanceManager* mgr);
38
39 using Type__ = CJX_InstanceManager;
40 using ParentType__ = CJX_Node;
41
42 static const TypeTag static_type__ = TypeTag::InstanceManager;
43 static const CJX_MethodSpec MethodSpecs[];
44
45 int32_t SetInstances(v8::Isolate* pIsolate, int32_t iDesired);
46};
47
48#endif // FXJS_XFA_CJX_INSTANCEMANAGER_H_
friend class EventParamScope
CXFA_Document * GetDocument() const
static CJS_Result Success()
Definition cjs_result.h:27
static CJS_Result Failure(JSMessage id)
Definition cjs_result.h:34
int32_t MoveInstance(v8::Isolate *pIsolate, int32_t iTo, int32_t iFrom)
~CJX_InstanceManager() override
bool DynamicTypeIs(TypeTag eType) const override
bool DynamicTypeIs(TypeTag eType) const override
Definition cjx_node.cpp:112
void DefineMethods(pdfium::span< const CJX_MethodSpec > methods)
void ThrowIndexOutOfBoundsException(v8::Isolate *pIsolate) const
void ThrowInvalidPropertyException(v8::Isolate *pIsolate) const
CXFA_Document * GetDocument() const
WideString GetCData(XFA_Attribute eAttr) const
CXFA_Node * GetXFANode() const
void ThrowTooManyOccurrencesException(v8::Isolate *pIsolate, const WideString &obj) const
FormType GetFormType() const
void RunNodeInitialize(CXFA_Node *pNode)
void RunSubformIndexChange(CXFA_Subform *pSubformNode)
uint32_t GetNameHash() const
Definition cxfa_node.h:190
CXFA_Node * GetItemIfExists(int32_t iIndex)
XFA_Element GetElementType() const
Definition cxfa_object.h:91
static constexpr int32_t kDefaultMax
Definition cxfa_occur.h:16
static constexpr int32_t kDefaultMin
Definition cxfa_occur.h:17
int32_t GetMax()
int32_t GetMin()
static CXFA_Subform * FromNode(CXFA_Node *pNode)
bool IsEmpty() const
Definition widestring.h:118
FormType
Definition fxfa.h:38
XFA_Attribute
Definition fxfa_basic.h:67
XFA_Element
Definition fxfa_basic.h:75
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
JSMessage
@ kNotSupportedError
@ kTooManyOccurrences
@ kInvalidInputError
#define JSE_PROP(prop_name)
Definition jse_define.h:28
#define JSE_METHOD(method_name)
Definition jse_define.h:17