#include <boost/scoped_ptr.hpp>
#include <string>
-/**
- This is a stateless class.
-
- It has one basic purposes:
- To serve as a color-namespace container (the Color enum).
+namespace lyx {
- */
+/**
+ * This is a stateless class.
+ *
+ * It has one basic purposes:
+ * To serve as a color-namespace container (the Color enum).
+ */
/**
* \class LColor
*
greyedout,
/// Background color of greyedout inset
greyedoutbg,
-
+ /// Shaded box background
+ shadedbg,
/// Color for the depth bars in the margin
depthbar,
///
~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.
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> pimpl_;
};
* passed as a function argument without having to expose LColor.h.
*/
class LColor_color {
- LColor::color val_;
+ LColor::color val_;
public:
- /** The default constructor is nasty,
+ /** The default constructor is nasty,
* but allows us to use LColor_color in STL containers.
*/
LColor_color() : val_(static_cast<LColor::color>(-1)) {}
LColor_color(LColor::color val) : val_(val) {}
- operator LColor::color() const{ return val_; }
+ operator LColor::color() const{ return val_; }
};
/// the system color definitions
extern LColor system_lcolor;
+
+} // namespace lyx
+
#endif