2 // Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
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.
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.
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
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.
33 /// Lowercase letters in the enum value signal the format of the string
34 /// literals associated with these enums.
36 /// For example: PROP_uuPROTOuu is "__proto__"
37 /// _: The next letter is capitalized
38 /// For example: PROP_ON_LOAD is "onLoad"
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.
45 /// Names beginning with INTERNAL_ have no named string -- they can only
46 /// be used if you know their key value already.
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)
114 PROP_uuCONSTRUCTORuu
,
130 INTERNAL_HIGHEST_LOWERCASE
,
134 PROP_AS_SET_PROP_FLAGS
,
136 PROP_BROADCAST_MESSAGE
,
160 PROP_ON_LOAD_PROGRESS
,
168 PROP_ON_RELEASE_OUTSIDE
,
175 PROP_ON_SOUND_COMPLETE
,
181 PROP_REMOVE_LISTENER
,
189 PROP_uCUSTOM_HEADERS
,
196 CLASS_AS_BROADCASTER
,
203 CLASS_CONTEXTMENUITEM
,
204 CLASS_CSMTEXTSETTINGS
,
207 CLASS_DISPLAYOBJECTCONTAINER
,
210 CLASS_EVENTDISPATCHER
,
216 CLASS_INTERACTIVEOBJECT
,
220 CLASS_LOCALCONNECTION
,
225 CLASS_MOVIE_CLIP_LOADER
,
227 CLASS_NET_CONNECTION
,
244 CLASS_TEXTDISPLAYMODE
,
248 CLASS_TEXTFORMATALIGN
,
250 CLASS_TEXTFIELDAUTOSIZE
,
251 CLASS_TEXTLINEMETRICS
,
259 NS_FLASH_ACCESSIBILITY
,
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
);
282 #endif // GNASH_NAMED_STRINGS_H