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
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 getGUIName(LColor::color c) const;
181 /// Get X11 name of color
182 string getX11Name(LColor::color c) const;
184 /// Get LaTeX name of color
185 string getLaTeXName(LColor::color c) const;
187 /// Get LyX name of color
188 string getLyXName(LColor::color c) const;
190 LColor::color getFromGUIName(string const & guiname) const;
192 LColor::color getFromLyXName(string const & lyxname) const;
203 void fill(LColor::color col, string const & gui,
204 string const & latex, string const & x11,
208 typedef std::map<LColor::color, information> InfoTab;
213 extern LColor lcolor;