X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLColor.h;h=c6bf6cebf7c47a754bd67411c3643b61157cd712;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=b410378dc23ba89e2439af64334c2590472bb70a;hpb=e978fa42e38be22e9312be963ba6512fcd4b45ef;p=lyx.git diff --git a/src/LColor.h b/src/LColor.h index b410378dc2..c6bf6cebf7 100644 --- a/src/LColor.h +++ b/src/LColor.h @@ -22,6 +22,9 @@ #include #include + +namespace lyx { + /** * This is a stateless class. * @@ -93,7 +96,8 @@ public: greyedout, /// Background color of greyedout inset greyedoutbg, - + /// Shaded box background + shadedbg, /// Color for the depth bars in the margin depthbar, @@ -189,7 +193,7 @@ public: /// ~LColor(); /// - void operator=(LColor const &); + LColor & operator=(LColor); /** set the given LyX color to the color defined by the X11 name given * \returns true if successful. @@ -218,11 +222,13 @@ public: LColor::color getFromGUIName(std::string 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. + LColor::color getFromLaTeXName(std::string const & latexname) const; private: /// void addColor(LColor::color c, std::string const & lyxname) const; /// - struct Pimpl; + class Pimpl; /// boost::scoped_ptr pimpl_; }; @@ -249,4 +255,7 @@ extern LColor lcolor; /// the system color definitions extern LColor system_lcolor; + +} // namespace lyx + #endif