2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998-2000 The LyX Team
9 *======================================================*/
23 This is a stateless class.
25 It has one basic purposes:
26 To serve as a color-namespace container (the Color enum).
28 A color can be one of the following kinds:
30 - A real, predefined color, such as black, white, red or green.
31 - A logical color, such as no color, inherit, math
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
82 /// Text color for command insets
84 /// Background color for command insets
86 /// Frame color for command insets
89 /// Text color for accents we can't handle nicely
96 /// Minipage line color
99 /// Special chars text color
102 /// Math inset text color
104 /// Math inset background color
106 /// Math inset frame color
108 /// Math cursor color
113 /// Footnote marker text
115 /// Footnote marker background color
117 /// Footnote line color
123 /// Text color for inset marker
125 /// Inset marker background color
127 /// Inset marker frame color
130 /// Error box text color
134 /// Appendix line color
138 /// Top and bottom line color
146 /// Bottom area color
151 /// Color used for top of boxes
153 /// Color used for bottom of boxes
155 /// Color used for left side of boxes
157 /// Color used for right side of boxes
159 /// Color used for bottom background
162 /// Logical attributes
164 /// Color is inherited
166 /// For ignoring updates of a color
173 void setColor(LColor::color col, string const & x11name);
174 /// Get GUI name of color
175 string getGUIName(LColor::color c) const;
177 /// Get X11 name of color
178 string getX11Name(LColor::color c) const;
180 /// Get LaTeX name of color
181 string getLaTeXName(LColor::color c) const;
183 /// Get LyX name of color
184 string getLyXName(LColor::color c) const;
186 LColor::color getFromGUIName(string const & guiname) const;
188 LColor::color getFromLyXName(string const & lyxname) const;
199 void fill(LColor::color col, string const & gui,
200 string const & latex, string const & x11,
204 typedef std::map<LColor::color, information> InfoTab;
209 extern LColor lcolor;