diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-08-15 10:31:17 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-15 15:22:12 +0000 |
commit | 22fcbeaa80c54bef3bb6fd4180ba5519fab30962 (patch) | |
tree | b1642f91b36d45b11b76d02c59547186dc6c524b /xfa/fde/cfde_txtedtdorecord_insert.h | |
parent | a0377dc31bccf0e3427bd94fab5fed17c1283098 (diff) | |
download | pdfium-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_insert.h')
-rw-r--r-- | xfa/fde/cfde_txtedtdorecord_insert.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/xfa/fde/cfde_txtedtdorecord_insert.h b/xfa/fde/cfde_txtedtdorecord_insert.h deleted file mode 100644 index 05922378d3..0000000000 --- a/xfa/fde/cfde_txtedtdorecord_insert.h +++ /dev/null @@ -1,33 +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_INSERT_H_ -#define XFA_FDE_CFDE_TXTEDTDORECORD_INSERT_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_Insert : public IFDE_TxtEdtDoRecord { - public: - CFDE_TxtEdtDoRecord_Insert(CFDE_TxtEdtEngine* pEngine, - int32_t nCaret, - const wchar_t* lpText, - int32_t nLength); - ~CFDE_TxtEdtDoRecord_Insert() override; - - bool Undo() const override; - bool Redo() const override; - - private: - CFDE_TxtEdtEngine* m_pEngine; - int32_t m_nCaret; - CFX_WideString m_wsInsert; -}; - -#endif // XFA_FDE_CFDE_TXTEDTDORECORD_INSERT_H_ |