diff --git a/extensions/spellcheck/myspell/src/mozMySpellFactory.cpp b/extensions/spellcheck/myspell/src/mozMySpellFactory.cpp index 33a933cf812d..e18280294431 100644 --- a/extensions/spellcheck/myspell/src/mozMySpellFactory.cpp +++ b/extensions/spellcheck/myspell/src/mozMySpellFactory.cpp @@ -39,13 +39,21 @@ #include "mozMySpell.h" +#ifdef MOZ_XUL_APP +#include "mozMySpellDirProvider.h" +#endif + //////////////////////////////////////////////////////////////////////// // Define the contructor function for the objects // // NOTE: This creates an instance of objects by using the default constructor // -NS_GENERIC_FACTORY_CONSTRUCTOR(mozMySpell) +NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(mozMySpell, Init) + +#ifdef MOZ_XUL_APP +NS_GENERIC_FACTORY_CONSTRUCTOR(mozMySpellDirProvider) +#endif //////////////////////////////////////////////////////////////////////// // Define a table of CIDs implemented by this module along with other @@ -53,7 +61,22 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(mozMySpell) // class name. // static nsModuleComponentInfo components[] = { - { NULL, MOZ_MYSPELL_CID, MOZ_MYSPELL_CONTRACTID, mozMySpellConstructor } + { + "mozMySpell", + MOZ_MYSPELL_CID, + MOZ_MYSPELL_CONTRACTID, + mozMySpellConstructor + } +#ifdef MOZ_XUL_APP + , { + "mozMySpellDirProvider", + MYSPELLDIRPROVIDER_CID, + mozMySpellDirProvider::kContractID, + mozMySpellDirProviderConstructor, + mozMySpellDirProvider::Register, + mozMySpellDirProvider::Unregister + } +#endif }; ////////////////////////////////////////////////////////////////////////