InsetSpaceParams params;
string2params(to_utf8(cmd.argument()), params);
status.setOnOff(params_.kind == params.kind);
- }
- // fall through
+ status.setEnabled(true);
+ } else
+ status.setEnabled(false);
+ return true;
+
case LFUN_INSET_DIALOG_UPDATE:
status.setEnabled(true);
return true;
}
-int InsetSpace::latex(odocstream & os, OutputParams const & runparams) const
+void InsetSpace::latex(otexstream & os, OutputParams const & runparams) const
{
switch (params_.kind) {
case InsetSpaceParams::NORMAL:
os << "\\hspace*{" << from_ascii(params_.length.asLatexString()) << "}";
break;
}
- return 0;
}
}
-void InsetSpace::tocString(odocstream & os) const
+void InsetSpace::toString(odocstream & os) const
{
plaintext(os, OutputParams(0));
}
+void InsetSpace::forToc(docstring & os, size_t) const
+{
+ // There's no need to be cute here.
+ os += " ";
+}
+
+
bool InsetSpace::isStretchableSpace() const
{
return params_.kind == InsetSpaceParams::HFILL