Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / intl / build / nsI18nModule.cpp
blob198c4aa7091bbb5954a93153857c5d606f79dd6b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #include "nsIGenericFactory.h"
39 #include "nsCOMPtr.h"
40 #include "nsICategoryManager.h"
41 #include "nsIServiceManager.h"
43 // lwbrk
44 #include "nsLWBrkConstructors.h"
45 #include "nsSemanticUnitScanner.h"
47 // unicharutil
48 #include "nsUcharUtilConstructors.h"
50 // string bundles (intl)
51 #include "nsStrBundleConstructors.h"
53 // locale
54 #include "nsLocaleConstructors.h"
57 NS_GENERIC_FACTORY_CONSTRUCTOR(nsSemanticUnitScanner)
59 static nsModuleComponentInfo components[] =
61 // lwbrk
62 { "Line Breaker", NS_LBRK_CID,
63 NS_LBRK_CONTRACTID, nsJISx4051LineBreakerConstructor},
64 { "Word Breaker", NS_WBRK_CID,
65 NS_WBRK_CONTRACTID, nsSampleWordBreakerConstructor},
66 { "Semantic Unit Scanner", NS_SEMANTICUNITSCANNER_CID,
67 NS_SEMANTICUNITSCANNER_CONTRACTID, nsSemanticUnitScannerConstructor},
69 // unicharutil
70 { "Unichar Utility", NS_UNICHARUTIL_CID,
71 NS_UNICHARUTIL_CONTRACTID, nsCaseConversionImp2Constructor},
72 { "Unichar Category Table", NS_UNICHARCATEGORY_CID,
73 NS_UNICHARCATEGORY_CONTRACTID, nsCategoryImpConstructor},
74 { "Unicode To Entity Converter", NS_ENTITYCONVERTER_CID,
75 NS_ENTITYCONVERTER_CONTRACTID, nsEntityConverterConstructor },
76 { "Unicode To Charset Converter", NS_SAVEASCHARSET_CID,
77 NS_SAVEASCHARSET_CONTRACTID, nsSaveAsCharsetConstructor},
78 { "Japanese Hankaku To Zenkaku", NS_HANKAKUTOZENKAKU_CID,
79 NS_HANKAKUTOZENKAKU_CONTRACTID, CreateNewHankakuToZenkaku},
80 { "Unicode Normlization", NS_UNICODE_NORMALIZER_CID,
81 NS_UNICODE_NORMALIZER_CONTRACTID, nsUnicodeNormalizerConstructor},
84 // strres
85 { "String Bundle", NS_STRINGBUNDLESERVICE_CID, NS_STRINGBUNDLE_CONTRACTID,
86 nsStringBundleServiceConstructor},
87 { "String Textfile Overrides", NS_STRINGBUNDLETEXTOVERRIDE_CID,
88 NS_STRINGBUNDLETEXTOVERRIDE_CONTRACTID,
89 nsStringBundleTextOverrideConstructor },
91 // locale
92 { "nsLocaleService component",
93 NS_LOCALESERVICE_CID,
94 NS_LOCALESERVICE_CONTRACTID,
95 CreateLocaleService },
96 { "Collation factory",
97 NS_COLLATIONFACTORY_CID,
98 NS_COLLATIONFACTORY_CONTRACTID,
99 nsCollationFactoryConstructor },
100 { "Scriptable Date Format",
101 NS_SCRIPTABLEDATEFORMAT_CID,
102 NS_SCRIPTABLEDATEFORMAT_CONTRACTID,
103 NS_NewScriptableDateFormat },
104 { "Language Atom Service",
105 NS_LANGUAGEATOMSERVICE_CID,
106 NS_LANGUAGEATOMSERVICE_CONTRACTID,
107 nsLanguageAtomServiceConstructor },
109 #ifdef XP_WIN
110 { "Platform locale",
111 NS_WIN32LOCALE_CID,
112 NS_WIN32LOCALE_CONTRACTID,
113 nsIWin32LocaleImplConstructor },
114 { "Collation",
115 NS_COLLATION_CID,
116 NS_COLLATION_CONTRACTID,
117 nsCollationWinConstructor },
118 { "Date/Time formatter",
119 NS_DATETIMEFORMAT_CID,
120 NS_DATETIMEFORMAT_CONTRACTID,
121 nsDateTimeFormatWinConstructor },
122 #endif
124 #ifdef USE_UNIX_LOCALE
125 { "Platform locale",
126 NS_POSIXLOCALE_CID,
127 NS_POSIXLOCALE_CONTRACTID,
128 nsPosixLocaleConstructor },
130 { "Collation",
131 NS_COLLATION_CID,
132 NS_COLLATION_CONTRACTID,
133 nsCollationUnixConstructor },
135 { "Date/Time formatter",
136 NS_DATETIMEFORMAT_CID,
137 NS_DATETIMEFORMAT_CONTRACTID,
138 nsDateTimeFormatUnixConstructor },
139 #endif
141 #ifdef USE_MAC_LOCALE
142 { "Mac locale",
143 NS_MACLOCALE_CID,
144 NS_MACLOCALE_CONTRACTID,
145 nsMacLocaleConstructor },
146 { "Collation",
147 NS_COLLATION_CID,
148 NS_COLLATION_CONTRACTID,
149 #ifdef USE_UCCOLLATIONKEY
150 nsCollationMacUCConstructor },
151 #else
152 nsCollationMacConstructor },
153 #endif
154 { "Date/Time formatter",
155 NS_DATETIMEFORMAT_CID,
156 NS_DATETIMEFORMAT_CONTRACTID,
157 nsDateTimeFormatMacConstructor },
158 #endif
160 #ifdef XP_OS2
161 { "OS/2 locale",
162 NS_OS2LOCALE_CID,
163 NS_OS2LOCALE_CONTRACTID,
164 nsOS2LocaleConstructor },
165 { "Collation",
166 NS_COLLATION_CID,
167 NS_COLLATION_CONTRACTID,
168 nsCollationOS2Constructor },
169 { "Date/Time formatter",
170 NS_DATETIMEFORMAT_CID,
171 NS_DATETIMEFORMAT_CONTRACTID,
172 nsDateTimeFormatOS2Constructor },
173 #endif
178 NS_IMPL_NSGETMODULE(nsI18nModule, components)