X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLColor.h;h=16935ac1fb3a6d1d378a7ea8383e352296fa8821;hb=15271fce0705ea5611647b5b3d1e993362ff5284;hp=4fc25de94d6eb884ebfd41b74ecaaf8c351615e0;hpb=73b9ca2a4b2db9a2d005311bae34bd3863d5ee66;p=lyx.git diff --git a/src/LColor.h b/src/LColor.h index 4fc25de94d..16935ac1fb 100644 --- a/src/LColor.h +++ b/src/LColor.h @@ -18,6 +18,7 @@ #include #include "LString.h" +#include /** This is a stateless class. @@ -31,8 +32,10 @@ - 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 { @@ -55,8 +58,10 @@ public: /// yellow, - /// Needed interface colors + // Needed interface colors + /// Cursor color + cursor, /// Background color background, /// Foreground color @@ -161,7 +166,7 @@ public: /// Color used for bottom background buttonbg, - /// Logical attributes + // Logical attributes /// Color is inherited inherit, @@ -173,17 +178,19 @@ public: LColor(); /// void setColor(LColor::color col, string const & x11name); + /// + 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; /// @@ -191,9 +198,13 @@ public: private: /// struct information { + /// string guiname; + /// string latexname; + /// string x11name; + /// string lyxname; }; @@ -204,10 +215,13 @@ private: /// typedef std::map InfoTab; - + /// InfoTab infotab; }; +/// extern LColor lcolor; +/// +extern LColor system_lcolor; #endif