]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrc.C
Fix bug 2485 and crash on middle mouse paste on math
[lyx.git] / src / lyxrc.C
index ef54679d4c7ffc2a6b48a8b63106f27a0990d62b..d1276ba94cb1eb95687333c089ddf0f8ddbff4e6 100644 (file)
@@ -44,9 +44,9 @@ namespace os = lyx::support::os;
 
 using lyx::support::ascii_lowercase;
 using lyx::support::bformat;
-using lyx::support::ExpandPath;
+using lyx::support::expandPath;
 using lyx::support::getEnv;
-using lyx::support::LibFileSearch;
+using lyx::support::libFileSearch;
 using lyx::support::token;
 
 using std::cout;
@@ -151,10 +151,10 @@ keyword_item lyxrcTags[] = {
        { "\\screen_font_sizes", LyXRC::RC_SCREEN_FONT_SIZES },
        { "\\screen_font_typewriter", LyXRC::RC_SCREEN_FONT_TYPEWRITER },
        { "\\screen_font_typewriter_foundry", LyXRC::RC_SCREEN_FONT_TYPEWRITER_FOUNDRY },
-       { "\\screen_zoom", LyXRC::RC_SCREEN_ZOOM },
        { "\\screen_geometry_height", LyXRC::RC_SCREEN_GEOMETRY_HEIGHT },
        { "\\screen_geometry_width", LyXRC::RC_SCREEN_GEOMETRY_WIDTH },
        { "\\screen_geometry_xysaved", LyXRC::RC_SCREEN_GEOMETRY_XYSAVED },
+       { "\\screen_zoom", LyXRC::RC_SCREEN_ZOOM },
        { "\\serverpipe", LyXRC::RC_SERVERPIPE },
        { "\\set_color", LyXRC::RC_SET_COLOR },
        { "\\show_banner", LyXRC::RC_SHOW_BANNER },
@@ -365,7 +365,7 @@ int LyXRC::read(LyXLex & lexrc)
                case RC_INPUT: // Include file
                        if (lexrc.next()) {
                                string const tmp =
-                                       LibFileSearch(string(),
+                                       libFileSearch(string(),
                                                      lexrc.getString());
                                if (read(tmp)) {
                                        lexrc.printError("Error reading "
@@ -420,7 +420,7 @@ int LyXRC::read(LyXLex & lexrc)
                                string const kmap(os::internal_path(lexrc.getString()));
                                if (kmap.empty()) {
                                        // nothing
-                               } else if (!LibFileSearch("kbd", kmap,
+                               } else if (!libFileSearch("kbd", kmap,
                                                          "kmap").empty()) {
                                        primary_kbmap = kmap;
                                } else {
@@ -434,7 +434,7 @@ int LyXRC::read(LyXLex & lexrc)
                                string const kmap(os::internal_path(lexrc.getString()));
                                if (kmap.empty()) {
                                        // nothing
-                               } else if (!LibFileSearch("kbd", kmap,
+                               } else if (!libFileSearch("kbd", kmap,
                                                          "kmap").empty()) {
                                        secondary_kbmap = kmap;
                                } else {
@@ -720,21 +720,21 @@ int LyXRC::read(LyXLex & lexrc)
                case RC_DOCUMENTPATH:
                        if (lexrc.next()) {
                                document_path = os::internal_path(lexrc.getString());
-                               document_path = ExpandPath(document_path);
+                               document_path = expandPath(document_path);
                        }
                        break;
 
                case RC_TEMPLATEPATH:
                        if (lexrc.next()) {
                                template_path = os::internal_path(lexrc.getString());
-                               template_path = ExpandPath(template_path);
+                               template_path = expandPath(template_path);
                        }
                        break;
 
                case RC_TEMPDIRPATH:
                        if (lexrc.next()) {
                                tempdir_path = os::internal_path(lexrc.getString());
-                               tempdir_path = ExpandPath(tempdir_path);
+                               tempdir_path = expandPath(tempdir_path);
                        }
                        break;
 
@@ -876,7 +876,7 @@ int LyXRC::read(LyXLex & lexrc)
                case RC_SERVERPIPE:
                        if (lexrc.next()) {
                                lyxpipes = os::internal_path(lexrc.getString());
-                               lyxpipes = ExpandPath(lyxpipes);
+                               lyxpipes = expandPath(lyxpipes);
                        }
                        break;
 
@@ -961,7 +961,7 @@ int LyXRC::read(LyXLex & lexrc)
                case RC_BACKUPDIR_PATH:
                        if (lexrc.next()) {
                                backupdir_path = os::internal_path(lexrc.getString());
-                               backupdir_path = ExpandPath(backupdir_path);
+                               backupdir_path = expandPath(backupdir_path);
                        }
                        break;
                case RC_DATE_INSERT_FORMAT: