]> git.lyx.org Git - lyx.git/blobdiff - src/debug.C
whitespace changes;
[lyx.git] / src / debug.C
index 6c2029a18f19b9a2463ce23a07cae0284074b7f6..321700a67fbbadbd13ce8ce6e9a1ebb9af48d013 100644 (file)
@@ -3,7 +3,7 @@
 * 
 *           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")},
@@ -49,11 +53,14 @@ static error_item errorTags[] = {
        { Debug::DEPEND,    "depend",    N_("Dependency information")},
        { Debug::INSETS,    "insets",    N_("LyX Insets")},
        { Debug::FILES,     "files",     N_("Files used by LyX")},
+       { Debug::WORKAREA,  "workarea",  N_("Workarea events")},
         { 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(
@@ -61,7 +68,7 @@ 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::type Debug::value(string const & val)