- string const desc = lex.getString();
- lyxerr[Debug::TCLASS]
- << "Desc: " << desc << endl;
- // This code is run when we have
- // fname, clname and desc
- LyXTextClass tmpl(fname,
- clname,
- desc);
- if (lyxerr.
- debugging(Debug::TCLASS)) {
- tmpl.load();
- }
- Add (tmpl);
+ string const desc = lex.getString();
+ lyxerr[Debug::TCLASS] << "Desc: " << desc << endl;
+ if (lex.next()) {
+ bool avail = lex.getBool();
+ lyxerr[Debug::TCLASS] << "Avail: " << avail << endl;
+ // This code is run when we have
+ // fname, clname, desc, and avail
+ LyXTextClass tmpl(fname, clname, desc, avail);
+ if (lyxerr.debugging(Debug::TCLASS)) {
+ tmpl.load();
+ }
+ classlist_.push_back(tmpl);
+ }