From faa41bfdf2e5e874b9a230070586da2d61842935 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Tue, 17 Jun 2008 19:44:10 +0000 Subject: [PATCH] Delete LFUN_MATH_IMPORT_SELECTION. This lfun is just duplicate of LFUN_MATH_MODE now. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25296 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/FuncCode.h | 1 - src/LyXAction.cpp | 4 ++-- src/Text3.cpp | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/FuncCode.h b/src/FuncCode.h index 8540fb3d69..9af6daea29 100644 --- a/src/FuncCode.h +++ b/src/FuncCode.h @@ -162,7 +162,6 @@ enum FuncCode LFUN_MATH_EXTERN, // Andre' 20010424 LFUN_MATH_MUTATE, // Andre' 20010523 // 110 - LFUN_MATH_IMPORT_SELECTION, // Andre' 20010704 LFUN_MATH_SPACE, // Andre' 20010725 LFUN_WORD_DELETE_FORWARD, LFUN_WORD_DELETE_BACKWARD, diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index c6a36e99ae..75c004849d 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -1397,7 +1397,6 @@ void LyXAction::init() * \endvar */ { LFUN_MATH_SPACE, "math-space", Noop, Math }, - { LFUN_MATH_IMPORT_SELECTION, "math-import-selection", Noop, Math }, /*! * \var lyx::FuncCode lyx::LFUN_MATH_MATRIX * \li Action: Inserts a matrix. @@ -1414,7 +1413,8 @@ void LyXAction::init() * \li Action: In text mode enters math mode (i.e. puts math insets on the current cursor position), in math mode enters text mode inside math expression. * \li Notion: If there is some selected text, it puts the text inside created math box. - * \li Syntax: math-mode + * \li Syntax: math-mode [] + * \li Params: : eventual argument (LaTeX code) is passed to #LFUN_MATH_INSERT . * \li Origin: Alejandro, 4 Jun 1996 * \endvar */ diff --git a/src/Text3.cpp b/src/Text3.cpp index 6bd82c1b55..fc06e9f876 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1467,7 +1467,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) mathDispatch(cur, cmd, true); break; - case LFUN_MATH_IMPORT_SELECTION: case LFUN_MATH_MODE: if (cmd.argument() == "on") // don't pass "on" as argument @@ -2194,7 +2193,6 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd, case LFUN_LINE_INSERT: case LFUN_NEWPAGE_INSERT: case LFUN_MATH_DISPLAY: - case LFUN_MATH_IMPORT_SELECTION: case LFUN_MATH_MODE: case LFUN_MATH_MACRO: case LFUN_MATH_MATRIX: