summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtdorecord_deleterange.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-15 10:31:17 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-15 15:22:12 +0000
commit22fcbeaa80c54bef3bb6fd4180ba5519fab30962 (patch)
treeb1642f91b36d45b11b76d02c59547186dc6c524b /xfa/fde/cfde_txtedtdorecord_deleterange.h
parenta0377dc31bccf0e3427bd94fab5fed17c1283098 (diff)
downloadpdfium-22fcbeaa80c54bef3bb6fd4180ba5519fab30962.tar.xz
Hide the undo/redo record classes inside the engine
This CL moves the implementation of the records which handle undo/redo in the text edit engine into an anonymous namespace in the engine. Change-Id: I299b9738b72e3eccbbec972fd3ea956c491859fa Reviewed-on: https://pdfium-review.googlesource.com/11010 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtdorecord_deleterange.h')
-rw-r--r--xfa/fde/cfde_txtedtdorecord_deleterange.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/xfa/fde/cfde_txtedtdorecord_deleterange.h b/xfa/fde/cfde_txtedtdorecord_deleterange.h
deleted file mode 100644
index 7e1ab1021a..0000000000
--- a/xfa/fde/cfde_txtedtdorecord_deleterange.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_
-#define XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_
-
-#include "core/fxcrt/fx_string.h"
-#include "core/fxcrt/fx_system.h"
-#include "xfa/fde/ifde_txtedtdorecord.h"
-
-class CFDE_TxtEdtEngine;
-
-class CFDE_TxtEdtDoRecord_DeleteRange : public IFDE_TxtEdtDoRecord {
- public:
- CFDE_TxtEdtDoRecord_DeleteRange(CFDE_TxtEdtEngine* pEngine,
- int32_t nIndex,
- int32_t nCaret,
- const CFX_WideString& wsRange,
- bool bSel);
- ~CFDE_TxtEdtDoRecord_DeleteRange() override;
-
- bool Undo() const override;
- bool Redo() const override;
-
- private:
- CFDE_TxtEdtEngine* m_pEngine;
- bool m_bSel;
- int32_t m_nIndex;
- int32_t m_nCaret;
- CFX_WideString m_wsRange;
-};
-
-#endif // XFA_FDE_CFDE_TXTEDTDORECORD_DELETERANGE_H_