}
switch (cmd.action) {
- case LFUN_ERT_APPLY: {
+ case LFUN_INSET_APPLY: {
if (!bv)
return UNDISPATCHED;
string const InsetERTMailer::inset2string() const
{
- return params2string(inset_.status());
+ return params2string(name(), inset_.status());
}
InsetERT::ERTStatus & status)
{
status = InsetERT::Collapsed;
- if (in.empty())
+
+ string name;
+ string body = split(in, name, ' ');
+
+ if (body.empty())
return;
- status = static_cast<InsetERT::ERTStatus>(strToInt(in));
+ status = static_cast<InsetERT::ERTStatus>(strToInt(body));
}
string const
-InsetERTMailer::params2string(InsetERT::ERTStatus status)
+InsetERTMailer::params2string(string const & name, InsetERT::ERTStatus status)
{
- return tostr(status);
+ return name + ' ' + tostr(status);
}