drop libxv, add lsb-release
[gnash.git] / libcore / namedStrings.h
blobc4292a827c4d358c98c7d1c51a5b18c56f3e9d0b
1 //
2 // Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 // A file to contain all of the different strings for which we want compile time
19 // known string table keys.
20 #ifndef GNASH_NAMED_STRINGS_H
21 #define GNASH_NAMED_STRINGS_H
23 namespace gnash {
25 class string_table; // Forward
27 /// Named String Values
29 /// These are enumerations of the strings which should have known string
30 /// table values. They are the first strings added to the string table,
31 /// and the key will be equal to the enumeration.
32 ///
33 /// Lowercase letters in the enum value signal the format of the string
34 /// literals associated with these enums.
35 /// u: An underscore
36 /// For example: PROP_uuPROTOuu is "__proto__"
37 /// _: The next letter is capitalized
38 /// For example: PROP_ON_LOAD is "onLoad"
39 ///
40 /// Names beginning with PROP_ have a lowercase initial letter
41 /// Names beginning with CLASS_ have an uppercase initial letter
42 /// Names beginning with NS_ have a lowercase initial letter and _ are
43 /// . instead of uppercase.
44 ///
45 /// Names beginning with INTERNAL_ have no named string -- they can only
46 /// be used if you know their key value already.
47 namespace NSV {
49 /// All known lower-case names are grouped at the beginning
50 /// of the enum, followed by INTERNAL_HIGHEST_LOWERCASE.
51 /// WARNING: putting mixed-case names before
52 /// INTERNAL_HIGHEST_LOWERCASE introduces bugs !
53 /// (putting lower-case names after INTERNAL_HIGHEST_LOWERCASE
54 /// is fine, except for performance)
55 ///
56 enum NamedStrings {
57 PROP_A = 1,
58 PROP_ALIGN,
59 PROP_ARGUMENTS,
60 PROP_B,
61 PROP_BOLD,
62 PROP_C,
63 PROP_CALLEE,
64 PROP_CALLER,
65 PROP_COLOR,
66 PROP_CONCAT,
67 PROP_CONSTRUCTOR,
68 PROP_D,
69 PROP_DATA,
70 PROP_DECODE,
71 PROP_E,
72 PROP_ENABLED,
73 PROP_ESCAPE,
74 PROP_G,
75 PROP_H,
76 PROP_HEIGHT,
77 PROP_INDENT,
78 PROP_ITALIC,
79 PROP_LEADING,
80 PROP_LEFT_MARGIN,
81 PROP_LENGTH,
82 PROP_LOADED,
83 PROP_METH,
84 PROP_PROTOTYPE,
85 PROP_PUSH,
86 PROP_R,
87 PROP_SIZE,
88 PROP_SPLICE,
89 PROP_STATUS,
90 PROP_SUPER,
91 PROP_TARGET,
92 PROP_TEXT,
93 PROP_THIS,
94 PROP_TX,
95 PROP_TY,
96 PROP_uALPHA,
97 PROP_uCURRENTFRAME,
98 PROP_uDROPTARGET,
99 PROP_uFOCUSRECT,
100 PROP_uFRAMESLOADED,
101 PROP_uGLOBAL,
102 PROP_uHEIGHT,
103 PROP_uHIGHQUALITY,
104 PROP_uLISTENERS,
105 PROP_uNAME,
106 PROP_UNDERLINE,
107 PROP_uPARENT,
108 PROP_uQUALITY,
109 PROP_uROOT,
110 PROP_uROTATION,
111 PROP_uSOUNDBUFTIME,
112 PROP_uTARGET,
113 PROP_uTOTALFRAMES,
114 PROP_uuCONSTRUCTORuu,
115 PROP_uuPROTOuu,
116 PROP_uuRESOLVE,
117 PROP_uURL,
118 PROP_uVISIBLE,
119 PROP_uWIDTH,
120 PROP_uX,
121 PROP_uXMOUSE,
122 PROP_uXSCALE,
123 PROP_uY,
124 PROP_uYMOUSE,
125 PROP_uYSCALE,
126 PROP_W,
127 PROP_WIDTH,
128 PROP_X,
129 PROP_Y,
130 INTERNAL_HIGHEST_LOWERCASE,
132 PROP_ADD_LISTENER,
133 PROP_AS_NATIVE,
134 PROP_AS_SET_PROP_FLAGS,
135 PROP_BLOCK_INDENT,
136 PROP_BROADCAST_MESSAGE,
137 PROP_BULLET,
138 PROP_uBYTES_TOTAL,
139 PROP_uBYTES_LOADED,
140 PROP_CONTENT_TYPE,
141 PROP_FOCUS_ENABLED,
142 PROP_HTML_TEXT,
143 PROP_MATRIX_TYPE,
144 PROP_ON_CLOSE,
145 PROP_ON_CONNECT,
146 PROP_ON_CONSTRUCT,
147 PROP_ON_DATA,
148 PROP_ON_DRAG_OUT,
149 PROP_ON_DRAG_OVER,
150 PROP_ON_ENTER_FRAME,
151 PROP_ON_FULLSCREEN,
152 PROP_ON_INITIALIZE,
153 PROP_ON_KEY_DOWN,
154 PROP_ON_KEY_PRESS,
155 PROP_ON_KEY_UP,
156 PROP_ON_KILL_FOCUS,
157 PROP_ON_LOAD,
158 PROP_ON_LOAD_ERROR,
159 PROP_ON_LOAD_INIT,
160 PROP_ON_LOAD_PROGRESS,
161 PROP_ON_LOAD_START,
162 PROP_ON_META_DATA,
163 PROP_ON_MOUSE_DOWN,
164 PROP_ON_MOUSE_MOVE,
165 PROP_ON_MOUSE_UP,
166 PROP_ON_PRESS,
167 PROP_ON_RELEASE,
168 PROP_ON_RELEASE_OUTSIDE,
169 PROP_ON_RESIZE,
170 PROP_ON_RESULT,
171 PROP_ON_ROLL_OUT,
172 PROP_ON_ROLL_OVER,
173 PROP_ON_SELECT,
174 PROP_ON_SET_FOCUS,
175 PROP_ON_SOUND_COMPLETE,
176 PROP_ON_STATUS,
177 PROP_ON_TIMER,
178 PROP_ON_UNLOAD,
179 PROP_ON_XML,
180 PROP_PARSE_XML,
181 PROP_REMOVE_LISTENER,
182 PROP_RIGHT_MARGIN,
183 PROP_SCALE_MODE,
184 PROP_TEXT_COLOR,
185 PROP_TEXT_HEIGHT,
186 PROP_TEXT_WIDTH,
187 PROP_TO_LOWER_CASE,
188 PROP_TO_STRING,
189 PROP_uCUSTOM_HEADERS,
190 PROP_USEHANDCURSOR,
191 PROP_VALUE_OF,
192 PROP_ON_SYNC,
193 CLASS_ACCESSIBILITY,
194 CLASS_ANTIALIASTYPE,
195 CLASS_ARRAY,
196 CLASS_AS_BROADCASTER,
197 CLASS_BITMAP,
198 CLASS_BOOLEAN,
199 CLASS_BUTTON,
200 CLASS_CAMERA,
201 CLASS_COLOR,
202 CLASS_CONTEXTMENU,
203 CLASS_CONTEXTMENUITEM,
204 CLASS_CSMTEXTSETTINGS,
205 CLASS_DATE,
206 CLASS_DISPLAYOBJECT,
207 CLASS_DISPLAYOBJECTCONTAINER,
208 CLASS_ERROR,
209 CLASS_EVENT,
210 CLASS_EVENTDISPATCHER,
211 CLASS_FONT,
212 CLASS_FONTSTYLE,
213 CLASS_FUNCTION,
214 CLASS_GRIDFITTYPE,
215 CLASS_INT,
216 CLASS_INTERACTIVEOBJECT,
217 CLASS_KEY,
218 CLASS_KEYBOARD,
219 CLASS_LOAD_VARS,
220 CLASS_LOCALCONNECTION,
221 CLASS_MATH,
222 CLASS_MICROPHONE,
223 CLASS_MOUSE,
224 CLASS_MOVIE_CLIP,
225 CLASS_MOVIE_CLIP_LOADER,
226 CLASS_NAMESPACE,
227 CLASS_NET_CONNECTION,
228 CLASS_NET_STREAM,
229 CLASS_NUMBER,
230 CLASS_OBJECT,
231 CLASS_QNAME,
232 CLASS_SELECTION,
233 CLASS_SHAPE,
234 CLASS_SHARED_OBJECT,
235 CLASS_SIMPLE_BUTTON,
236 CLASS_SOUND,
237 CLASS_SPRITE,
238 CLASS_STAGE,
239 CLASS_STATICTEXT,
240 CLASS_STRING,
241 CLASS_STYLESHEET,
242 CLASS_SYSTEM,
243 CLASS_TEXTCOLORTYPE,
244 CLASS_TEXTDISPLAYMODE,
245 CLASS_TEXT_FIELD,
246 CLASS_TEXTFIELDTYPE,
247 CLASS_TEXT_FORMAT,
248 CLASS_TEXTFORMATALIGN,
249 CLASS_TEXT_SNAPSHOT,
250 CLASS_TEXTFIELDAUTOSIZE,
251 CLASS_TEXTLINEMETRICS,
252 CLASS_TEXTRENDERER,
253 CLASS_VIDEO,
254 CLASS_XML,
255 CLASS_XML_DOCUMENT,
256 CLASS_XMLNODE,
257 CLASS_XMLSOCKET,
258 NS_ADOBE_UTILS,
259 NS_FLASH_ACCESSIBILITY,
260 NS_FLASH_DISPLAY,
261 NS_FLASH_EVENTS,
262 NS_FLASH_ERRORS,
263 NS_FLASH_GEOM,
264 NS_FLASH_MEDIA,
265 NS_FLASH_NET,
266 NS_FLASH_SYSTEM,
267 NS_FLASH_TEXT,
268 NS_FLASH_UI,
269 NS_FLASH_UTILS,
270 NS_FLASH_XML,
271 INTERNAL_INTERFACES,
272 INTERNAL_STACK_PARENT, // Any public property is unsafe
273 INTERNAL_TYPE // The type name
276 /// Load the prenamed strings.
277 void loadStrings(string_table &table);
279 } // namespace NSV
280 } // namespace gnash
282 #endif // GNASH_NAMED_STRINGS_H