X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLColor.C;h=c213c79fe8d85b3e79c5e34c667415b889d995fe;hb=29f01faa17495e3d80c08f234c8f049c7d699ac1;hp=775d4c87faff52501211facdc70486992b8a7b65;hpb=47b06816be86d751c29a4af4809b773baf79ceef;p=lyx.git diff --git a/src/LColor.C b/src/LColor.C index 775d4c87fa..c213c79fe8 100644 --- a/src/LColor.C +++ b/src/LColor.C @@ -1,8 +1,8 @@ /* This file is part of * ====================================================== - * + * * LyX, The Document Processor - * + * * Copyright 1998-2001 The LyX Team * *======================================================*/ @@ -13,8 +13,6 @@ #pragma implementation #endif -#include - #include "debug.h" #include "LColor.h" #include "support/LAssert.h" @@ -62,6 +60,7 @@ LColor::LColor() { foreground, N_("text"), "foreground", "black", "foreground" }, { selection, N_("selection"), "selection", "LightBlue", "selection" }, { 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" }, @@ -85,7 +84,7 @@ 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" }, - { vfillline, N_("vfill line"), "vfillline", "Brown", "vfillline" }, + { 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", "tabularline" }, @@ -125,7 +124,7 @@ string const LColor::getGUIName(LColor::color c) const string const LColor::getX11Name(LColor::color c) const { InfoTab::const_iterator ici = infotab.find(c); - if (ici != infotab.end()) + if (ici != infotab.end()) return ici->second.x11name; lyxerr << "LyX internal error: Missing color" @@ -186,7 +185,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; @@ -195,11 +194,11 @@ LColor::color LColor::getFromGUIName(string const & guiname) const 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;