]> git.lyx.org Git - lyx.git/blobdiff - src/LColor.C
Fix natbib bug spotted by JMarc.
[lyx.git] / src / LColor.C
index e1fe8c2d1fe34aae2fcd2cd53610936d982ddc0f..58c3cf447c7b3c5be909043141caf301dfa7b98e 100644 (file)
@@ -59,7 +59,8 @@ LColor::LColor()
        { background, N_("background"), "background", "linen", "background" },
        { foreground, N_("text"), "foreground", "black", "foreground" },
        { selection, N_("selection"), "selection", "LightBlue", "selection" },
-       { latex, N_("latex text"), "latex", "DarkRed", "latex" },
+       { latex, N_("LaTeX text"), "latex", "DarkRed", "latex" },
+       { preview, N_("previewed snippet"), "preview", "black", "preview" },
        { note, N_("note"), "note", "yellow", "note" },
        { notebg, N_("note background"), "notebg", "yellow", "notebg" },
        { depthbar, N_("depth bar"), "depthbar", "IndianRed", "depthbar" },
@@ -83,6 +84,9 @@ LColor::LColor()
        { error, N_("LaTeX error"), "error", "Red", "error" },
        { eolmarker, N_("end-of-line marker"), "eolmarker", "Brown", "eolmarker" },
        { appendixline, N_("appendix line"), "appendixline", "Brown", "appendixline" },
+       { changebar, N_("change bar"), "changebar", "Blue", "changebar" },
+       { strikeout, N_("Deleted text"), "strikeout", "Red", "strikeout" },
+       { newtext, N_("Added text"), "newtext", "Blue", "newtext" },
        { added_space, N_("added space markers"), "added_space", "Brown", "added_space" },
        { topline, N_("top/bottom line"), "topline", "Brown", "topline" },
        { tabularline, N_("tabular line"), "tabularline", "black",
@@ -184,7 +188,7 @@ LColor::color LColor::getFromGUIName(string const & guiname) const
        InfoTab::const_iterator ici = infotab.begin();
        InfoTab::const_iterator end = infotab.end();
        for (; ici != end; ++ici) {
-               if (!compare_no_case(_(ici->second.guiname), guiname))
+               if (!compare_ascii_no_case(_(ici->second.guiname), guiname))
                        return ici->first;
        }
        return LColor::inherit;
@@ -197,7 +201,7 @@ LColor::color LColor::getFromLyXName(string const & lyxname) const
        InfoTab::const_iterator ici = infotab.begin();
        InfoTab::const_iterator end = infotab.end();
        for (; ici != end; ++ici) {
-               if (!compare_no_case(ici->second.lyxname, lyxname))
+               if (!compare_ascii_no_case(ici->second.lyxname, lyxname))
                        return ici->first;
        }
        return LColor::inherit;