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_eventpseudomodel.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_EVENTPSEUDOMODEL_H_
8#define FXJS_XFA_CJX_EVENTPSEUDOMODEL_H_
9
10#include "fxjs/xfa/cjx_object.h"
11#include "fxjs/xfa/jse_define.h"
12
13class CScript_EventPseudoModel;
14
34
35class CJX_EventPseudoModel final : public CJX_Object {
36 public:
39
40 // CJX_Object:
41 bool DynamicTypeIs(TypeTag eType) const override;
42
44 JSE_METHOD(reset);
45
46 JSE_PROP(cancelAction);
47 JSE_PROP(change);
48 JSE_PROP(commitKey);
49 JSE_PROP(fullText);
50 JSE_PROP(keyDown);
51 JSE_PROP(modifier);
52 JSE_PROP(newContentType);
53 JSE_PROP(newText);
54 JSE_PROP(prevContentType);
55 JSE_PROP(prevText);
56 JSE_PROP(reenter);
57 JSE_PROP(selEnd);
58 JSE_PROP(selStart);
59 JSE_PROP(shift);
60 JSE_PROP(soapFaultCode);
61 JSE_PROP(soapFaultString);
62 JSE_PROP(target);
63
64 private:
65 explicit CJX_EventPseudoModel(CScript_EventPseudoModel* model);
66
67 using Type__ = CJX_EventPseudoModel;
68 using ParentType__ = CJX_Object;
69
70 static const TypeTag static_type__ = TypeTag::EventPseudoModel;
71 static const CJX_MethodSpec MethodSpecs[];
72
73 void Property(v8::Isolate* pIsolate,
74 v8::Local<v8::Value>* pValue,
75 XFA_Event dwFlag,
76 bool bSetting);
77};
78
79#endif // FXJS_XFA_CJX_EVENTPSEUDOMODEL_H_
@ PreviousContentType
CXFA_Node * GetEventTarget() const
CXFA_EventParam * GetEventParam() const
friend class EventParamScope
static CJS_Result Success()
Definition cjs_result.h:27
bool DynamicTypeIs(TypeTag eType) const override
~CJX_EventPseudoModel() override
void DefineMethods(pdfium::span< const CJX_MethodSpec > methods)
CXFA_Document * GetDocument() const
virtual bool DynamicTypeIs(TypeTag eType) const
WideString GetNewText() const
CXFA_EventParam & operator=(CXFA_EventParam &&other) noexcept
CXFA_EventParam(XFA_EVENTTYPE type)
void HandleWidgetEvent(CXFA_Node *pNode, CXFA_EventParam *pParam)
ByteString ToUTF8() const
@ XFA_EVENT_Unknown
XFA_Attribute
Definition fxfa_basic.h:67
#define CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Definition heap.h:32
#define JSE_PROP(prop_name)
Definition jse_define.h:28
#define JSE_METHOD(method_name)
Definition jse_define.h:17