#include "lyxlex.h"
#include "debug.h"
#include "lyxlex.h"
+#include "support/lstrings.h"
using std::endl;
add(LFUN_DEPTH);
add(SEPARATOR);
-#ifndef NO_LATEX
- add(LFUN_TEX);
-#endif
add(LFUN_MATH_MODE);
add(SEPARATOR);
void ToolbarDefaults::read(LyXLex & lex)
{
//consistency check
- if (compare_no_case(lex.GetString(), "toolbar"))
+ if (compare_no_case(lex.getString(), "toolbar")) {
lyxerr << "Toolbar::read: ERROR wrong token:`"
- << lex.GetString() << '\'' << endl;
+ << lex.getString() << '\'' << endl;
+ }
defaults.clear();
- string func;
bool quit = false;
lex.pushTable(toolTags, TO_LAST - 1);
if (lyxerr.debugging(Debug::PARSER))
lex.printTable(lyxerr);
- while (lex.IsOK() && !quit) {
+ while (lex.isOK() && !quit) {
switch (lex.lex()) {
case TO_ADD:
- if (lex.next()) {
- func = lex.GetString();
+ if (lex.next(true)) {
+ string const func = lex.getString();
lyxerr[Debug::PARSER]
<< "Toolbar::read TO_ADD func: `"
<< func << "'" << endl;
int const tf = lyxaction.LookupFunc(func);
if (tf == -1) {
- lyxerr << "Toolbar::add: no LyX command called`"
- << func << "'exists!" << endl;
+ lyxerr << "Toolbar::add: no LyX command called `"
+ << func << "' exists!" << endl;
} else {
add(tf);
}