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