From 89b7f12a3bd0a76c28ae781960f315fa313bfb09 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 3 Feb 2018 22:05:49 +0100 Subject: [PATCH] LFUN_DOC_ANONYMIZE -> LFUN_BUFFER_ANONYMIZE per JMarc's suggestion. --- src/BufferView.cpp | 4 ++-- src/FuncCode.h | 2 +- src/LyXAction.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 315fc1c726..63a8e2ba6c 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1134,7 +1134,7 @@ bool BufferView::getStatus(FuncRequest const & cmd, FuncStatus & flag) case LFUN_WORD_FIND_FORWARD: case LFUN_WORD_FIND_BACKWARD: case LFUN_WORD_REPLACE: - case LFUN_DOC_ANONYMIZE: + case LFUN_BUFFER_ANONYMIZE: case LFUN_MARK_OFF: case LFUN_MARK_ON: case LFUN_MARK_TOGGLE: @@ -1618,7 +1618,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) break; } - case LFUN_DOC_ANONYMIZE: { + case LFUN_BUFFER_ANONYMIZE: { for(char c = '0'; c <='Z'; c++) { odocstringstream ss; ss << "a\n" << c << "\n0 0 1 1 0"; diff --git a/src/FuncCode.h b/src/FuncCode.h index b8ca134325..4a5983147d 100644 --- a/src/FuncCode.h +++ b/src/FuncCode.h @@ -476,7 +476,7 @@ enum FuncCode LFUN_DEVEL_MODE_TOGGLE, // lasgouttes 20170723 //370 LFUN_EXPORT_CANCEL, // rgh, 20171227 - LFUN_DOC_ANONYMIZE, // sanda, 20180201 + LFUN_BUFFER_ANONYMIZE, // sanda, 20180201 LFUN_LASTACTION // end of the table }; diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 4373dd875c..687d47e27f 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -4220,14 +4220,14 @@ void LyXAction::init() { LFUN_WORD_REPLACE, "word-replace", Noop, Edit }, /*! - * \var lyx::FuncCode lyx::LFUN_DOC_ANONYMIZE + * \var lyx::FuncCode lyx::LFUN_BUFFER_ANONYMIZE * \li Action: For debug purposes only. Convert all [a-zA-Z0-1] characters to single character. Useful when submitting docs to list or bugzilla. * \li Syntax: doc-anonymize * \li Origin: sanda, Feb 1 2018 * \endvar */ - { LFUN_DOC_ANONYMIZE, "doc-anonymize", Noop, Edit }, + { LFUN_BUFFER_ANONYMIZE, "buffer-anonymize", Noop, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_WORD_RIGHT