]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarDefaults.C
In for a penny, in for a pound. Consistent use of // -*- C++ -*-
[lyx.git] / src / ToolbarDefaults.C
index f6267fab4fba63e6c3c43a500713fe361f8f272b..b8d0c413a2d2c791a8bbc7b9c6657624f8ac18bd 100644 (file)
@@ -4,7 +4,7 @@
  *           LyX, The Document Processor
  *
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  *
  * ====================================================== */
 #include "lyxlex.h"
 #include "debug.h"
 #include "lyxlex.h"
-#if 1
-// only until we don't need access to the NEW_INSETS anymore
-#include "lyxparagraph.h"
-#endif
 
 using std::endl;
 
@@ -62,13 +58,9 @@ void ToolbarDefaults::init()
        add(LFUN_FREE);
        add(SEPARATOR);
        
-#ifndef NEW_INSETS     
-       add(LFUN_FOOTMELT);
-       add(LFUN_MARGINMELT);
-#else
        add(LFUN_INSET_FOOTNOTE);
        add(LFUN_INSET_MARGINAL);
-#endif
+
        add(LFUN_DEPTH);
        add(SEPARATOR);
 
@@ -78,9 +70,6 @@ void ToolbarDefaults::init()
 
        add(LFUN_FIGURE);
        add(LFUN_DIALOG_TABULAR_INSERT);
-#if 0
-       //add(LFUN_MELT);
-#endif
 }
 
 
@@ -119,14 +108,13 @@ void ToolbarDefaults::read(LyXLex & lex)
 
        if (lyxerr.debugging(Debug::PARSER))
                lex.printTable(lyxerr);
-       
-       while (lex.IsOK() && !quit) {
 
+       while (lex.IsOK() && !quit) {
                switch (lex.lex()) {
                case TO_ADD:
                        if (lex.next()) {
                                func = lex.GetString();
-                               lyxerr[Debug::GUI]
+                               lyxerr[Debug::PARSER]
                                        << "Toolbar::read TO_ADD func: `"
                                        << func << "'" << endl;
                                add(func);
@@ -157,7 +145,6 @@ void ToolbarDefaults::read(LyXLex & lex)
                }
        }
        lex.popTable();
-       lex.next();
 }