#include "fxjs/xfa/cjx_hostpseudomodel.h"
#include "core/fxcrt/check.h"
#include "core/fxcrt/span.h"
#include "fxjs/fxv8.h"
#include "fxjs/js_resources.h"
#include "fxjs/xfa/cfxjse_engine.h"
#include "v8/include/v8-object.h"
#include "xfa/fxfa/cxfa_ffdoc.h"
#include "xfa/fxfa/cxfa_ffnotify.h"
#include "xfa/fxfa/parser/cscript_hostpseudomodel.h"
#include "xfa/fxfa/parser/cxfa_node.h"
namespace {
size_t FilterName(WideStringView wsExpression,
size_t nStart,
WideString& wsFilter) { … }
}
const CJX_MethodSpec CJX_HostPseudoModel::MethodSpecs[] = …;
CJX_HostPseudoModel::CJX_HostPseudoModel(CScript_HostPseudoModel* model)
: … { … }
CJX_HostPseudoModel::~CJX_HostPseudoModel() = default;
bool CJX_HostPseudoModel::DynamicTypeIs(TypeTag eType) const { … }
void CJX_HostPseudoModel::appType(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::calculationsEnabled(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::currentPage(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::language(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::numPages(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::platform(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::title(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::validationsEnabled(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::variation(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::version(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
void CJX_HostPseudoModel::name(v8::Isolate* pIsolate,
v8::Local<v8::Value>* pValue,
bool bSetting,
XFA_Attribute eAttribute) { … }
CJS_Result CJX_HostPseudoModel::gotoURL(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::openList(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::response(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::documentInBatch(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::resetData(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::beep(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::setFocus(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::getFocus(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::messageBox(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::documentCountInBatch(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::print(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::importData(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::exportData(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::pageUp(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }
CJS_Result CJX_HostPseudoModel::pageDown(
CFXJSE_Engine* runtime,
pdfium::span<v8::Local<v8::Value>> params) { … }