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 #ifndef XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_
8 #define XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_
9 
10 #include "core/fxcrt/fx_string.h"
11 #include "core/fxcrt/fx_system.h"
12 #include "xfa/fde/ifde_txtedtdorecord.h"
13 
14 class CFDE_TxtEdtEngine;
15 
16 class CFDE_TxtEdtDoRecord_DeleteRange : public IFDE_TxtEdtDoRecord {
17  public:
18   CFDE_TxtEdtDoRecord_DeleteRange(CFDE_TxtEdtEngine* pEngine,
19                                   int32_t nIndex,
20                                   int32_t nCaret,
21                                   const CFX_WideString& wsRange,
22                                   bool bSel = false);
23   ~CFDE_TxtEdtDoRecord_DeleteRange() override;
24 
25   bool Undo() const override;
26   bool Redo() const override;
27 
28  private:
29   CFDE_TxtEdtEngine* m_pEngine;
30   bool m_bSel;
31   int32_t m_nIndex;
32   int32_t m_nCaret;
33   CFX_WideString m_wsRange;
34 };
35 
36 #endif  // XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_
37