2#define TORGB( red, green, blue ) \
9void svgNamedColorToRGB( TQString rgbColor, int &r, int &g, int &b )
11 if( rgbColor == "aliceblue" )
13 else if( rgbColor == "antiquewhite" )
15 else if( rgbColor == "aqua" )
17 else if( rgbColor == "aquamarine" )
18 TORGB( 127, 255, 212 )
19 else if( rgbColor == "azure" )
20 TORGB( 240, 255, 255 )
21 else if( rgbColor == "beige" )
22 TORGB( 245, 245, 220 )
23 else if( rgbColor == "bisque" )
24 TORGB( 255, 228, 196 )
25 else if( rgbColor == "black" )
27 else if( rgbColor == "blanchedalmond" )
28 TORGB( 255, 235, 205 )
29 else if( rgbColor == "blue" )
31 else if( rgbColor == "blueviolet" )
33 else if( rgbColor == "brown" )
35 else if( rgbColor == "burlywood" )
36 TORGB( 222, 184, 135 )
37 else if( rgbColor == "cadetblue" )
39 else if( rgbColor == "chartreuse" )
41 else if( rgbColor == "chocolate" )
43 else if( rgbColor == "coral" )
45 else if( rgbColor == "cornflowerblue" )
46 TORGB( 100, 149, 237 )
47 else if( rgbColor == "cornsilk" )
48 TORGB( 255, 248, 220 )
49 else if( rgbColor == "crimson" )
51 else if( rgbColor == "cyan" )
53 else if( rgbColor == "darkblue" )
55 else if( rgbColor == "darkcyan" )
57 else if( rgbColor == "darkgoldenrod" )
59 else if( rgbColor == "darkgray" )
60 TORGB( 169, 169, 169 )
61 else if( rgbColor == "darkgrey" )
62 TORGB( 169, 169, 169 )
63 else if( rgbColor == "darkgreen" )
65 else if( rgbColor == "darkkhaki" )
66 TORGB( 189, 183, 107 )
67 else if( rgbColor == "darkmagenta" )
69 else if( rgbColor == "darkolivegreen" )
71 else if( rgbColor == "darkorange" )
73 else if( rgbColor == "darkorchid" )
75 else if( rgbColor == "darkred" )
77 else if( rgbColor == "darksalmon" )
78 TORGB( 233, 150, 122 )
79 else if( rgbColor == "darkseagreen" )
80 TORGB( 143, 188, 143 )
81 else if( rgbColor == "darkslateblue" )
83 else if( rgbColor == "darkslategray" )
85 else if( rgbColor == "darkslategrey" )
87 else if( rgbColor == "darkturquoise" )
89 else if( rgbColor == "darkviolet" )
91 else if( rgbColor == "deeppink" )
93 else if( rgbColor == "deepskyblue" )
95 else if( rgbColor == "dimgray" )
96 TORGB( 105, 105, 105 )
97 else if( rgbColor == "dimgrey" )
98 TORGB( 105, 105, 105 )
99 else if( rgbColor == "dodgerblue" )
100 TORGB( 30, 144, 255 )
101 else if( rgbColor == "firebrick" )
103 else if( rgbColor == "floralwhite" )
104 TORGB( 255, 250, 240 )
105 else if( rgbColor == "forestgreen" )
107 else if( rgbColor == "fuchsia" )
109 else if( rgbColor == "gainsboro" )
110 TORGB( 220, 220, 220 )
111 else if( rgbColor == "ghostwhite" )
112 TORGB( 248, 248, 255 )
113 else if( rgbColor == "gold" )
115 else if( rgbColor == "goldenrod" )
116 TORGB( 218, 165, 32 )
117 else if( rgbColor == "gray" )
118 TORGB( 128, 128, 128 )
119 else if( rgbColor == "grey" )
120 TORGB( 128, 128, 128 )
121 else if( rgbColor == "green" )
123 else if( rgbColor == "greenyellow" )
124 TORGB( 173, 255, 47 )
125 else if( rgbColor == "honeydew" )
126 TORGB( 240, 255, 240 )
127 else if( rgbColor == "hotpink" )
128 TORGB( 255, 105, 180 )
129 else if( rgbColor == "indianred" )
131 else if( rgbColor == "indigo" )
133 else if( rgbColor == "ivory" )
134 TORGB( 255, 255, 240 )
135 else if( rgbColor == "khaki" )
136 TORGB( 240, 230, 140 )
137 else if( rgbColor == "lavender" )
138 TORGB( 230, 230, 250 )
139 else if( rgbColor == "lavenderblush" )
140 TORGB( 255, 240, 245 )
141 else if( rgbColor == "lawngreen" )
143 else if( rgbColor == "lemonchiffon" )
144 TORGB( 255, 250, 205 )
145 else if( rgbColor == "lightblue" )
146 TORGB( 173, 216, 230 )
147 else if( rgbColor == "lightcoral" )
148 TORGB( 240, 128, 128 )
149 else if( rgbColor == "lightcyan" )
150 TORGB( 224, 255, 255 )
151 else if( rgbColor == "lightgoldenrodyellow" )
152 TORGB( 250, 250, 210 )
153 else if( rgbColor == "lightgray" )
154 TORGB( 211, 211, 211 )
155 else if( rgbColor == "lightgrey" )
156 TORGB( 211, 211, 211 )
157 else if( rgbColor == "lightgreen" )
158 TORGB( 144, 238, 144 )
159 else if( rgbColor == "lightpink" )
160 TORGB( 255, 182, 193 )
161 else if( rgbColor == "lightsalmon" )
162 TORGB( 255, 160, 122 )
163 else if( rgbColor == "lightseagreen" )
164 TORGB( 32, 178, 170 )
165 else if( rgbColor == "lightskyblue" )
166 TORGB( 135, 206, 250 )
167 else if( rgbColor == "lightslategray" )
168 TORGB( 119, 136, 153 )
169 else if( rgbColor == "lightslategrey" )
170 TORGB( 119, 136, 153 )
171 else if( rgbColor == "lightsteelblue" )
172 TORGB( 176, 196, 222 )
173 else if( rgbColor == "lightyellow" )
174 TORGB( 255, 255, 224 )
175 else if( rgbColor == "lime" )
177 else if( rgbColor == "limegreen" )
179 else if( rgbColor == "linen" )
180 TORGB( 250, 240, 230 )
181 else if( rgbColor == "magenta" )
183 else if( rgbColor == "maroon" )
185 else if( rgbColor == "mediumaquamarine" )
186 TORGB( 102, 205, 170 )
187 else if( rgbColor == "mediumblue" )
189 else if( rgbColor == "mediumorchid" )
190 TORGB( 186, 85, 211 )
191 else if( rgbColor == "mediumpurple" )
192 TORGB( 147, 112, 219 )
193 else if( rgbColor == "mediumseagreen" )
194 TORGB( 60, 179, 113 )
195 else if( rgbColor == "mediumslateblue" )
196 TORGB( 123, 104, 238 )
197 else if( rgbColor == "mediumspringgreen" )
199 else if( rgbColor == "mediumturquoise" )
200 TORGB( 72, 209, 204 )
201 else if( rgbColor == "mediumvioletred" )
202 TORGB( 199, 21, 133 )
203 else if( rgbColor == "midnightblue" )
205 else if( rgbColor == "mintcream" )
206 TORGB( 245, 255, 250 )
207 else if( rgbColor == "mistyrose" )
208 TORGB( 255, 228, 225 )
209 else if( rgbColor == "moccasin" )
210 TORGB( 255, 228, 181 )
211 else if( rgbColor == "navajowhite" )
212 TORGB( 255, 222, 173 )
213 else if( rgbColor == "navy" )
215 else if( rgbColor == "oldlace" )
216 TORGB( 253, 245, 230 )
217 else if( rgbColor == "olive" )
219 else if( rgbColor == "olivedrab" )
220 TORGB( 107, 142, 35 )
221 else if( rgbColor == "orange" )
223 else if( rgbColor == "orangered" )
225 else if( rgbColor == "orchid" )
226 TORGB( 218, 112, 214 )
227 else if( rgbColor == "palegoldenrod" )
228 TORGB( 238, 232, 170 )
229 else if( rgbColor == "palegreen" )
230 TORGB( 152, 251, 152 )
231 else if( rgbColor == "paleturquoise" )
232 TORGB( 175, 238, 238 )
233 else if( rgbColor == "palevioletred" )
234 TORGB( 219, 112, 147 )
235 else if( rgbColor == "papayawhip" )
236 TORGB( 255, 239, 213 )
237 else if( rgbColor == "peachpuff" )
238 TORGB( 255, 218, 185 )
239 else if( rgbColor == "peru" )
240 TORGB( 205, 133, 63 )
241 else if( rgbColor == "pink" )
242 TORGB( 255, 192, 203 )
243 else if( rgbColor == "plum" )
244 TORGB( 221, 160, 221 )
245 else if( rgbColor == "powderblue" )
246 TORGB( 176, 224, 230 )
247 else if( rgbColor == "purple" )
249 else if( rgbColor == "red" )
251 else if( rgbColor == "rosybrown" )
252 TORGB( 188, 143, 143 )
253 else if( rgbColor == "royalblue" )
254 TORGB( 65, 105, 225 )
255 else if( rgbColor == "saddlebrown" )
257 else if( rgbColor == "salmon" )
258 TORGB( 250, 128, 114 )
259 else if( rgbColor == "sandybrown" )
260 TORGB( 244, 164, 96 )
261 else if( rgbColor == "seagreen" )
263 else if( rgbColor == "seashell" )
264 TORGB( 255, 245, 238 )
265 else if( rgbColor == "sienna" )
267 else if( rgbColor == "silver" )
268 TORGB( 192, 192, 192 )
269 else if( rgbColor == "skyblue" )
270 TORGB( 135, 206, 235 )
271 else if( rgbColor == "slateblue" )
272 TORGB( 106, 90, 205 )
273 else if( rgbColor == "slategray" )
274 TORGB( 112, 128, 144 )
275 else if( rgbColor == "slategrey" )
276 TORGB( 112, 128, 144 )
277 else if( rgbColor == "snow" )
278 TORGB( 255, 250, 250 )
279 else if( rgbColor == "springgreen" )
281 else if( rgbColor == "steelblue" )
282 TORGB( 70, 130, 180 )
283 else if( rgbColor == "tan" )
284 TORGB( 210, 180, 140 )
285 else if( rgbColor == "teal" )
287 else if( rgbColor == "thistle" )
288 TORGB( 216, 191, 216 )
289 else if( rgbColor == "tomato" )
291 else if( rgbColor == "turquoise" )
292 TORGB( 64, 224, 208 )
293 else if( rgbColor == "violet" )
294 TORGB( 238, 130, 238 )
295 else if( rgbColor == "wheat" )
296 TORGB( 245, 222, 179 )
297 else if( rgbColor == "white" )
298 TORGB( 255, 255, 255 )
299 else if( rgbColor == "whitesmoke" )
300 TORGB( 245, 245, 245 )
301 else if( rgbColor == "yellow" )
303 else if( rgbColor == "yellowgreen" )
304 TORGB( 154, 205, 50 )
|