}
-LColor::color LColor::getFromGUIName(docstring const & guiname) const
-{
- Pimpl::InfoTab::const_iterator it = pimpl_->infotab.begin();
- Pimpl::InfoTab::const_iterator end = pimpl_->infotab.end();
- for (; it != end; ++it) {
- // FIXME comparison of translated strings is problematic,
- // and compare_ascii_no_case is probably not correct
- if (!compare_ascii_no_case(_(it->second.guiname), guiname))
- return it->first;
- }
- return LColor::inherit;
-}
-
-
void LColor::addColor(LColor::color c, string const & lyxname) const
{
ColorEntry ce = { c, "", "", "", lyxname.c_str() };
/// Get the LyX name of \c color.
std::string const getLyXName(LColor::color c) const;
- /// \returns the LColor::color associated with the GUI name.
- LColor::color getFromGUIName(docstring const & guiname) const;
/// \returns the LColor::color associated with the LyX name.
LColor::color getFromLyXName(std::string const & lyxname) const;
/// \returns the LColor::color associated with the LaTeX name.