]> git.lyx.org Git - lyx.git/blobdiff - src/support/debug.cpp
add onoff support for "inset-modify changetype xxx" in include inset
[lyx.git] / src / support / debug.cpp
index a20e06b41593e56a2cdbdd05932763bc5f994f06..96e324dcccc823a0bf97adf32e8a6e508c55dba6 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  * \author Jean-Marc Lasgouttes
  *
  * Full author contact details are available in file CREDITS.
@@ -11,9 +11,8 @@
 
 #include <config.h>
 
-#include "support/debug.h"
-
 #include "support/convert.h"
+#include "support/debug.h"
 #include "support/gettext.h"
 #include "support/lstrings.h"
 #include "support/FileName.h"
 #include <iomanip>
 
 using namespace std;
+using namespace lyx::support;
 
 namespace lyx {
 
-using support::ascii_lowercase;
-using support::bformat;
-using support::isStrInt;
-
 namespace {
 
 struct ErrorItem {
@@ -53,9 +49,9 @@ ErrorItem errorTags[] = {
        { Debug::TCLASS,    "tclass",    N_("Textclass files reading")},
        { Debug::LYXVC,     "lyxvc",     N_("Version control")},
        { Debug::LYXSERVER, "lyxserver", N_("External control interface")},
-       { Debug::ROFF,      "roff",      N_("Keep *roff temporary files")},
+       { Debug::UNDO,      "undo",      N_("Undo/Redo mechanism")},
        { Debug::ACTION,    "action",    N_("User commands")},
-       { Debug::LYXLEX,    "lyxlex",    N_("The LyX Lexxer")},
+       { Debug::LYXLEX,    "lyxlex",    N_("The LyX Lexer")},
        { Debug::DEPEND,    "depend",    N_("Dependency information")},
        { Debug::INSETS,    "insets",    N_("LyX Insets")},
        { Debug::FILES,     "files",     N_("Files used by LyX")},
@@ -65,6 +61,11 @@ ErrorItem errorTags[] = {
        { Debug::CHANGES,   "changes",   N_("Change tracking")},
        { Debug::EXTERNAL,  "external",  N_("External template/inset messages")},
        { Debug::PAINTING,  "painting",  N_("RowPainter profiling")},
+       { Debug::SCROLLING, "scrolling", N_("Scrolling debugging")},
+       { Debug::MACROS,    "macros",    N_("Math macros")},
+       { Debug::RTL,       "rtl",       N_("RTL/Bidi")},
+       { Debug::LOCALE,    "locale",    N_("Locale/Internationalisation")},
+       { Debug::SELECTION, "selection", N_("Selection copy/paste mechanism")},
        { Debug::DEBUG,     "debug",     N_("Developers' general debug messages")},
        { Debug::ANY,       "any",       N_("All debugging messages")}
 };
@@ -171,20 +172,19 @@ LyXErr & operator<<(LyXErr & l, unsigned long t)
 { if (l.enabled()) l.stream() << t; return l; }
 LyXErr & operator<<(LyXErr & l, double t)
 { if (l.enabled()) l.stream() << t; return l; }
-LyXErr & operator<<(LyXErr & l, std::string const & t)
+LyXErr & operator<<(LyXErr & l, string const & t)
 { if (l.enabled()) l.stream() << t; return l; }
 LyXErr & operator<<(LyXErr & l, docstring const & t)
 { if (l.enabled()) l.stream() << to_utf8(t); return l; }
-LyXErr & operator<<(LyXErr & l, support::FileName const & t)
+LyXErr & operator<<(LyXErr & l, FileName const & t)
 { if (l.enabled()) l.stream() << t; return l; }
-LyXErr & operator<<(LyXErr & l, std::ostream &(*t)(std::ostream &))
+LyXErr & operator<<(LyXErr & l, ostream &(*t)(ostream &))
 { if (l.enabled()) l.stream() << t; return l; }
-LyXErr & operator<<(LyXErr & l, std::ios_base &(*t)(std::ios_base &))
+LyXErr & operator<<(LyXErr & l, ios_base &(*t)(ios_base &))
 { if (l.enabled()) l.stream() << t; return l; }
 
 
 // The global instance
 LyXErr lyxerr;
 
-
 } // namespace lyx