case LFUN_ARGUMENT_INSERT:
return new InsetArgument(buf);
- case LFUN_FLOAT_INSERT:
- return new InsetFloat(buf, to_utf8(cmd.argument()));
+ case LFUN_FLOAT_INSERT: {
+ string argument = to_utf8(cmd.argument());
+ if (!argument.empty()) {
+ if (!contains(argument, "sideways")) {
+ if (!contains(argument, "wide"))
+ argument += "\nwide false";
+ argument += "\nsideways false";
+ }
+ }
+ return new InsetFloat(buf, argument);
+ }
case LFUN_FLOAT_WIDE_INSERT: {
- InsetFloat * fl = new InsetFloat(buf, to_utf8(cmd.argument()));
+ string argument = to_utf8(cmd.argument());
+ if (!argument.empty()) {
+ if (!contains(argument, "sideways")) {
+ if (!contains(argument, "wide"))
+ argument += "\nwide true";
+ argument += "\nsideways false";
+ }
+ }
+ InsetFloat * fl = new InsetFloat(buf, argument);
fl->setWide(true);
return fl;
}
isp.kind = InsetSpaceParams::NORMAL;
else if (name == "protected")
isp.kind = InsetSpaceParams::PROTECTED;
+ else if (name == "visible")
+ isp.kind = InsetSpaceParams::VISIBLE;
else if (name == "thin")
isp.kind = InsetSpaceParams::THIN;
else if (isp.math && name == "med")
isp.kind = InsetSpaceParams::ENSKIP;
else if (name == "negthinspace")
isp.kind = InsetSpaceParams::NEGTHIN;
- else if (isp.math && name == "negmedspace")
+ else if (name == "negmedspace")
isp.kind = InsetSpaceParams::NEGMEDIUM;
- else if (isp.math && name == "negthickspace")
+ else if (name == "negthickspace")
isp.kind = InsetSpaceParams::NEGTHICK;
else if (name == "hfill")
isp.kind = InsetSpaceParams::HFILL;