]> git.lyx.org Git - lyx.git/blobdiff - src/debug.h
Small fixes
[lyx.git] / src / debug.h
index b854283af0aea63657018ab047a185cf8b044a42..5f4701894c969c7ca73c720b87553a4da7b7fc84 100644 (file)
@@ -1,8 +1,21 @@
 // -*- C++ -*-
+/* This file is part of
+ * ====================================================== 
+ * 
+ *           LyX, The Document Processor
+ *        
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2000 The LyX Team.
+ *
+ * ====================================================== */
 
 #ifndef LYXDEBUG_H
 #define LYXDEBUG_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include <iosfwd>
 
 #include "LString.h"
@@ -24,7 +37,7 @@ struct Debug {
                ///
                KEY        = (1 << 2),   // 4
                ///
-               TOOLBAR    = (1 << 3),   // 8
+               GUI        = (1 << 3),   // 8
                ///
                PARSER     = (1 << 4),   // 16
                ///
@@ -50,16 +63,23 @@ struct Debug {
                ///
                LYXLEX     = (1 << 15),
                ///
-               DEPEND     = (1 << 16)
+               DEPEND     = (1 << 16),
+               ///
+               INSETS     = (1 << 17),
+               ///
+               FILES      = (1 << 18)
        };
        ///
-       static const type ANY = type(INFO | INIT | KEY | TOOLBAR |
-                                    PARSER | LYXRC | KBMAP | LATEX |
-                                    MATHED | FONT | TCLASS | LYXVC |
-                                    LYXSERVER | ROFF | ACTION | LYXLEX |
-                                    DEPEND);
+//     static const type ANY = type(INFO | INIT | KEY | GUI |
+//                                  PARSER | LYXRC | KBMAP | LATEX |
+//                                  MATHED | FONT | TCLASS | LYXVC |
+//                                  LYXSERVER | ROFF | ACTION | LYXLEX |
+//                                  DEPEND | INSETS);
        ///
-       friend inline void operator|=(Debug::type & d1, Debug::type d2);
+       static type const ANY;
+
+       ///
+//     friend inline void operator|=(Debug::type & d1, Debug::type d2);
        
        /** A function to convert symbolic string names on debug levels
            to their numerical value.
@@ -77,9 +97,9 @@ struct Debug {
 };
 
 
-///
+
 inline
-void operator|= (Debug::type & d1, Debug::type d2)
+void operator|=(Debug::type & d1, Debug::type d2)
 {
        d1 = static_cast<Debug::type>(d1 | d2);
 }
@@ -88,7 +108,7 @@ void operator|= (Debug::type & d1, Debug::type d2)
 #include "support/DebugStream.h"
 
 
-///
+
 std::ostream & operator<<(std::ostream & o, Debug::type t);
 
 extern DebugStream lyxerr;