-
- string name;
- lex >> name;
- if (!lex || name != name_)
- return print_mailer_error("InsetWrapMailer", in, 1, name_);
-
- // This is part of the inset proper that is usually swallowed
- // by LyXText::readInset
- string id;
- lex >> id;
- if (!lex || id != "Wrap")
- return print_mailer_error("InsetBoxMailer", in, 2, "Wrap");
-
- // We have to read the type here!
- lex >> params.type;
+ lex.setContext("InsetWrap::string2params");
+ lex >> "wrap";
+ lex >> "Wrap"; // Part of the inset proper, swallowed by Text::readInset
+ lex >> params.type; // We have to read the type here!