]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrc.C
added a regex to be used when the system is missing one, use noinst instead of pkglib...
[lyx.git] / src / lyxrc.C
index a60c9cd2bc8699c8c788f472c6d03303c8228abe..0af68c5d0c84ff9f150810f4cfaa478ecb4b3e09 100644 (file)
@@ -16,6 +16,9 @@
 
 #include <fstream>
 #include <iomanip>
+using std::ofstream;
+using std::cout;
+using std::ios;
 
 #include "debug.h"
 
@@ -127,6 +130,7 @@ enum LyXRCTags {
        RC_LAST 
 };
 
+
 static keyword_item lyxrcTags[] = {
        { "\\accept_compound", RC_ACCEPT_COMPOUND },
        { "\\alternate_language", RC_ALT_LANG },
@@ -340,9 +344,9 @@ int LyXRC::read(string const & filename)
                switch(le) {
                case LyXLex::LEX_UNDEF:
                        lexrc.printError("Unknown tag `$$Token'");
-                       continue; break;
+                       continue; 
                case LyXLex::LEX_FEOF:
-                       continue; break;
+                       continue; 
                default: break;
                }
                switch (static_cast<LyXRCTags>(le)) {
@@ -544,7 +548,7 @@ int LyXRC::read(string const & filename)
                                                BufferParams::PAPER_LEGALPAPER;
                                else if (size == "executive")
                                        default_papersize =
-                                           BufferParams::PAPER_EXECUTIVEPAPER;
+                                               BufferParams::PAPER_EXECUTIVEPAPER;
                                else if (size == "a3")
                                        default_papersize =
                                                BufferParams::PAPER_A3PAPER;