summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cscript_eventpseudomodel.cpp
blob: 806a318d8c7cc633b29138b4c1a1ef4de723c2d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "xfa/fxfa/parser/cscript_eventpseudomodel.h"

#include "fxjs/cfxjse_arguments.h"
#include "fxjs/cjx_object.h"
#include "third_party/base/ptr_util.h"

CScript_EventPseudoModel::CScript_EventPseudoModel(CXFA_Document* pDocument)
    : CXFA_Object(pDocument,
                  XFA_ObjectType::Object,
                  XFA_Element::EventPseudoModel,
                  WideStringView(L"eventPseudoModel"),
                  pdfium::MakeUnique<CJX_EventPseudoModel>(this)) {}

CScript_EventPseudoModel::~CScript_EventPseudoModel() {}

void CScript_EventPseudoModel::Change(CFXJSE_Value* pValue,
                                      bool bSetting,
                                      XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->Change(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::CommitKey(CFXJSE_Value* pValue,
                                         bool bSetting,
                                         XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->CommitKey(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::FullText(CFXJSE_Value* pValue,
                                        bool bSetting,
                                        XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->FullText(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::KeyDown(CFXJSE_Value* pValue,
                                       bool bSetting,
                                       XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->KeyDown(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::Modifier(CFXJSE_Value* pValue,
                                        bool bSetting,
                                        XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->Modifier(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::NewContentType(CFXJSE_Value* pValue,
                                              bool bSetting,
                                              XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->NewContentType(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::NewText(CFXJSE_Value* pValue,
                                       bool bSetting,
                                       XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->NewText(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::PrevContentType(CFXJSE_Value* pValue,
                                               bool bSetting,
                                               XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->PrevContentType(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::PrevText(CFXJSE_Value* pValue,
                                        bool bSetting,
                                        XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->PrevText(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::Reenter(CFXJSE_Value* pValue,
                                       bool bSetting,
                                       XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->Reenter(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::SelEnd(CFXJSE_Value* pValue,
                                      bool bSetting,
                                      XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->SelEnd(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::SelStart(CFXJSE_Value* pValue,
                                        bool bSetting,
                                        XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->SelStart(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::Shift(CFXJSE_Value* pValue,
                                     bool bSetting,
                                     XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->Shift(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::SoapFaultCode(CFXJSE_Value* pValue,
                                             bool bSetting,
                                             XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->SoapFaultString(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::SoapFaultString(CFXJSE_Value* pValue,
                                               bool bSetting,
                                               XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->SoapFaultString(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::Target(CFXJSE_Value* pValue,
                                      bool bSetting,
                                      XFA_ATTRIBUTE eAttribute) {
  JSEventPseudoModel()->Target(pValue, bSetting, eAttribute);
}

void CScript_EventPseudoModel::Emit(CFXJSE_Arguments* pArguments) {
  JSEventPseudoModel()->Emit(pArguments);
}

void CScript_EventPseudoModel::Reset(CFXJSE_Arguments* pArguments) {
  JSEventPseudoModel()->Reset(pArguments);
}