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() = default;
12 
13 CXFA_EventParam::CXFA_EventParam(const CXFA_EventParam& other) = default;
14 
15 CXFA_EventParam::~CXFA_EventParam() = default;
16 
17 CXFA_EventParam& CXFA_EventParam::operator=(const CXFA_EventParam& other) =
18     default;
19 
20 CXFA_EventParam& CXFA_EventParam::operator=(CXFA_EventParam&& other) = default;
21 
GetNewText() const22 WideString CXFA_EventParam::GetNewText() const {
23   return m_wsPrevText.First(m_iSelStart) + m_wsChange +
24          m_wsPrevText.Last(m_wsPrevText.GetLength() - m_iSelEnd);
25 }
26