#include "debug.h"
#include "lyxlex.h"
#if 1
-// only until we don't need access tot he NEW_INSETS or NEW_TABULAR anymore
+// only until we don't need access to the NEW_INSETS anymore
#include "lyxparagraph.h"
#endif
extern LyXAction lyxaction;
ToolbarDefaults toolbardefaults;
+
ToolbarDefaults::ToolbarDefaults()
{
init();
defaults.push_back(action);
}
+
void ToolbarDefaults::init()
{
add(LAYOUTS);
add(SEPARATOR);
add(LFUN_FIGURE);
-#ifndef NEW_TABULAR
- add(LFUN_TABLE);
-#else
- add(LFUN_INSET_TABULAR);
-#endif
+ add(LFUN_DIALOG_TABULAR_INSERT);
//add(LFUN_MELT);
}
lex.printTable(lyxerr);
while (lex.IsOK() && !quit) {
-
- lyxerr[Debug::GUI] << "Toolbar::read: current lex text: `"
- << lex.GetString() << '\'' << endl;
- switch(lex.lex()) {
+ switch (lex.lex()) {
case TO_ADD:
if (lex.next()) {
func = lex.GetString();
void ToolbarDefaults::add(string const & func)
{
- int tf = lyxaction.LookupFunc(func);
+ int const tf = lyxaction.LookupFunc(func);
if (tf == -1) {
lyxerr << "Toolbar::add: no LyX command called`"