2006-10-10 Chris Toshok <toshok@ximian.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms.RTF / StandardCharName.cs
1 // Permission is hereby granted, free of charge, to any person obtaining
2 // a copy of this software and associated documentation files (the
3 // "Software"), to deal in the Software without restriction, including
4 // without limitation the rights to use, copy, modify, merge, publish,
5 // distribute, sublicense, and/or sell copies of the Software, and to
6 // permit persons to whom the Software is furnished to do so, subject to
7 // the following conditions:
8 // 
9 // The above copyright notice and this permission notice shall be
10 // included in all copies or substantial portions of the Software.
11 // 
12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
16 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
17 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
18 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 //
20 // Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
21 //
22 // Authors:
23 //      Peter Bartok    (pbartok@novell.com)
24 //
25 //
26
27 // COMPLETE
28
29 namespace System.Windows.Forms.RTF {
30         internal class StandardCharName {
31                 public static string[] Names = {
32                         "nothing",
33                         "space",
34                         "exclam",
35                         "quotedbl",
36                         "numbersign",
37                         "dollar",
38                         "percent",
39                         "ampersand",
40                         "quoteright",
41                         "parenleft",
42                         "parenright",
43                         "asterisk",
44                         "plus",
45                         "comma",
46                         "hyphen",
47                         "period",
48                         "slash",
49                         "zero",
50                         "one",
51                         "two",
52                         "three",
53                         "four",
54                         "five",
55                         "six",
56                         "seven",
57                         "eight",
58                         "nine",
59                         "colon",
60                         "semicolon",
61                         "less",
62                         "equal",
63                         "greater",
64                         "question",
65                         "at",
66                         "A",
67                         "B",
68                         "C",
69                         "D",
70                         "E",
71                         "F",
72                         "G",
73                         "H",
74                         "I",
75                         "J",
76                         "K",
77                         "L",
78                         "M",
79                         "N",
80                         "O",
81                         "P",
82                         "Q",
83                         "R",
84                         "S",
85                         "T",
86                         "U",
87                         "V",
88                         "W",
89                         "X",
90                         "Y",
91                         "Z",
92                         "bracketleft",
93                         "backslash",
94                         "bracketright",
95                         "asciicircum",
96                         "underscore",
97                         "quoteleft",
98                         "a",
99                         "b",
100                         "c",
101                         "d",
102                         "e",
103                         "f",
104                         "g",
105                         "h",
106                         "i",
107                         "j",
108                         "k",
109                         "l",
110                         "m",
111                         "n",
112                         "o",
113                         "p",
114                         "q",
115                         "r",
116                         "s",
117                         "t",
118                         "u",
119                         "v",
120                         "w",
121                         "x",
122                         "y",
123                         "z",
124                         "braceleft",
125                         "bar",
126                         "braceright",
127                         "asciitilde",
128                         "exclamdown",
129                         "cent",
130                         "sterling",
131                         "fraction",
132                         "yen",
133                         "florin",
134                         "section",
135                         "currency",
136                         "quotedblleft",
137                         "guillemotleft",
138                         "guilsinglleft",
139                         "guilsinglright",
140                         "fi",
141                         "fl",
142                         "endash",
143                         "dagger",
144                         "daggerdbl",
145                         "periodcentered",
146                         "paragraph",
147                         "bullet",
148                         "quotesinglbase",
149                         "quotedblbase",
150                         "quotedblright",
151                         "guillemotright",
152                         "ellipsis",
153                         "perthousand",
154                         "questiondown",
155                         "grave",
156                         "acute",
157                         "circumflex",
158                         "tilde",
159                         "macron",
160                         "breve",
161                         "dotaccent",
162                         "dieresis",
163                         "ring",
164                         "cedilla",
165                         "hungarumlaut",
166                         "ogonek",
167                         "caron",
168                         "emdash",
169                         "AE",
170                         "ordfeminine",
171                         "Lslash",
172                         "Oslash",
173                         "OE",
174                         "ordmasculine",
175                         "ae",
176                         "dotlessi",
177                         "lslash",
178                         "oslash",
179                         "oe",
180                         "germandbls",
181                         "Aacute",
182                         "Acircumflex",
183                         "Adieresis",
184                         "Agrave",
185                         "Aring",
186                         "Atilde",
187                         "Ccedilla",
188                         "Eacute",
189                         "Ecircumflex",
190                         "Edieresis",
191                         "Egrave",
192                         "Eth",
193                         "Iacute",
194                         "Icircumflex",
195                         "Idieresis",
196                         "Igrave",
197                         "Ntilde",
198                         "Oacute",
199                         "Ocircumflex",
200                         "Odieresis",
201                         "Ograve",
202                         "Otilde",
203                         "Scaron",
204                         "Thorn",
205                         "Uacute",
206                         "Ucircumflex",
207                         "Udieresis",
208                         "Ugrave",
209                         "Yacute",
210                         "Ydieresis",
211                         "aacute",
212                         "acircumflex",
213                         "adieresis",
214                         "agrave",
215                         "aring",
216                         "atilde",
217                         "brokenbar",
218                         "ccedilla",
219                         "copyright",
220                         "degree",
221                         "divide",
222                         "eacute",
223                         "ecircumflex",
224                         "edieresis",
225                         "egrave",
226                         "eth",
227                         "iacute",
228                         "icircumflex",
229                         "idieresis",
230                         "igrave",
231                         "logicalnot",
232                         "minus",
233                         "multiply",
234                         "ntilde",
235                         "oacute",
236                         "ocircumflex",
237                         "odieresis",
238                         "ograve",
239                         "onehalf",
240                         "onequarter",
241                         "onesuperior",
242                         "otilde",
243                         "plusminus",
244                         "registered",
245                         "thorn",
246                         "threequarters",
247                         "threesuperior",
248                         "trademark",
249                         "twosuperior",
250                         "uacute",
251                         "ucircumflex",
252                         "udieresis",
253                         "ugrave",
254                         "yacute",
255                         "ydieresis",
256                         "Alpha",
257                         "Beta",
258                         "Chi",
259                         "Delta",
260                         "Epsilon",
261                         "Phi",
262                         "Gamma",
263                         "Eta",
264                         "Iota",
265                         "Kappa",
266                         "Lambda",
267                         "Mu",
268                         "Nu",
269                         "Omicron",
270                         "Pi",
271                         "Theta",
272                         "Rho",
273                         "Sigma",
274                         "Tau",
275                         "Upsilon",
276                         "varUpsilon",
277                         "Omega",
278                         "Xi",
279                         "Psi",
280                         "Zeta",
281                         "alpha",
282                         "beta",
283                         "chi",
284                         "delta",
285                         "epsilon",
286                         "phi",
287                         "varphi",
288                         "gamma",
289                         "eta",
290                         "iota",
291                         "kappa",
292                         "lambda",
293                         "mu",
294                         "nu",
295                         "omicron",
296                         "pi",
297                         "varpi",
298                         "theta",
299                         "vartheta",
300                         "rho",
301                         "sigma",
302                         "varsigma",
303                         "tau",
304                         "upsilon",
305                         "omega",
306                         "xi",
307                         "psi",
308                         "zeta",
309                         "nobrkspace",
310                         "nobrkhyphen",
311                         "lessequal",
312                         "greaterequal",
313                         "infinity",
314                         "integral",
315                         "notequal",
316                         "radical",
317                         "radicalex",
318                         "approxequal",
319                         "apple",
320                         "partialdiff",
321                         "opthyphen",
322                         "formula",
323                         "lozenge",
324                         "universal",
325                         "existential",
326                         "suchthat",
327                         "congruent",
328                         "therefore",
329                         "perpendicular",
330                         "minute",
331                         "club",
332                         "diamond",
333                         "heart",
334                         "spade",
335                         "arrowboth",
336                         "arrowleft",
337                         "arrowup",
338                         "arrowright",
339                         "arrowdown",
340                         "second",
341                         "proportional",
342                         "equivalence",
343                         "arrowvertex",
344                         "arrowhorizex",
345                         "carriagereturn",
346                         "aleph",
347                         "Ifraktur",
348                         "Rfraktur",
349                         "weierstrass",
350                         "circlemultiply",
351                         "circleplus",
352                         "emptyset",
353                         "intersection",
354                         "union",
355                         "propersuperset",
356                         "reflexsuperset",
357                         "notsubset",
358                         "propersubset",
359                         "reflexsubset",
360                         "element",
361                         "notelement",
362                         "angle",
363                         "gradient",
364                         "product",
365                         "logicaland",
366                         "logicalor",
367                         "arrowdblboth",
368                         "arrowdblleft",
369                         "arrowdblup",
370                         "arrowdblright",
371                         "arrowdbldown",
372                         "angleleft",
373                         "registersans",
374                         "copyrightsans",
375                         "trademarksans",
376                         "angleright",
377                         "mathplus",
378                         "mathminus",
379                         "mathasterisk",
380                         "mathnumbersign",
381                         "dotmath",
382                         "mathequal",
383                         "mathtilde"
384                 };
385
386                 /// <summary>Lookup name by ID</summary>
387                 public static string Name(int index) {
388                         if ((index < 0) || (index >= Names.Length)) {
389                                 return string.Empty;
390                         }
391
392                         return Names[index];
393                 }
394
395                 /// <summary>Lookup ID by name (e.g. mathtilde)</summary>
396                 public static int ID(string name) {
397                         for (int i=0; i < Names.Length; i++) {
398                                 if (name.Equals(Names[i])) {
399                                         return i;
400                                 }
401                         }
402                         return 0;
403                 }
404         }
405 }