switch (cmd.action()) {
- case LFUN_LINE_INSERT:
- return new InsetLine;
-
case LFUN_NEWPAGE_INSERT: {
string const name = cmd.getArg(0);
InsetNewpageParams inp;
return new InsetPrintNomencl(buf, icp);
}
- case LFUN_TOC_INSERT:
- return new InsetTOC(buf, InsetCommandParams(TOC_CODE));
-
case LFUN_INFO_INSERT: {
InsetInfo * inset = new InsetInfo(buf, to_utf8(cmd.argument()));
inset->updateInfo();
return new InsetLabel(buf, icp);
}
+ case LINE_CODE: {
+ InsetCommandParams icp(code);
+ InsetCommand::string2params(name, to_utf8(cmd.argument()), icp);
+ return new InsetLine(buf, icp);
+ }
+
case LISTINGS_CODE: {
InsetListingsParams par;
InsetListings::string2params(to_utf8(cmd.argument()), par);
case LABEL_CODE:
inset.reset(new InsetLabel(buf, inscmd));
break;
+ case LINE_CODE:
+ inset.reset(new InsetLine(buf, inscmd));
+ break;
case NOMENCL_CODE:
inset.reset(new InsetNomencl(buf, inscmd));
break;