#include <map>
#include "LString.h"
+#include <boost/utility.hpp>
/**
This is a stateless class.
- A logical color, such as no color, inherit, math
*/
-
-class LColor {
+class LColor //: public noncopyable {
+// made copyable for same reasons as LyXRC was made copyable. See there for
+// explanation.
+{
public:
/// Names of colors, including all logical colors
enum color {
///
yellow,
- /// Needed interface colors
+ // Needed interface colors
+ /// Cursor color
+ cursor,
/// Background color
background,
/// Foreground color
/// Color used for bottom background
buttonbg,
- /// Logical attributes
+ // Logical attributes
/// Color is inherited
inherit,
///
bool setColor(string const & lyxname, string const & x11name);
/// Get GUI name of color
- string getGUIName(LColor::color c) const;
+ string const getGUIName(LColor::color c) const;
/// Get X11 name of color
- string getX11Name(LColor::color c) const;
+ string const getX11Name(LColor::color c) const;
/// Get LaTeX name of color
- string getLaTeXName(LColor::color c) const;
+ string const getLaTeXName(LColor::color c) const;
/// Get LyX name of color
- string getLyXName(LColor::color c) const;
+ string const getLyXName(LColor::color c) const;
///
LColor::color getFromGUIName(string const & guiname) const;
///
private:
///
struct information {
+ ///
string guiname;
+ ///
string latexname;
+ ///
string x11name;
+ ///
string lyxname;
};
///
typedef std::map<LColor::color, information> InfoTab;
-
+ ///
InfoTab infotab;
};
+///
extern LColor lcolor;
+///
+extern LColor system_lcolor;
#endif