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 11 CXFA_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 24 CXFA_EventParam::~CXFA_EventParam() {} 25 26 CXFA_EventParam::CXFA_EventParam(const CXFA_EventParam& other) = default; 27 28 void CXFA_EventParam::Reset() { 29 m_wsChange.clear(); 30 m_bCancelAction = false; 31 m_iCommitKey = 0; 32 m_wsFullText.clear(); 33 m_bKeyDown = false; 34 m_bModifier = false; 35 m_wsNewContentType.clear(); 36 m_wsNewText.clear(); 37 m_wsPrevContentType.clear(); 38 m_wsPrevText.clear(); 39 m_bReenter = false; 40 m_iSelEnd = 0; 41 m_iSelStart = 0; 42 m_bShift = false; 43 m_wsSoapFaultCode.clear(); 44 m_wsSoapFaultString.clear(); 45 m_bIsFormReady = false; 46 } 47