2001-09-25 22:53:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-03-31 19:26:55 +00:00
|
|
|
|
1999-11-22 21:03:04 +00:00
|
|
|
#include "nsIGenericFactory.h"
|
1999-03-31 19:26:55 +00:00
|
|
|
|
|
|
|
#include "nsTextServicesDocument.h"
|
1999-10-14 13:50:36 +00:00
|
|
|
#include "nsTextServicesCID.h"
|
1999-03-31 19:26:55 +00:00
|
|
|
|
1999-11-22 21:03:04 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
// Define the contructor function for the objects
|
|
|
|
//
|
|
|
|
// NOTE: This creates an instance of objects by using the default constructor
|
|
|
|
//
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTextServicesDocument)
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
// Define a table of CIDs implemented by this module along with other
|
2000-09-13 23:57:52 +00:00
|
|
|
// information like the function to create an instance, contractid, and
|
1999-11-22 21:03:04 +00:00
|
|
|
// class name.
|
|
|
|
//
|
2002-01-30 21:14:20 +00:00
|
|
|
static const nsModuleComponentInfo components[] = {
|
2013-04-03 00:13:10 +00:00
|
|
|
{ nullptr, NS_TEXTSERVICESDOCUMENT_CID, "@mozilla.org/textservices/textservicesdocument;1", nsTextServicesDocumentConstructor },
|
1999-10-14 13:50:36 +00:00
|
|
|
};
|
|
|
|
|
1999-11-22 21:03:04 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
// Implement the NSGetModule() exported function for your module
|
|
|
|
// and the entire implementation of the module object.
|
|
|
|
//
|
2001-05-05 05:33:37 +00:00
|
|
|
NS_IMPL_NSGETMODULE(nsTextServicesModule, components)
|