michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIGenericFactory.h" michael@0: michael@0: #include "nsTextServicesDocument.h" michael@0: #include "nsTextServicesCID.h" michael@0: michael@0: //////////////////////////////////////////////////////////////////////// michael@0: // Define the contructor function for the objects michael@0: // michael@0: // NOTE: This creates an instance of objects by using the default constructor michael@0: // michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsTextServicesDocument) michael@0: michael@0: //////////////////////////////////////////////////////////////////////// michael@0: // Define a table of CIDs implemented by this module along with other michael@0: // information like the function to create an instance, contractid, and michael@0: // class name. michael@0: // michael@0: static const nsModuleComponentInfo components[] = { michael@0: { nullptr, NS_TEXTSERVICESDOCUMENT_CID, "@mozilla.org/textservices/textservicesdocument;1", nsTextServicesDocumentConstructor }, michael@0: }; michael@0: michael@0: //////////////////////////////////////////////////////////////////////// michael@0: // Implement the NSGetModule() exported function for your module michael@0: // and the entire implementation of the module object. michael@0: // michael@0: NS_IMPL_NSGETMODULE(nsTextServicesModule, components)