xref: /aosp_15_r20/external/pdfium/xfa/fxfa/cxfa_eventparam.cpp (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2016 The PDFium Authors
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 CXFA_EventParam::CXFA_EventParam() = default;
10 
11 CXFA_EventParam::CXFA_EventParam(const CXFA_EventParam& other) = default;
12 
13 CXFA_EventParam::~CXFA_EventParam() = default;
14 
15 CXFA_EventParam& CXFA_EventParam::operator=(const CXFA_EventParam& other) =
16     default;
17 
18 CXFA_EventParam& CXFA_EventParam::operator=(CXFA_EventParam&& other) noexcept =
19     default;
20 
GetNewText() const21 WideString CXFA_EventParam::GetNewText() const {
22   return m_wsPrevText.First(m_iSelStart) + m_wsChange +
23          m_wsPrevText.Last(m_wsPrevText.GetLength() - m_iSelEnd);
24 }
25