#include "TextClass.h"
#include "Lexer.h"
#include "Font.h"
-#include "support/debug.h"
-
+#include "support/debug.h"
#include "support/lstrings.h"
#include <ostream>
<< to_utf8(style) << "'\n"
<< "All layouts so far:"
<< endl;
- 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())
<< endl;
- }
//lexrc.printError("Cannot copy known "
// "style `$$Token'");
break;
case LT_REQUIRES:
- if (lexrc.eatLine())
- requires_ = getVectorFromString(lexrc.getString());
+ lexrc.eatLine();
+ vector<string> const req =
+ getVectorFromString(lexrc.getString());
+ requires_.insert(req.begin(), req.end());
break;
}
}
lexrc.popTable();
- return error;
+ return !error;
}