- 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());
- if (buf.params().documentClass().floats().typeExist(argument))
- return new InsetFloat(buf, argument);
- lyxerr << "Non-existent float type: " << argument << endl;
- }
+ case LFUN_FLOAT_INSERT:
+ return new InsetFloat(buf, to_utf8(cmd.argument()));