2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998-2000 The LyX Team
9 *======================================================*/
21 #include <boost/utility.hpp>
24 This is a stateless class.
26 It has one basic purposes:
27 To serve as a color-namespace container (the Color enum).
29 A color can be one of the following kinds:
31 - A real, predefined color, such as black, white, red or green.
32 - A logical color, such as no color, inherit, math
35 class LColor //: public noncopyable {
36 // made copyable for same reasons as LyXRC was made copyable. See there for
40 /// Names of colors, including all logical colors
42 /// No particular color---clear or default
44 /// The different text colors
61 // Needed interface colors
69 /// Background color of selected text
71 /// Text color in LaTeX mode
73 /// Titles color of floats
76 /// Text color for notes
78 /// Background color of notes
80 /// Frame color for notes
84 /// Color for the depth bars in the margin
86 /// Color for marking foreign language words
89 /// Text color for command insets
91 /// Background color for command insets
93 /// Frame color for command insets
96 /// Text color for accents we can't handle nicely
103 /// Minipage line color
106 /// Special chars text color
109 /// Math inset text color
111 /// Math inset background color
113 /// Math inset frame color
115 /// Math cursor color
120 /// Footnote marker text
122 /// Footnote marker background color
124 /// Footnote line color
130 /// Text color for inset marker
132 /// Inset marker background color
134 /// Inset marker frame color
137 /// Error box text color
141 /// Appendix line color
145 /// Top and bottom line color
153 /// Bottom area color
158 /// Color used for top of boxes
160 /// Color used for bottom of boxes
162 /// Color used for left side of boxes
164 /// Color used for right side of boxes
166 /// Color used for bottom background
169 // Logical attributes
171 /// Color is inherited
173 /// For ignoring updates of a color
180 void setColor(LColor::color col, string const & x11name);
182 bool setColor(string const & lyxname, string const & x11name);
183 /// Get GUI name of color
184 string const getGUIName(LColor::color c) const;
186 /// Get X11 name of color
187 string const getX11Name(LColor::color c) const;
189 /// Get LaTeX name of color
190 string const getLaTeXName(LColor::color c) const;
192 /// Get LyX name of color
193 string const getLyXName(LColor::color c) const;
195 LColor::color getFromGUIName(string const & guiname) const;
197 LColor::color getFromLyXName(string const & lyxname) const;
212 void fill(LColor::color col, string const & gui,
213 string const & latex, string const & x11,
217 typedef std::map<LColor::color, information> InfoTab;
223 extern LColor lcolor;
225 extern LColor system_lcolor;