From a7a31dc3924497373479621a1bae5bb195dcc6f2 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Mon, 14 Jul 2008 01:28:06 +0000 Subject: [PATCH] Remove LFUN_BIBITEM_INSERT. The last GUI trace for using this lfuns is here: http://www.lyx.org/trac/changeset/9966 . http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141812.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25588 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/FuncCode.h | 8 +++----- src/LyXAction.cpp | 1 - src/Text3.cpp | 6 ------ src/factory.cpp | 3 --- src/insets/InsetCollapsable.cpp | 1 - 5 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/FuncCode.h b/src/FuncCode.h index 5b3cecf006..1eb752f98a 100644 --- a/src/FuncCode.h +++ b/src/FuncCode.h @@ -133,6 +133,7 @@ enum FuncCode LFUN_SERVER_GET_XY, // 85 LFUN_SERVER_SET_XY, + LFUN_SPLIT_VIEW, LFUN_LINEATCURSOR, LFUN_SERVER_GET_LAYOUT, LFUN_SERVER_GET_FILENAME, @@ -287,7 +288,7 @@ enum FuncCode LFUN_ALL_CHANGES_ACCEPT, // Levon 20021016 LFUN_ALL_CHANGES_REJECT, // Levon 20021016 // 215 - LFUN_BIBITEM_INSERT, // André 14 Feb 2003 + LFUN_SCROLL, LFUN_DIALOG_SHOW, LFUN_DIALOG_SHOW_NEW_INSET, LFUN_DIALOG_UPDATE, @@ -397,15 +398,12 @@ enum FuncCode // 305 LFUN_MATH_MACRO_ADD_GREEDY_OPTIONAL_PARAM, LFUN_IN_MATHMACROTEMPLATE, - LFUN_SCROLL, - LFUN_SPLIT_VIEW, - // 310 LFUN_COMPLETION_POPUP, LFUN_COMPLETION_INLINE, LFUN_COMPLETION_COMPLETE, + // 310 LFUN_GRAPHICS_GROUPS_UNIFY, LFUN_SET_GRAPHICS_GROUP, - // 315 LFUN_LASTACTION // end of the table }; diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index e2465688cd..baf1c102c8 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -1197,7 +1197,6 @@ void LyXAction::init() */ { LFUN_FONT_STATE, "font-state", ReadOnly, Layout }, - { LFUN_BIBITEM_INSERT, "bibitem-insert", Noop, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_CITATION_INSERT * \li Action: Inserts citation from loaded citation database. diff --git a/src/Text3.cpp b/src/Text3.cpp index eb3b7de154..04d43915b1 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1360,7 +1360,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) case LFUN_FLEX_INSERT: case LFUN_BOX_INSERT: case LFUN_BRANCH_INSERT: - case LFUN_BIBITEM_INSERT: case LFUN_ERT_INSERT: case LFUN_LISTING_INSERT: case LFUN_MARGINALNOTE_INSERT: @@ -1865,11 +1864,6 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd, flag.setOnOff(cur.paragraph().params().startOfAppendix()); break; - case LFUN_BIBITEM_INSERT: - enable = (cur.paragraph().layout().labeltype == LABEL_BIBLIO - && cur.pos() == 0); - break; - case LFUN_DIALOG_SHOW_NEW_INSET: if (cmd.argument() == "bibitem") code = BIBITEM_CODE; diff --git a/src/factory.cpp b/src/factory.cpp index 64af453812..15bef4b387 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -141,9 +141,6 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd) case LFUN_OPTIONAL_INSERT: return new InsetOptArg(buf); - case LFUN_BIBITEM_INSERT: - return new InsetBibitem(buf, InsetCommandParams(BIBITEM_CODE)); - case LFUN_FLOAT_INSERT: { // check if the float type exists string const argument = to_utf8(cmd.argument()); diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index cd37ba003f..7cb36e2a9a 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -647,7 +647,6 @@ bool InsetCollapsable::getStatus(Cursor & cur, FuncRequest const & cmd, case LFUN_ACCENT_UNDERBAR: case LFUN_ACCENT_UNDERDOT: case LFUN_APPENDIX: - case LFUN_BIBITEM_INSERT: case LFUN_BOX_INSERT: case LFUN_BRANCH_INSERT: case LFUN_NEWLINE_INSERT: