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
67 /// Background color of selected text
69 /// Text color in LaTeX mode
71 /// Titles color of floats
74 /// Text color for notes
76 /// Background color of notes
78 /// Frame color for notes
82 /// Color for the depth bars in the margin
84 /// Color for marking foreign language words
87 /// Text color for command insets
89 /// Background color for command insets
91 /// Frame color for command insets
94 /// Text color for accents we can't handle nicely
101 /// Minipage line color
104 /// Special chars text color
107 /// Math inset text color
109 /// Math inset background color
111 /// Math inset frame color
113 /// Math cursor color
118 /// Footnote marker text
120 /// Footnote marker background color
122 /// Footnote line color
128 /// Text color for inset marker
130 /// Inset marker background color
132 /// Inset marker frame color
135 /// Error box text color
139 /// Appendix line color
143 /// Top and bottom line color
151 /// Bottom area color
156 /// Color used for top of boxes
158 /// Color used for bottom of boxes
160 /// Color used for left side of boxes
162 /// Color used for right side of boxes
164 /// Color used for bottom background
167 // Logical attributes
169 /// Color is inherited
171 /// For ignoring updates of a color
178 void setColor(LColor::color col, string const & x11name);
180 bool setColor(string const & lyxname, string const & x11name);
181 /// Get GUI name of color
182 string const getGUIName(LColor::color c) const;
184 /// Get X11 name of color
185 string const getX11Name(LColor::color c) const;
187 /// Get LaTeX name of color
188 string const getLaTeXName(LColor::color c) const;
190 /// Get LyX name of color
191 string const getLyXName(LColor::color c) const;
193 LColor::color getFromGUIName(string const & guiname) const;
195 LColor::color getFromLyXName(string const & lyxname) const;
210 void fill(LColor::color col, string const & gui,
211 string const & latex, string const & x11,
215 typedef std::map<LColor::color, information> InfoTab;
221 extern LColor lcolor;
223 extern LColor system_lcolor;