2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998-2000 The LyX Team
9 *======================================================*/
27 This is a stateless class.
29 It has one basic purposes:
30 To serve as a color-namespace container (the Color enum).
32 A color can be one of the following kinds:
34 - A real, predefined color, such as black, white, red or green.
35 - A logical color, such as no color, inherit, math
41 /// Names of colors, including all logical colors
43 /// No particular color---clear or default
45 /// The different text colors
62 /// Needed interface colors
68 /// Background color of selected text
70 /// Text color in LaTeX mode
72 /// Titles color of floats
75 /// Text color for notes
77 /// Background color of notes
79 /// Frame color for notes
83 /// Text color for command insets
85 /// Background color for command insets
87 /// Frame color for command insets
90 /// Text color for accents we can't handle nicely
97 /// Minipage line color
100 /// Special chars text color
103 /// Math inset text color
105 /// Math inset background color
107 /// Math inset frame color
109 /// Math cursor color
114 /// Footnote marker text
116 /// Footnote marker background color
118 /// Footnote line color
124 /// Text color for inset marker
126 /// Inset marker background color
128 /// Inset marker frame color
131 /// Error box text color
135 /// Appendix line color
139 /// Top and bottom line color
143 /// Bottom area color
148 /// Color used for top of boxes
150 /// Color used for bottom of boxes
152 /// Color used for left side of boxes
154 /// Color used for right side of boxes
156 /// Color used for bottom background
159 /// Logical attributes
161 /// Color is inherited
163 /// For ignoring updates of a color
170 void setColor(LColor::color col, string const & x11name);
171 /// Get GUI name of color
172 string getGUIName(LColor::color c) const;
174 /// Get X11 name of color
175 string getX11Name(LColor::color c) const;
177 /// Get LaTeX name of color
178 string getLaTeXName(LColor::color c) const;
180 /// Get LyX name of color
181 string getLyXName(LColor::color c) const;
183 LColor::color getFromGUIName(string const & guiname) const;
185 LColor::color getFromLyXName(string const & lyxname) const;
196 void fill(LColor::color col, string const & gui,
197 string const & latex, string const & x11,
201 typedef map<LColor::color, information, less<LColor::color> > InfoTab;
206 extern LColor lcolor;