+ bool token_found = false;
+ if (lex.isOK()) {
+ lex.next();
+ string const token = lex.getString();
+ if (token == "status") {
+ lex.next();
+ string const tmp_token = lex.getString();
+
+ if (tmp_token == "Inlined") {
+ status(0, Inlined);
+ } else if (tmp_token == "Collapsed") {
+ status(0, Collapsed);
+ } else {
+ // leave this as default!
+ status(0, Open);
+ }
+
+ token_found = true;
+ } else {
+ lyxerr << "InsetERT::Read: Missing 'status'-tag!"
+ << endl;
+ // take countermeasures
+ lex.pushToken(token);
+ }
+ }
+#if 0
+#warning this should be really short lived only for compatibility to
+#warning files written 07/08/2001 so this has to go before 1.2.0! (Jug)
+ if (lex.isOK()) {
+ lex.next();
+ string const token = lex.getString();
+ if (token == "collapsed") {
+ lex.next();
+ collapsed_ = lex.getBool();
+ } else {
+ // Take countermeasures
+ lex.pushToken(token);
+ }
+ }
+#endif
+ inset.read(buf, lex);
+
+#ifndef INHERIT_LANG
+ LyXFont font(LyXFont::ALL_INHERIT, latex_language);
+#else
+ LyXFont font(LyXFont::ALL_INHERIT);
+#endif
+
+ font.setFamily(LyXFont::TYPEWRITER_FAMILY);
+ font.setColor(LColor::latex);
+ Paragraph * par = inset.paragraph();
+ while (par) {
+ pos_type siz = par->size();
+ for (pos_type i = 0; i < siz; ++i) {
+ par->setFont(i, font);
+ }
+ par = par->next();
+ }