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
This commit is contained in:
Pavel Sanda 2008-07-14 01:28:06 +00:00
parent 16efece522
commit a7a31dc392
5 changed files with 3 additions and 16 deletions

View File

@ -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
};

View File

@ -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.

View File

@ -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;

View File

@ -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());

View File

@ -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: