2 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc.
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 // A file to contain all of the different strings for which we want compile time
20 // known string table keys.
21 #ifndef GNASH_NAMED_STRINGS_H
22 #define GNASH_NAMED_STRINGS_H
26 class string_table
; // Forward
28 /// Named String Values
30 /// These are enumerations of the strings which should have known string
31 /// table values. They are the first strings added to the string table,
32 /// and the key will be equal to the enumeration.
34 /// Lowercase letters in the enum value signal the format of the string
35 /// literals associated with these enums.
37 /// For example: PROP_uuPROTOuu is "__proto__"
38 /// _: The next letter is capitalized
39 /// For example: PROP_ON_LOAD is "onLoad"
41 /// Names beginning with PROP_ have a lowercase initial letter
42 /// Names beginning with CLASS_ have an uppercase initial letter
43 /// Names beginning with NS_ have a lowercase initial letter and _ are
44 /// . instead of uppercase.
46 /// Names beginning with INTERNAL_ have no named string -- they can only
47 /// be used if you know their key value already.
50 /// All known lower-case names are grouped at the beginning
51 /// of the enum, followed by INTERNAL_HIGHEST_LOWERCASE.
52 /// WARNING: putting mixed-case names before
53 /// INTERNAL_HIGHEST_LOWERCASE introduces bugs !
54 /// (putting lower-case names after INTERNAL_HIGHEST_LOWERCASE
55 /// is fine, except for performance)
117 PROP_uuCONSTRUCTORuu
,
133 INTERNAL_HIGHEST_LOWERCASE
,
137 PROP_AS_SET_PROP_FLAGS
,
139 PROP_BROADCAST_MESSAGE
,
163 PROP_ON_LOAD_PROGRESS
,
171 PROP_ON_RELEASE_OUTSIDE
,
178 PROP_ON_SOUND_COMPLETE
,
184 PROP_REMOVE_LISTENER
,
192 PROP_uCUSTOM_HEADERS
,
199 CLASS_AS_BROADCASTER
,
206 CLASS_CONTEXTMENUITEM
,
207 CLASS_CSMTEXTSETTINGS
,
210 CLASS_DISPLAYOBJECTCONTAINER
,
213 CLASS_EVENTDISPATCHER
,
219 CLASS_INTERACTIVEOBJECT
,
223 CLASS_LOCALCONNECTION
,
228 CLASS_MOVIE_CLIP_LOADER
,
230 CLASS_NET_CONNECTION
,
247 CLASS_TEXTDISPLAYMODE
,
251 CLASS_TEXTFORMATALIGN
,
253 CLASS_TEXTFIELDAUTOSIZE
,
254 CLASS_TEXTLINEMETRICS
,
262 NS_FLASH_ACCESSIBILITY
,
275 INTERNAL_STACK_PARENT
, // Any public property is unsafe
276 INTERNAL_TYPE
// The type name
279 /// Load the prenamed strings.
280 void loadStrings(string_table
&table
);
285 #endif // GNASH_NAMED_STRINGS_H