2002-09-18 18:37:11 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2004-04-18 14:21:17 +00:00
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
2002-09-18 18:37:11 +00:00
|
|
|
*
|
2004-04-18 14:21:17 +00:00
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
2002-09-18 18:37:11 +00:00
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2004-04-18 14:21:17 +00:00
|
|
|
* The Initial Developer of the Original Code is
|
2002-09-18 18:37:11 +00:00
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2004-04-18 14:21:17 +00:00
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
2002-09-18 18:37:11 +00:00
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
2004-04-18 14:21:17 +00:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
2002-09-18 18:37:11 +00:00
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
2004-04-18 14:21:17 +00:00
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
2002-09-18 18:37:11 +00:00
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
#include "nsIGenericFactory.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsICategoryManager.h"
|
|
|
|
#include "nsIServiceManager.h"
|
|
|
|
|
2002-09-18 20:03:11 +00:00
|
|
|
// lwbrk
|
|
|
|
#include "nsLWBrkConstructors.h"
|
2002-11-22 22:36:42 +00:00
|
|
|
#include "nsSemanticUnitScanner.h"
|
2002-09-18 18:37:11 +00:00
|
|
|
|
2002-09-18 20:03:11 +00:00
|
|
|
// unicharutil
|
|
|
|
#include "nsUcharUtilConstructors.h"
|
2002-09-18 20:44:38 +00:00
|
|
|
|
|
|
|
// string bundles (intl)
|
|
|
|
#include "nsStrBundleConstructors.h"
|
|
|
|
|
|
|
|
// locale
|
|
|
|
#include "nsLocaleConstructors.h"
|
|
|
|
|
2002-11-22 22:36:42 +00:00
|
|
|
|
2003-09-07 22:24:21 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSemanticUnitScanner)
|
2002-11-22 22:36:42 +00:00
|
|
|
|
2002-09-18 18:37:11 +00:00
|
|
|
static nsModuleComponentInfo components[] =
|
|
|
|
{
|
2002-09-18 20:03:11 +00:00
|
|
|
// lwbrk
|
2005-08-22 03:00:06 +00:00
|
|
|
{ "Line Breaker", NS_LBRK_CID,
|
|
|
|
NS_LBRK_CONTRACTID, nsJISx4051LineBreakerConstructor},
|
|
|
|
{ "Word Breaker", NS_WBRK_CID,
|
|
|
|
NS_WBRK_CONTRACTID, nsSampleWordBreakerConstructor},
|
2002-11-22 22:36:42 +00:00
|
|
|
{ "Semantic Unit Scanner", NS_SEMANTICUNITSCANNER_CID,
|
|
|
|
NS_SEMANTICUNITSCANNER_CONTRACTID, nsSemanticUnitScannerConstructor},
|
2002-09-18 20:03:11 +00:00
|
|
|
|
|
|
|
// unicharutil
|
|
|
|
{ "Unichar Utility", NS_UNICHARUTIL_CID,
|
|
|
|
NS_UNICHARUTIL_CONTRACTID, nsCaseConversionImp2Constructor},
|
2007-08-29 02:03:31 +00:00
|
|
|
{ "Unichar Category Table", NS_UNICHARCATEGORY_CID,
|
|
|
|
NS_UNICHARCATEGORY_CONTRACTID, nsCategoryImpConstructor},
|
2002-09-18 20:03:11 +00:00
|
|
|
{ "Unicode To Entity Converter", NS_ENTITYCONVERTER_CID,
|
|
|
|
NS_ENTITYCONVERTER_CONTRACTID, nsEntityConverterConstructor },
|
|
|
|
{ "Unicode To Charset Converter", NS_SAVEASCHARSET_CID,
|
|
|
|
NS_SAVEASCHARSET_CONTRACTID, nsSaveAsCharsetConstructor},
|
|
|
|
{ "Japanese Hankaku To Zenkaku", NS_HANKAKUTOZENKAKU_CID,
|
|
|
|
NS_HANKAKUTOZENKAKU_CONTRACTID, CreateNewHankakuToZenkaku},
|
2003-01-17 23:30:01 +00:00
|
|
|
{ "Unicode Normlization", NS_UNICODE_NORMALIZER_CID,
|
|
|
|
NS_UNICODE_NORMALIZER_CONTRACTID, nsUnicodeNormalizerConstructor},
|
|
|
|
|
2002-09-18 20:44:38 +00:00
|
|
|
|
|
|
|
// strres
|
2002-10-14 19:06:27 +00:00
|
|
|
{ "String Bundle", NS_STRINGBUNDLESERVICE_CID, NS_STRINGBUNDLE_CONTRACTID,
|
|
|
|
nsStringBundleServiceConstructor},
|
|
|
|
{ "String Textfile Overrides", NS_STRINGBUNDLETEXTOVERRIDE_CID,
|
|
|
|
NS_STRINGBUNDLETEXTOVERRIDE_CONTRACTID,
|
|
|
|
nsStringBundleTextOverrideConstructor },
|
2002-09-18 20:44:38 +00:00
|
|
|
|
|
|
|
// locale
|
|
|
|
{ "nsLocaleService component",
|
|
|
|
NS_LOCALESERVICE_CID,
|
|
|
|
NS_LOCALESERVICE_CONTRACTID,
|
|
|
|
CreateLocaleService },
|
|
|
|
{ "Collation factory",
|
|
|
|
NS_COLLATIONFACTORY_CID,
|
2004-08-24 22:50:33 +00:00
|
|
|
NS_COLLATIONFACTORY_CONTRACTID,
|
2002-09-18 20:44:38 +00:00
|
|
|
nsCollationFactoryConstructor },
|
|
|
|
{ "Scriptable Date Format",
|
|
|
|
NS_SCRIPTABLEDATEFORMAT_CID,
|
|
|
|
NS_SCRIPTABLEDATEFORMAT_CONTRACTID,
|
|
|
|
NS_NewScriptableDateFormat },
|
|
|
|
{ "Language Atom Service",
|
|
|
|
NS_LANGUAGEATOMSERVICE_CID,
|
|
|
|
NS_LANGUAGEATOMSERVICE_CONTRACTID,
|
|
|
|
nsLanguageAtomServiceConstructor },
|
|
|
|
|
|
|
|
#ifdef XP_WIN
|
|
|
|
{ "Platform locale",
|
|
|
|
NS_WIN32LOCALE_CID,
|
|
|
|
NS_WIN32LOCALE_CONTRACTID,
|
|
|
|
nsIWin32LocaleImplConstructor },
|
|
|
|
{ "Collation",
|
|
|
|
NS_COLLATION_CID,
|
2004-08-24 22:50:33 +00:00
|
|
|
NS_COLLATION_CONTRACTID,
|
2002-09-18 20:44:38 +00:00
|
|
|
nsCollationWinConstructor },
|
|
|
|
{ "Date/Time formatter",
|
|
|
|
NS_DATETIMEFORMAT_CID,
|
2006-06-04 01:08:02 +00:00
|
|
|
NS_DATETIMEFORMAT_CONTRACTID,
|
2002-09-18 20:44:38 +00:00
|
|
|
nsDateTimeFormatWinConstructor },
|
|
|
|
#endif
|
|
|
|
|
2002-09-25 00:52:16 +00:00
|
|
|
#ifdef USE_UNIX_LOCALE
|
2002-09-18 20:44:38 +00:00
|
|
|
{ "Platform locale",
|
|
|
|
NS_POSIXLOCALE_CID,
|
|
|
|
NS_POSIXLOCALE_CONTRACTID,
|
|
|
|
nsPosixLocaleConstructor },
|
|
|
|
|
|
|
|
{ "Collation",
|
|
|
|
NS_COLLATION_CID,
|
2004-08-24 22:50:33 +00:00
|
|
|
NS_COLLATION_CONTRACTID,
|
2002-09-18 20:44:38 +00:00
|
|
|
nsCollationUnixConstructor },
|
|
|
|
|
|
|
|
{ "Date/Time formatter",
|
|
|
|
NS_DATETIMEFORMAT_CID,
|
2006-06-04 01:08:02 +00:00
|
|
|
NS_DATETIMEFORMAT_CONTRACTID,
|
2002-09-18 20:44:38 +00:00
|
|
|
nsDateTimeFormatUnixConstructor },
|
|
|
|
#endif
|
|
|
|
|
2002-09-25 00:52:16 +00:00
|
|
|
#ifdef USE_MAC_LOCALE
|
2002-09-18 20:44:38 +00:00
|
|
|
{ "Mac locale",
|
|
|
|
NS_MACLOCALE_CID,
|
|
|
|
NS_MACLOCALE_CONTRACTID,
|
|
|
|
nsMacLocaleConstructor },
|
|
|
|
{ "Collation",
|
|
|
|
NS_COLLATION_CID,
|
2004-08-24 22:50:33 +00:00
|
|
|
NS_COLLATION_CONTRACTID,
|
2002-09-18 20:44:38 +00:00
|
|
|
#ifdef USE_UCCOLLATIONKEY
|
|
|
|
nsCollationMacUCConstructor },
|
|
|
|
#else
|
|
|
|
nsCollationMacConstructor },
|
|
|
|
#endif
|
|
|
|
{ "Date/Time formatter",
|
|
|
|
NS_DATETIMEFORMAT_CID,
|
2006-06-04 01:08:02 +00:00
|
|
|
NS_DATETIMEFORMAT_CONTRACTID,
|
2002-09-18 20:44:38 +00:00
|
|
|
nsDateTimeFormatMacConstructor },
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef XP_OS2
|
|
|
|
{ "OS/2 locale",
|
|
|
|
NS_OS2LOCALE_CID,
|
|
|
|
NS_OS2LOCALE_CONTRACTID,
|
|
|
|
nsOS2LocaleConstructor },
|
|
|
|
{ "Collation",
|
|
|
|
NS_COLLATION_CID,
|
2004-08-24 22:50:33 +00:00
|
|
|
NS_COLLATION_CONTRACTID,
|
2002-09-18 20:44:38 +00:00
|
|
|
nsCollationOS2Constructor },
|
|
|
|
{ "Date/Time formatter",
|
|
|
|
NS_DATETIMEFORMAT_CID,
|
2006-06-04 01:08:02 +00:00
|
|
|
NS_DATETIMEFORMAT_CONTRACTID,
|
2002-09-18 20:44:38 +00:00
|
|
|
nsDateTimeFormatOS2Constructor },
|
|
|
|
#endif
|
|
|
|
|
2002-09-18 18:37:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2003-09-07 22:24:21 +00:00
|
|
|
NS_IMPL_NSGETMODULE(nsI18nModule, components)
|