| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_ | 7 #ifndef XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_ |
| 8 #define XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_ | 8 #define XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/fx_string.h" | 10 #include "core/fxcrt/fx_string.h" |
| 11 #include "core/fxcrt/fx_system.h" | 11 #include "core/fxcrt/fx_system.h" |
| 12 #include "xfa/fde/ifde_txtedtdorecord.h" | 12 #include "xfa/fde/ifde_txtedtdorecord.h" |
| 13 | 13 |
| 14 class CFDE_TxtEdtEngine; | 14 class CFDE_TxtEdtEngine; |
| 15 | 15 |
| 16 class CFDE_TxtEdtDoRecord_DeleteRange : public IFDE_TxtEdtDoRecord { | 16 class CFDE_TxtEdtDoRecord_DeleteRange : public IFDE_TxtEdtDoRecord { |
| 17 public: | 17 public: |
| 18 CFDE_TxtEdtDoRecord_DeleteRange(CFDE_TxtEdtEngine* pEngine, | 18 CFDE_TxtEdtDoRecord_DeleteRange(CFDE_TxtEdtEngine* pEngine, |
| 19 int32_t nIndex, | 19 int32_t nIndex, |
| 20 int32_t nCaret, | 20 int32_t nCaret, |
| 21 const CFX_WideString& wsRange, | 21 const CFX_WideString& wsRange, |
| 22 FX_BOOL bSel = FALSE); | 22 bool bSel = false); |
| 23 ~CFDE_TxtEdtDoRecord_DeleteRange() override; | 23 ~CFDE_TxtEdtDoRecord_DeleteRange() override; |
| 24 | 24 |
| 25 FX_BOOL Undo() const override; | 25 bool Undo() const override; |
| 26 FX_BOOL Redo() const override; | 26 bool Redo() const override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 CFDE_TxtEdtEngine* m_pEngine; | 29 CFDE_TxtEdtEngine* m_pEngine; |
| 30 FX_BOOL m_bSel; | 30 bool m_bSel; |
| 31 int32_t m_nIndex; | 31 int32_t m_nIndex; |
| 32 int32_t m_nCaret; | 32 int32_t m_nCaret; |
| 33 CFX_WideString m_wsRange; | 33 CFX_WideString m_wsRange; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 #endif // XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_ | 36 #endif // XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_ |
| OLD | NEW |