2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998-2000 The LyX Team
9 *======================================================*/
21 #include "support/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 {
37 /// Names of colors, including all logical colors
39 /// No particular color---clear or default
41 /// The different text colors
58 // Needed interface colors
64 /// Background color of selected text
66 /// Text color in LaTeX mode
68 /// Titles color of floats
71 /// Text color for notes
73 /// Background color of notes
75 /// Frame color for notes
79 /// Color for the depth bars in the margin
81 /// Color for marking foreign language words
84 /// Text color for command insets
86 /// Background color for command insets
88 /// Frame color for command insets
91 /// Text color for accents we can't handle nicely
98 /// Minipage line color
101 /// Special chars text color
104 /// Math inset text color
106 /// Math inset background color
108 /// Math inset frame color
110 /// Math cursor color
115 /// Footnote marker text
117 /// Footnote marker background color
119 /// Footnote line color
125 /// Text color for inset marker
127 /// Inset marker background color
129 /// Inset marker frame color
132 /// Error box text color
136 /// Appendix line color
140 /// Top and bottom line color
148 /// Bottom area color
153 /// Color used for top of boxes
155 /// Color used for bottom of boxes
157 /// Color used for left side of boxes
159 /// Color used for right side of boxes
161 /// Color used for bottom background
164 // Logical attributes
166 /// Color is inherited
168 /// For ignoring updates of a color
175 void setColor(LColor::color col, string const & x11name);
177 bool setColor(string const & lyxname, string const & x11name);
178 /// Get GUI name of color
179 string const getGUIName(LColor::color c) const;
181 /// Get X11 name of color
182 string const getX11Name(LColor::color c) const;
184 /// Get LaTeX name of color
185 string const getLaTeXName(LColor::color c) const;
187 /// Get LyX name of color
188 string const getLyXName(LColor::color c) const;
190 LColor::color getFromGUIName(string const & guiname) const;
192 LColor::color getFromLyXName(string const & lyxname) const;
207 void fill(LColor::color col, string const & gui,
208 string const & latex, string const & x11,
212 typedef std::map<LColor::color, information> InfoTab;
218 extern LColor lcolor;