1// Copyright 2016 PDFium Authors. All rights reserved.
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 "xfa/fxfa/cxfa_eventparam.h"
8
9#include "xfa/fxfa/fxfa.h"
10
11CXFA_EventParam::CXFA_EventParam()
12    : m_pTarget(nullptr),
13      m_eType(XFA_EVENT_Unknown),
14      m_bCancelAction(false),
15      m_iCommitKey(0),
16      m_bKeyDown(false),
17      m_bModifier(false),
18      m_bReenter(false),
19      m_iSelEnd(0),
20      m_iSelStart(0),
21      m_bShift(false),
22      m_bIsFormReady(false),
23      m_iValidateActivities(XFA_VALIDATE_preSubmit) {}
24
25CXFA_EventParam::~CXFA_EventParam() {}
26
27CXFA_EventParam::CXFA_EventParam(const CXFA_EventParam& other) = default;
28
29void CXFA_EventParam::Reset() {
30  m_wsChange.clear();
31  m_bCancelAction = false;
32  m_iCommitKey = 0;
33  m_wsFullText.clear();
34  m_bKeyDown = false;
35  m_bModifier = false;
36  m_wsNewContentType.clear();
37  m_wsNewText.clear();
38  m_wsPrevContentType.clear();
39  m_wsPrevText.clear();
40  m_bReenter = false;
41  m_iSelEnd = 0;
42  m_iSelStart = 0;
43  m_bShift = false;
44  m_wsSoapFaultCode.clear();
45  m_wsSoapFaultString.clear();
46  m_bIsFormReady = false;
47  m_iValidateActivities = XFA_VALIDATE_preSubmit;
48}
49