]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarDefaults.C
Applied Angus patch to compile on DEC C++ and to avoid name clashes
[lyx.git] / src / ToolbarDefaults.C
index 9e42b8c67be5a4ceaea4d88fbd0f1c28d2e2e799..656949e45e2a799d8005b4fdd8a6e21fa55ba49e 100644 (file)
@@ -30,6 +30,7 @@ using std::endl;
 extern LyXAction lyxaction;
 ToolbarDefaults toolbardefaults;
 
+
 ToolbarDefaults::ToolbarDefaults()
 {
        init();
@@ -41,10 +42,11 @@ void ToolbarDefaults::add(int action)
        defaults.push_back(action);
 }
 
+
 void ToolbarDefaults::init() 
 {
        add(LAYOUTS);
-       add(LFUN_MENUOPEN);
+       add(LFUN_FILE_OPEN);
        //add(LFUN_CLOSEBUFFER);
        add(LFUN_MENUWRITE);
        add(LFUN_MENUPRINT);
@@ -118,7 +120,7 @@ void ToolbarDefaults::read(LyXLex & lex)
        
        while (lex.IsOK() && !quit) {
 
-               switch(lex.lex()) {
+               switch (lex.lex()) {
                case TO_ADD:
                        if (lex.next()) {
                                func = lex.GetString();
@@ -159,7 +161,7 @@ void ToolbarDefaults::read(LyXLex & lex)
 
 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`"