]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrc.C
remove unused code
[lyx.git] / src / lyxrc.C
index aa4c6cc3580f8d68cfe1d41a70d71c16a7ff9800..809f71ee64d007d2a676e2ca3233df6ce5bbcf15 100644 (file)
 #include <fstream>
 #include <iomanip>
 #include <iostream>
+#include <boost/scoped_ptr.hpp>
 
 #include "debug.h"
 
 #include "lyxrc.h"
 #include "kbmap.h"
 #include "LyXAction.h"
-#include "lyx_main.h"
 #include "intl.h"
 #include "support/path.h"
 #include "support/filetools.h"
-#include "lyxtext.h"
 #include "converter.h"
 #include "gettext.h"
+#include "lyxlex.h"
 
 using std::ostream;
 using std::ofstream;
@@ -38,7 +38,8 @@ using std::ios;
 using std::endl;
 using std::vector;
 
-extern LyXAction lyxaction;
+class kb_keymap;
+
 extern boost::scoped_ptr<kb_keymap> toplevel_keymap;
 
 namespace {
@@ -247,6 +248,7 @@ void LyXRC::setDefaults() {
        language_command_begin = "\\selectlanguage{$$lang}";
        language_command_local = "\\foreignlanguage{$$lang}{";
        default_language = "english";
+       show_banner = true;
 
        //
        date_insert_format = "%A, %e %B %Y";
@@ -723,7 +725,7 @@ int LyXRC::read(string const & filename)
                                break;
                        }
 
-                       if ((action = lyxaction.LookupFunc(cmd))>= 0) {
+                       if ((action = lyxaction.LookupFunc(cmd)) >= 0) {
                                if (lyxerr.debugging(Debug::LYXRC)) {
                                        lyxerr << "RC_BIND: Sequence `"
                                               << seq << "' Command `"