Backport from master.
case LFUN_WORD_FIND_FORWARD:
case LFUN_WORD_FIND_BACKWARD:
case LFUN_WORD_REPLACE:
+ case LFUN_DOC_ANONYMIZE:
case LFUN_MARK_OFF:
case LFUN_MARK_ON:
case LFUN_MARK_TOGGLE:
break;
}
+ case LFUN_DOC_ANONYMIZE: {
+ for(char c = '0'; c <='Z'; c++) {
+ odocstringstream ss;
+ ss << "a\n" << c << "\n0 0 1 1 0";
+ lyx::dispatch(FuncRequest(LFUN_WORD_REPLACE, ss.str()));
+ }
+ }
+
case LFUN_WORD_FINDADV: {
FindAndReplaceOptions opt;
istringstream iss(to_utf8(cmd.argument()));
LFUN_TOOLBAR_MOVABLE, // daniel, 20160712
LFUN_FONT_CROSSOUT, // uwestoehr 20170404
LFUN_DEVEL_MODE_TOGGLE, // lasgouttes 20170723
+ //370
+ LFUN_EXPORT_CANCEL, // rgh, 20171227
+ LFUN_DOC_ANONYMIZE, // sanda, 20180201
LFUN_LASTACTION // end of the table
};
*/
{ LFUN_WORD_REPLACE, "word-replace", Noop, Edit },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_DOC_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 },
+
/*!
* \var lyx::FuncCode lyx::LFUN_WORD_RIGHT
* \li Action: Moves the cursor to the next beginning of a word "on the right".