*
* LyX, The Document Processor
*
-* Copyright 1999-2000 The LyX Team.
+* Copyright 1999-2001 The LyX Team.
*
* ====================================================== */
#include "debug.h"
#include "gettext.h"
+#include "support/lstrings.h"
using std::ostream;
using std::setw;
using std::endl;
+namespace {
+
struct error_item {
Debug::type level;
char const * name;
char const * desc;
};
-static error_item errorTags[] = {
+
+error_item errorTags[] = {
{ Debug::NONE, "none", N_("No debugging message")},
{ Debug::INFO, "info", N_("General information")},
{ Debug::INIT, "init", N_("Program initialisation")},
{ Debug::DEPEND, "depend", N_("Dependency information")},
{ Debug::INSETS, "insets", N_("LyX Insets")},
{ Debug::FILES, "files", N_("Files used by LyX")},
- { Debug::ANY, "any", N_("All debugging messages")}
+ { Debug::WORKAREA, "workarea", N_("Workarea events")},
+ { Debug::INSETTEXT, "insettext", N_("Insettext/tabular messanges")},
+ { Debug::ANY, "any", N_("All debugging messages")}
};
-static const int numErrorTags = sizeof(errorTags)/sizeof(error_item);
+int const numErrorTags = sizeof(errorTags)/sizeof(error_item);
+
+} // namespace anon
Debug::type const Debug::ANY = Debug::type(
Debug::PARSER | Debug::LYXRC | Debug::KBMAP | Debug::LATEX |
Debug::MATHED | Debug::FONT | Debug::TCLASS | Debug::LYXVC |
Debug::LYXSERVER | Debug::ROFF | Debug::ACTION | Debug::LYXLEX |
- Debug::DEPEND | Debug::INSETS | Debug::FILES);
+ Debug::DEPEND | Debug::INSETS | Debug::FILES | Debug::WORKAREA |
+ Debug::INSETTEXT);
Debug::type Debug::value(string const & val)