]> git.lyx.org Git - lyx.git/blobdiff - src/LColor.C
ws changes only
[lyx.git] / src / LColor.C
index b5aeb412cc10e6c1120b4c364367da8a31c64e3d..ba42c4b761f01f5481ba5cbff244a6c4df003351 100644 (file)
 #include <config.h>
 
 #include "debug.h"
-#include "LColor.h"
-#include "support/LAssert.h"
 #include "gettext.h"
+#include "LColor.h"
 #include "support/lstrings.h"
 
 #include <map>
 
-using namespace lyx::support;
+using lyx::support::compare_ascii_no_case;
 
 using std::endl;
+using std::string;
 
 
 namespace {
@@ -172,18 +172,18 @@ void LColor::operator=(LColor const & c)
 }
 
 
-void LColor::fill(LColor::color c, 
+void LColor::fill(LColor::color c,
                                string const & lyxname,
-                               string const & x11name, 
-                               string const & latexname, 
-                               string const & guiname) 
+                               string const & x11name,
+                               string const & latexname,
+                               string const & guiname)
 {
        ColorEntry ce;
        ce.lcolor = c;
-       ce.guiname = guiname.c_str();   
-       ce.latexname = latexname.c_str();       
-       ce.x11name = x11name.c_str();   
-       ce.lyxname = lyxname.c_str();   
+       ce.guiname = guiname.c_str();
+       ce.latexname = latexname.c_str();
+       ce.x11name = x11name.c_str();
+       ce.lyxname = lyxname.c_str();
        pimpl_->fill(ce);
 }
 
@@ -201,10 +201,10 @@ string const LColor::getGUIName(string const &  s) const
 {
        Pimpl::Transform::const_iterator ici = pimpl_->transform.find(s);
        if (ici != pimpl_->transform.end()) {
-               Pimpl::InfoTab::const_iterator 
+               Pimpl::InfoTab::const_iterator
                        it = pimpl_->infotab.find(ici->second);
-               if (it != pimpl_->infotab.end()) 
-                       return it->second.guiname;      
+               if (it != pimpl_->infotab.end())
+                       return it->second.guiname;
        }
        return "none";
 }
@@ -227,9 +227,9 @@ string const LColor::getX11Name(string const & s) const
 {
        Pimpl::Transform::const_iterator ici = pimpl_->transform.find(s);
        if (ici != pimpl_->transform.end()) {
-               Pimpl::InfoTab::const_iterator 
+               Pimpl::InfoTab::const_iterator
                        it = pimpl_->infotab.find(ici->second);
-               if (it != pimpl_->infotab.end()) 
+               if (it != pimpl_->infotab.end())
                        return it->second.x11name;
        }
        lyxerr << "LyX internal error: Missing color"
@@ -252,9 +252,9 @@ string const LColor::getLaTeXName(string const & s) const
 {
        Pimpl::Transform::const_iterator ici = pimpl_->transform.find(s);
        if (ici != pimpl_->transform.end()) {
-               Pimpl::InfoTab::const_iterator 
+               Pimpl::InfoTab::const_iterator
                        it = pimpl_->infotab.find(ici->second);
-               if (it != pimpl_->infotab.end()) 
+               if (it != pimpl_->infotab.end())
                        return it->second.latexname;
        }
        return "black";
@@ -284,7 +284,7 @@ void LColor::setColor(LColor::color col, string const & x11name)
                return;
        }
        lyxerr << "LyX internal error: color and such." << endl;
-       Assert(false);
+       BOOST_ASSERT(false);
 }