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 /// Text color for command insets
81 /// Background color for command insets
83 /// Frame color for command insets
86 /// Text color for accents we can't handle nicely
93 /// Minipage line color
96 /// Special chars text color
99 /// Math inset text color
101 /// Math inset background color
103 /// Math inset frame color
105 /// Math cursor color
110 /// Footnote marker text
112 /// Footnote marker background color
114 /// Footnote line color
120 /// Text color for inset marker
122 /// Inset marker background color
124 /// Inset marker frame color
127 /// Error box text color
131 /// Appendix line color
135 /// Top and bottom line color
139 /// Bottom area color
144 /// Color used for top of boxes
146 /// Color used for bottom of boxes
148 /// Color used for left side of boxes
150 /// Color used for right side of boxes
152 /// Color used for bottom background
155 /// Logical attributes
157 /// Color is inherited
159 /// For ignoring updates of a color
166 void setColor(LColor::color col, string const & x11name);
167 /// Get GUI name of color
168 string getGUIName(LColor::color c) const;
170 /// Get X11 name of color
171 string getX11Name(LColor::color c) const;
173 /// Get LaTeX name of color
174 string getLaTeXName(LColor::color c) const;
176 /// Get LyX name of color
177 string getLyXName(LColor::color c) const;
179 LColor::color getFromGUIName(string const & guiname) const;
181 LColor::color getFromLyXName(string const & lyxname) const;
192 void fill(LColor::color col, string const & gui,
193 string const & latex, string const & x11,
197 typedef std::map<LColor::color, information> InfoTab;
202 extern LColor lcolor;