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_hostpseudomodel.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_HOSTPSEUDOMODEL_H_
8#define FXJS_XFA_CJX_HOSTPSEUDOMODEL_H_
9
10#include "fxjs/xfa/cjx_object.h"
11#include "fxjs/xfa/jse_define.h"
12#include "xfa/fxfa/fxfa_basic.h"
13
14class CScript_HostPseudoModel;
15
16class CJX_HostPseudoModel final : public CJX_Object {
17 public:
20
21 // CJX_Object:
22 bool DynamicTypeIs(TypeTag eType) const override;
23
25 JSE_METHOD(documentCountInBatch);
26 JSE_METHOD(documentInBatch);
27 JSE_METHOD(exportData);
28 JSE_METHOD(getFocus);
29 JSE_METHOD(gotoURL);
30 JSE_METHOD(importData);
31 JSE_METHOD(messageBox);
32 JSE_METHOD(openList);
33 JSE_METHOD(pageDown);
34 JSE_METHOD(pageUp);
35 JSE_METHOD(print);
36 JSE_METHOD(resetData);
37 JSE_METHOD(response);
38 JSE_METHOD(setFocus);
39
40 JSE_PROP(appType);
41 JSE_PROP(calculationsEnabled);
42 JSE_PROP(currentPage);
43 JSE_PROP(language);
44 JSE_PROP(numPages);
45 JSE_PROP(platform);
46 JSE_PROP(title);
47 JSE_PROP(validationsEnabled);
48 JSE_PROP(variation);
49 JSE_PROP(version);
50
51 // TODO(dsinclair): Remove when xfa_basic_data_element_script is removed.
52 // Doesn't exist in spec
53 JSE_PROP(name);
54
55 private:
56 explicit CJX_HostPseudoModel(CScript_HostPseudoModel* model);
57
58 using Type__ = CJX_HostPseudoModel;
59 using ParentType__ = CJX_Object;
60
61 static const TypeTag static_type__ = TypeTag::HostPseudoModel;
62 static const CJX_MethodSpec MethodSpecs[];
63};
64
65#endif // FXJS_XFA_CJX_HOSTPSEUDOMODEL_H_
XFA_ResolveFlag
CXFA_Object * GetThisObject() const
friend class EventParamScope
static CJS_Result Success()
Definition cjs_result.h:27
static CJS_Result Failure(JSMessage id)
Definition cjs_result.h:34
~CJX_HostPseudoModel() override
bool DynamicTypeIs(TypeTag eType) const override
void DefineMethods(pdfium::span< const CJX_MethodSpec > methods)
void ThrowInvalidPropertyException(v8::Isolate *pIsolate) const
CXFA_Document * GetDocument() const
virtual bool DynamicTypeIs(TypeTag eType) const
void ThrowException(v8::Isolate *pIsolate, const WideString &str) const
virtual WideString GetAppName()=0
virtual WideString GetPlatform()=0
virtual void Beep(uint32_t dwType)=0
virtual int32_t MsgBox(const WideString &wsMessage, const WideString &wsTitle, uint32_t dwIconType, uint32_t dwButtonType)=0
virtual WideString Response(const WideString &wsQuestion, const WideString &wsTitle, const WideString &wsDefaultAnswer, bool bMask)=0
virtual WideString GetLanguage()=0
void Print(int32_t nStartPage, int32_t nEndPage, Mask< XFA_PrintOpt > dwOptions)
void SetCurrentPage(int32_t iCurPage)
void SetCalculationsEnabled(bool bEnabled)
bool IsCalculationsEnabled() const
void SetValidationsEnabled(bool bEnabled)
WideString GetTitle() const
int32_t GetCurrentPage() const
bool IsValidationsEnabled() const
void ExportData(const WideString &wsFilePath, bool bXDP)
void SetTitle(const WideString &wsTitle)
int32_t CountPages() const
void ResetData(CXFA_Node *pNode)
void SetFocusWidgetNode(CXFA_Node *pNode)
CXFA_FFDoc * GetFFDoc() const
CXFA_FFApp::CallbackIface * GetAppProvider()
CXFA_Node * GetFocusWidgetNode()
void OpenDropDownList(CXFA_Node *pNode)
bool IsWidgetReady() const
Definition cxfa_node.h:327
ByteString ToUTF8() const
bool IsEmpty() const
Definition widestring.h:118
static WideString FromASCII(ByteStringView str)
AlertIcon
Definition fxfa.h:20
XFA_PrintOpt
Definition fxfa.h:45
AlertButton
Definition fxfa.h:11
XFA_Attribute
Definition fxfa_basic.h:67
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
JSMessage
#define JSE_PROP(prop_name)
Definition jse_define.h:28
#define JSE_METHOD(method_name)
Definition jse_define.h:17