]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarDefaults.C
Baruch's graphic-inset patch.
[lyx.git] / src / ToolbarDefaults.C
index 75bdaef0292629bc72b792cc3bb36372d27c0325..1a40c510b834b0aa6661b7522a730b1b217c2c6c 100644 (file)
 #include "lyxlex.h"
 #include "debug.h"
 #include "lyxlex.h"
+#if 1
+// only until we don't need access tot he NEW_INSETS or NEW_TABULAR anymore
+#include "lyxparagraph.h"
+#endif
 
 using std::endl;
 
@@ -56,8 +60,13 @@ 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);
 
@@ -66,7 +75,11 @@ void ToolbarDefaults::init()
        add(SEPARATOR);
 
        add(LFUN_FIGURE);
+#ifndef NEW_TABULAR
        add(LFUN_TABLE);
+#else
+       add(LFUN_INSET_TABULAR);
+#endif
        //add(LFUN_MELT);
 }
 
@@ -108,9 +121,6 @@ void ToolbarDefaults::read(LyXLex & lex)
                lex.printTable(lyxerr);
        
        while (lex.IsOK() && !quit) {
-               
-               lyxerr[Debug::GUI] << "Toolbar::read: current lex text: `"
-                                      << lex.GetString() << '\'' << endl;
 
                switch(lex.lex()) {
                case TO_ADD: