* src/LColor.[Ch]

(LColor::getFromGUIName): delete, since it is unused, broken and
	not easy to implement correctly


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16378 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-12-22 10:23:25 +00:00
parent 2caff468e5
commit cb0b0bb799
2 changed files with 0 additions and 16 deletions

View File

@ -250,20 +250,6 @@ bool LColor::setColor(string const & lyxname, string const &x11name)
} }
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 void LColor::addColor(LColor::color c, string const & lyxname) const
{ {
ColorEntry ce = { c, "", "", "", lyxname.c_str() }; ColorEntry ce = { c, "", "", "", lyxname.c_str() };

View File

@ -215,8 +215,6 @@ public:
/// Get the LyX name of \c color. /// Get the LyX name of \c color.
std::string const getLyXName(LColor::color c) const; 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. /// \returns the LColor::color associated with the LyX name.
LColor::color getFromLyXName(std::string const & lyxname) const; LColor::color getFromLyXName(std::string const & lyxname) const;
/// \returns the LColor::color associated with the LaTeX name. /// \returns the LColor::color associated with the LaTeX name.