*
* LyX, The Document Processor
*
-* Copyright (C) 1999 The LyX Team.
+* Copyright 1999-2000 The LyX Team.
*
* ====================================================== */
#include "debug.h"
#include <iomanip>
+
+using std::ostream;
using std::setw;
+using std::endl;
struct error_item {
Debug::type level;
};
static error_item errorTags[] = {
+ { Debug::NONE, "none", "No debugging message"},
{ Debug::INFO, "info", "General information"},
{ Debug::INIT, "init", "Program initialisation"},
{ Debug::KEY, "key", "Keyboard events handling"},
{ Debug::ROFF, "roff", "Keep *roff temporary files"},
{ Debug::ACTION, "action", "User commands"},
{ Debug::LYXLEX, "lyxlex", "The LyX Lexxer"},
- { Debug::NONE, "none", "No debugging message"},
+ { Debug::DEPEND, "depend", "Dependency information"},
+ { Debug::INSETS, "insets", "LyX Insets"},
{ Debug::ANY, "any", "All debugging messages"}
};
while (!v.empty()) {
string::size_type st = v.find(',');
string tmp(lowercase(v.substr(0, st)));
- if (tmp.empty())
+ if (tmp.empty())
break;
// Is it a number?
if (isStrInt(tmp))
void Debug::showTags(ostream & os)
{
for (int i = 0 ; i < numErrorTags ; ++i)
- os << setw(5) << errorTags[i].level
+ os << setw(7) << errorTags[i].level
<< setw(10) << errorTags[i].name
<< " " << errorTags[i].desc << '\n';
os.flush();