]> git.lyx.org Git - lyx.git/blobdiff - src/LyXRC.cpp
Fix functions that used functions but did not defined it
[lyx.git] / src / LyXRC.cpp
index 1c52ef11548cd6d95d0b077d5bbe317a0feb2ee2..edd9a58240d12440a98883e7a5d05ef78cedf656 100644 (file)
@@ -25,7 +25,6 @@
 #include "Format.h"
 #include "FuncCode.h"
 #include "FuncRequest.h"
-#include "Lexer.h"
 #include "LyX.h"
 #include "Mover.h"
 #include "SpellChecker.h"
@@ -36,6 +35,7 @@
 #include "support/environment.h"
 #include "support/FileName.h"
 #include "support/filetools.h"
+#include "support/Lexer.h"
 #include "support/lstrings.h"
 #include "support/os.h"
 #include "support/Package.h"
@@ -60,7 +60,7 @@ namespace {
 
 // The format should also be updated in configure.py, and conversion code
 // should be added to prefs2prefs_prefs.py.
-static unsigned int const LYXRC_FILEFORMAT = 37; // chillenb: screen_width and screen_limit
+static unsigned int const LYXRC_FILEFORMAT = 38; // chillenb: screen_width and screen_limit
 // when adding something to this array keep it sorted!
 LexerKeyword lyxrcTags[] = {
        { "\\accept_compound", LyXRC::RC_ACCEPT_COMPOUND },
@@ -1147,8 +1147,9 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format)
                                        draw_strategy = DS_PARTIAL;
                                else if (tmp == "backingstore")
                                        draw_strategy = DS_BACKINGSTORE;
+                               else if (tmp == "full")
+                                       draw_strategy = DS_FULL;
                                else {
-                                       draw_strategy = DS_PARTIAL;
                                        LYXERR0("Unrecognized draw strategy " << tmp <<'"');
                                }
                        }
@@ -2055,6 +2056,9 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
                        draw_strategy != system_lyxrc.draw_strategy) {
                        string status;
                        switch (draw_strategy) {
+                       case DS_FULL:
+                               status = "full";
+                               break;
                        case DS_PARTIAL:
                                status = "partial";
                                break;