Bug 575870 - Enable the firefox button on xp themed, classic, and aero basic. r=dao...
[mozilla-central.git] / layout / style / nsCSSKeywords.h
blobb83d64e62cd3096dc208a17d088f8e0779ddfb29
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
22 * Contributor(s):
24 * Alternatively, the contents of this file may be used under the terms of
25 * either of the GNU General Public License Version 2 or later (the "GPL"),
26 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
36 * ***** END LICENSE BLOCK ***** */
38 /* keywords used within CSS property values */
40 #ifndef nsCSSKeywords_h___
41 #define nsCSSKeywords_h___
43 #include "nsStringFwd.h"
46 Declare the enum list using the magic of preprocessing
47 enum values are "eCSSKeyword_foo" (where foo is the keyword)
49 To change the list of keywords, see nsCSSKeywordList.h
52 #define CSS_KEY(_name,_id) eCSSKeyword_##_id,
53 enum nsCSSKeyword {
54 eCSSKeyword_UNKNOWN = -1,
55 #include "nsCSSKeywordList.h"
56 eCSSKeyword_COUNT
58 #undef CSS_KEY
61 class nsCSSKeywords {
62 public:
63 static void AddRefTable(void);
64 static void ReleaseTable(void);
66 // Given a keyword string, return the enum value
67 static nsCSSKeyword LookupKeyword(const nsACString& aKeyword);
68 static nsCSSKeyword LookupKeyword(const nsAString& aKeyword);
70 // Given a keyword enum, get the string value
71 static const nsAFlatCString& GetStringValue(nsCSSKeyword aKeyword);
74 #endif /* nsCSSKeywords_h___ */