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
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.
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"
40 #include "nsICategoryManager.h"
41 #include "nsIServiceManager.h"
44 #include "nsLWBrkConstructors.h"
45 #include "nsSemanticUnitScanner.h"
48 #include "nsUcharUtilConstructors.h"
50 // string bundles (intl)
51 #include "nsStrBundleConstructors.h"
54 #include "nsLocaleConstructors.h"
57 NS_GENERIC_FACTORY_CONSTRUCTOR(nsSemanticUnitScanner
)
59 static nsModuleComponentInfo components
[] =
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
},
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
},
85 { "String Bundle", NS_STRINGBUNDLESERVICE_CID
, NS_STRINGBUNDLE_CONTRACTID
,
86 nsStringBundleServiceConstructor
},
87 { "String Textfile Overrides", NS_STRINGBUNDLETEXTOVERRIDE_CID
,
88 NS_STRINGBUNDLETEXTOVERRIDE_CONTRACTID
,
89 nsStringBundleTextOverrideConstructor
},
92 { "nsLocaleService component",
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
},
112 NS_WIN32LOCALE_CONTRACTID
,
113 nsIWin32LocaleImplConstructor
},
116 NS_COLLATION_CONTRACTID
,
117 nsCollationWinConstructor
},
118 { "Date/Time formatter",
119 NS_DATETIMEFORMAT_CID
,
120 NS_DATETIMEFORMAT_CONTRACTID
,
121 nsDateTimeFormatWinConstructor
},
124 #ifdef USE_UNIX_LOCALE
127 NS_POSIXLOCALE_CONTRACTID
,
128 nsPosixLocaleConstructor
},
132 NS_COLLATION_CONTRACTID
,
133 nsCollationUnixConstructor
},
135 { "Date/Time formatter",
136 NS_DATETIMEFORMAT_CID
,
137 NS_DATETIMEFORMAT_CONTRACTID
,
138 nsDateTimeFormatUnixConstructor
},
141 #ifdef USE_MAC_LOCALE
144 NS_MACLOCALE_CONTRACTID
,
145 nsMacLocaleConstructor
},
148 NS_COLLATION_CONTRACTID
,
149 #ifdef USE_UCCOLLATIONKEY
150 nsCollationMacUCConstructor
},
152 nsCollationMacConstructor
},
154 { "Date/Time formatter",
155 NS_DATETIMEFORMAT_CID
,
156 NS_DATETIMEFORMAT_CONTRACTID
,
157 nsDateTimeFormatMacConstructor
},
163 NS_OS2LOCALE_CONTRACTID
,
164 nsOS2LocaleConstructor
},
167 NS_COLLATION_CONTRACTID
,
168 nsCollationOS2Constructor
},
169 { "Date/Time formatter",
170 NS_DATETIMEFORMAT_CID
,
171 NS_DATETIMEFORMAT_CONTRACTID
,
172 nsDateTimeFormatOS2Constructor
},
178 NS_IMPL_NSGETMODULE(nsI18nModule
, components
)