summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_eventparam.cpp
blob: bd6742f4dd94a0e8f63075f85c31210b015a4072 (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
// Copyright 2016 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/cxfa_eventparam.h"

#include "xfa/fxfa/fxfa.h"

CXFA_EventParam::CXFA_EventParam()
    : m_pTarget(nullptr),
      m_eType(XFA_EVENT_Unknown),
      m_bCancelAction(false),
      m_iCommitKey(0),
      m_bKeyDown(false),
      m_bModifier(false),
      m_bReenter(false),
      m_iSelEnd(0),
      m_iSelStart(0),
      m_bShift(false),
      m_bIsFormReady(false) {}

CXFA_EventParam::~CXFA_EventParam() {}

CXFA_EventParam::CXFA_EventParam(const CXFA_EventParam& other) = default;

void CXFA_EventParam::Reset() {
  m_wsChange.clear();
  m_bCancelAction = false;
  m_iCommitKey = 0;
  m_wsFullText.clear();
  m_bKeyDown = false;
  m_bModifier = false;
  m_wsNewContentType.clear();
  m_wsNewText.clear();
  m_wsPrevContentType.clear();
  m_wsPrevText.clear();
  m_bReenter = false;
  m_iSelEnd = 0;
  m_iSelStart = 0;
  m_bShift = false;
  m_wsSoapFaultCode.clear();
  m_wsSoapFaultString.clear();
  m_bIsFormReady = false;
}