/// Special value of toclevel for layouts that to not belong in a TOC
const int Layout::NOT_IN_TOC = -1000;
/// Special value of toclevel for layouts that to not belong in a TOC
const int Layout::NOT_IN_TOC = -1000;
- font = Font(Font::ALL_INHERIT);
- labelfont = Font(Font::ALL_INHERIT);
- resfont = Font(Font::ALL_SANE);
- reslabelfont = Font(Font::ALL_SANE);
+ font = inherit_font;
+ labelfont = inherit_font;
+ resfont = sane_font;
+ reslabelfont = sane_font;
{ "parskip", LT_PARSKIP },
{ "passthru", LT_PASS_THRU },
{ "preamble", LT_PREAMBLE },
{ "parskip", LT_PARSKIP },
{ "passthru", LT_PASS_THRU },
{ "preamble", LT_PREAMBLE },
{ "rightmargin", LT_RIGHTMARGIN },
{ "spacing", LT_SPACING },
{ "textfont", LT_TEXTFONT },
{ "rightmargin", LT_RIGHTMARGIN },
{ "spacing", LT_SPACING },
{ "textfont", LT_TEXTFONT },
- TextClass::const_iterator it =
- tclass.begin();
- TextClass::const_iterator end =
- tclass.end();
- for (; it != end; ++it) {
- lyxerr << to_utf8((*it)->name())
+ for (size_t i = 0; i != tclass.layoutCount(); ++i)
+ lyxerr << to_utf8(tclass.layout(i)->name())