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_source.cpp
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#include "fxjs/xfa/cjx_source.h"
8
9#include "core/fxcrt/span.h"
10#include "fxjs/js_resources.h"
11#include "fxjs/xfa/cfxjse_value.h"
12#include "xfa/fxfa/parser/cxfa_source.h"
13
14const CJX_MethodSpec CJX_Source::MethodSpecs[] = {
15 {"addNew", addNew_static},
16 {"cancel", cancel_static},
17 {"cancelBatch", cancelBatch_static},
18 {"close", close_static},
19 {"delete", deleteItem_static},
20 {"first", first_static},
21 {"hasDataChanged", hasDataChanged_static},
22 {"isBOF", isBOF_static},
23 {"isEOF", isEOF_static},
24 {"last", last_static},
25 {"next", next_static},
26 {"open", open_static},
27 {"previous", previous_static},
28 {"requery", requery_static},
29 {"resync", resync_static},
30 {"update", update_static},
31 {"updateBatch", updateBatch_static}};
32
33CJX_Source::CJX_Source(CXFA_Source* src) : CJX_Node(src) {
34 DefineMethods(MethodSpecs);
35}
36
37CJX_Source::~CJX_Source() = default;
38
39bool CJX_Source::DynamicTypeIs(TypeTag eType) const {
40 return eType == static_type__ || ParentType__::DynamicTypeIs(eType);
41}
42
43CJS_Result CJX_Source::next(CFXJSE_Engine* runtime,
44 pdfium::span<v8::Local<v8::Value>> params) {
45 if (!params.empty())
47
49}
50
51CJS_Result CJX_Source::cancelBatch(CFXJSE_Engine* runtime,
52 pdfium::span<v8::Local<v8::Value>> params) {
53 if (!params.empty())
55
57}
58
59CJS_Result CJX_Source::first(CFXJSE_Engine* runtime,
60 pdfium::span<v8::Local<v8::Value>> params) {
61 if (!params.empty())
63
65}
66
67CJS_Result CJX_Source::updateBatch(CFXJSE_Engine* runtime,
68 pdfium::span<v8::Local<v8::Value>> params) {
69 if (!params.empty())
71
73}
74
75CJS_Result CJX_Source::previous(CFXJSE_Engine* runtime,
76 pdfium::span<v8::Local<v8::Value>> params) {
77 if (!params.empty())
79
81}
82
83CJS_Result CJX_Source::isBOF(CFXJSE_Engine* runtime,
84 pdfium::span<v8::Local<v8::Value>> params) {
85 if (!params.empty())
87
89}
90
91CJS_Result CJX_Source::isEOF(CFXJSE_Engine* runtime,
92 pdfium::span<v8::Local<v8::Value>> params) {
93 if (!params.empty())
95
97}
98
99CJS_Result CJX_Source::cancel(CFXJSE_Engine* runtime,
100 pdfium::span<v8::Local<v8::Value>> params) {
101 if (!params.empty())
103
105}
106
107CJS_Result CJX_Source::update(CFXJSE_Engine* runtime,
108 pdfium::span<v8::Local<v8::Value>> params) {
109 if (!params.empty())
111
113}
114
115CJS_Result CJX_Source::open(CFXJSE_Engine* runtime,
116 pdfium::span<v8::Local<v8::Value>> params) {
117 if (!params.empty())
119
121}
122
123CJS_Result CJX_Source::deleteItem(CFXJSE_Engine* runtime,
124 pdfium::span<v8::Local<v8::Value>> params) {
125 if (!params.empty())
127
129}
130
131CJS_Result CJX_Source::addNew(CFXJSE_Engine* runtime,
132 pdfium::span<v8::Local<v8::Value>> params) {
133 if (!params.empty())
135
137}
138
139CJS_Result CJX_Source::requery(CFXJSE_Engine* runtime,
140 pdfium::span<v8::Local<v8::Value>> params) {
141 if (!params.empty())
143
145}
146
147CJS_Result CJX_Source::resync(CFXJSE_Engine* runtime,
148 pdfium::span<v8::Local<v8::Value>> params) {
149 if (!params.empty())
151
153}
154
155CJS_Result CJX_Source::close(CFXJSE_Engine* runtime,
156 pdfium::span<v8::Local<v8::Value>> params) {
157 if (!params.empty())
159
161}
162
163CJS_Result CJX_Source::last(CFXJSE_Engine* runtime,
164 pdfium::span<v8::Local<v8::Value>> params) {
165 if (!params.empty())
167
169}
170
171CJS_Result CJX_Source::hasDataChanged(
172 CFXJSE_Engine* runtime,
173 pdfium::span<v8::Local<v8::Value>> params) {
174 if (!params.empty())
176
178}
179
180void CJX_Source::db(v8::Isolate* pIsolate,
181 v8::Local<v8::Value>* pValue,
182 bool bSetting,
183 XFA_Attribute eAttribute) {}
friend class EventParamScope
static CJS_Result Success()
Definition cjs_result.h:28
static CJS_Result Failure(JSMessage id)
Definition cjs_result.h:35
bool DynamicTypeIs(TypeTag eType) const override
Definition cjx_node.cpp:112
~CJX_Source() override
bool DynamicTypeIs(TypeTag eType) const override
XFA_Attribute
Definition fxfa_basic.h:67
JSMessage