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_datawindow.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_datawindow.h"
8
9#include <vector>
10
11#include "fxjs/xfa/cfxjse_value.h"
12#include "third_party/base/containers/span.h"
13#include "xfa/fxfa/parser/cscript_datawindow.h"
14
15const CJX_MethodSpec CJX_DataWindow::MethodSpecs[] = {
16 {"gotoRecord", gotoRecord_static},
17 {"isRecordGroup", isRecordGroup_static},
18 {"moveCurrentRecord", moveCurrentRecord_static},
19 {"record", record_static}};
20
21CJX_DataWindow::CJX_DataWindow(CScript_DataWindow* window)
22 : CJX_Object(window) {
23 DefineMethods(MethodSpecs);
24}
25
26CJX_DataWindow::~CJX_DataWindow() = default;
27
28bool CJX_DataWindow::DynamicTypeIs(TypeTag eType) const {
29 return eType == static_type__ || ParentType__::DynamicTypeIs(eType);
30}
31
32CJS_Result CJX_DataWindow::moveCurrentRecord(
33 CFXJSE_Engine* runtime,
34 pdfium::span<v8::Local<v8::Value>> params) {
36}
37
38CJS_Result CJX_DataWindow::record(CFXJSE_Engine* runtime,
39 pdfium::span<v8::Local<v8::Value>> params) {
41}
42
43CJS_Result CJX_DataWindow::gotoRecord(
44 CFXJSE_Engine* runtime,
45 pdfium::span<v8::Local<v8::Value>> params) {
47}
48
49CJS_Result CJX_DataWindow::isRecordGroup(
50 CFXJSE_Engine* runtime,
51 pdfium::span<v8::Local<v8::Value>> params) {
53}
54
55void CJX_DataWindow::recordsBefore(v8::Isolate* pIsolate,
56 v8::Local<v8::Value>* pValue,
57 bool bSetting,
58 XFA_Attribute eAttribute) {}
59
60void CJX_DataWindow::currentRecordNumber(v8::Isolate* pIsolate,
61 v8::Local<v8::Value>* pValue,
62 bool bSetting,
63 XFA_Attribute eAttribute) {}
64
65void CJX_DataWindow::recordsAfter(v8::Isolate* pIsolate,
66 v8::Local<v8::Value>* pValue,
67 bool bSetting,
68 XFA_Attribute eAttribute) {}
69
70void CJX_DataWindow::isDefined(v8::Isolate* pIsolate,
71 v8::Local<v8::Value>* pValue,
72 bool bSetting,
73 XFA_Attribute eAttribute) {}
friend class EventParamScope
static CJS_Result Success()
Definition cjs_result.h:27
~CJX_DataWindow() override
bool DynamicTypeIs(TypeTag eType) const override
void DefineMethods(pdfium::span< const CJX_MethodSpec > methods)
virtual bool DynamicTypeIs(TypeTag eType) const
XFA_Attribute
Definition fxfa_basic.h:67