mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
fe4edc0bea
Includes front end re-write to use the outliner widget for the thread pane. Improvements in scrolling, folder loading, message display, replyto time, sorting, selecting, deleting, the list goes on and on. enjoy =).
171 lines
5.3 KiB
C++
171 lines
5.3 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape 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/NPL/
|
|
*
|
|
* 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.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
|
|
#include "msgCore.h"
|
|
|
|
#include "nsISupports.h"
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsIFactory.h"
|
|
#include "nsIGenericFactory.h"
|
|
#include "nsIServiceManager.h"
|
|
#include "nsIModule.h"
|
|
|
|
#include "pratom.h"
|
|
#include "nsMsgCompCID.h"
|
|
|
|
/* Include all of the interfaces our factory can generate components for */
|
|
#include "nsMsgSendLater.h"
|
|
#include "nsSmtpUrl.h"
|
|
#include "nsISmtpService.h"
|
|
#include "nsSmtpService.h"
|
|
#include "nsMsgComposeService.h"
|
|
#include "nsMsgComposeContentHandler.h"
|
|
#include "nsMsgCompose.h"
|
|
#include "nsMsgComposeParams.h"
|
|
#include "nsMsgSend.h"
|
|
#include "nsMsgQuote.h"
|
|
#include "nsIMsgDraft.h"
|
|
#include "nsMsgCreate.h" // For drafts...I know, awful file name...
|
|
#include "nsSmtpServer.h"
|
|
#include "nsSmtpDataSource.h"
|
|
#include "nsSmtpDelegateFactory.h"
|
|
#include "nsIContentHandler.h"
|
|
#include "nsMsgRecipientArray.h"
|
|
#include "nsMsgComposeStringBundle.h"
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSmtpService);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSmtpServer);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgCompose);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgComposeParams);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgCompFields);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgComposeAndSend);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgSendLater);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgDraft)
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgComposeService);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgComposeContentHandler);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgQuote);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgQuoteListener);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSmtpUrl);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMailtoUrl);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMsgRecipientArray);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsComposeStringService);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSmtpDataSource);
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSmtpDelegateFactory);
|
|
|
|
////////////////////////////////////////////////////////////
|
|
//
|
|
////////////////////////////////////////////////////////////
|
|
|
|
static nsModuleComponentInfo components[] =
|
|
{
|
|
{ "Msg Compose",
|
|
NS_MSGCOMPOSE_CID,
|
|
NS_MSGCOMPOSE_CONTRACTID,
|
|
nsMsgComposeConstructor },
|
|
{ "Msg Compose Service",
|
|
NS_MSGCOMPOSESERVICE_CID,
|
|
NS_MSGCOMPOSESERVICE_CONTRACTID,
|
|
nsMsgComposeServiceConstructor },
|
|
{ "Msg Compose Startup Handler",
|
|
NS_MSGCOMPOSESERVICE_CID,
|
|
NS_MSGCOMPOSESTARTUPHANDLER_CONTRACTID,
|
|
nsMsgComposeServiceConstructor,
|
|
nsMsgComposeService::RegisterProc,
|
|
nsMsgComposeService::UnregisterProc },
|
|
{ "mailto content handler",
|
|
NS_MSGCOMPOSECONTENTHANDLER_CID,
|
|
NS_MSGCOMPOSECONTENTHANDLER_CONTRACTID,
|
|
nsMsgComposeContentHandlerConstructor },
|
|
{ "Msg Compose Parameters",
|
|
NS_MSGCOMPOSEPARAMS_CID,
|
|
NS_MSGCOMPOSEPARAMS_CONTRACTID,
|
|
nsMsgComposeParamsConstructor },
|
|
{ "Msg Compose Fields",
|
|
NS_MSGCOMPFIELDS_CID,
|
|
NS_MSGCOMPFIELDS_CONTRACTID,
|
|
nsMsgCompFieldsConstructor },
|
|
{ "Msg Draft",
|
|
NS_MSGDRAFT_CID,
|
|
NS_MSGDRAFT_CONTRACTID,
|
|
nsMsgDraftConstructor },
|
|
{ "Msg Send",
|
|
NS_MSGSEND_CID,
|
|
NS_MSGSEND_CONTRACTID,
|
|
nsMsgComposeAndSendConstructor },
|
|
{ "Msg Send Later",
|
|
NS_MSGSENDLATER_CID,
|
|
NS_MSGSENDLATER_CONTRACTID,
|
|
nsMsgSendLaterConstructor },
|
|
{ "SMTP Service",
|
|
NS_SMTPSERVICE_CID,
|
|
NS_SMTPSERVICE_CONTRACTID,
|
|
nsSmtpServiceConstructor },
|
|
{ "SMTP Service",
|
|
NS_SMTPSERVICE_CID,
|
|
NS_MAILTOHANDLER_CONTRACTID,
|
|
nsSmtpServiceConstructor },
|
|
{ "SMTP Server",
|
|
NS_SMTPSERVER_CID,
|
|
NS_SMTPSERVER_CONTRACTID,
|
|
nsSmtpServerConstructor },
|
|
{ "SMTP URL",
|
|
NS_SMTPURL_CID,
|
|
NS_SMTPURL_CONTRACTID,
|
|
nsSmtpUrlConstructor },
|
|
{ "MAILTO URL",
|
|
NS_MAILTOURL_CID,
|
|
NS_MAILTOURL_CONTRACTID,
|
|
nsMailtoUrlConstructor },
|
|
{ "Msg Quote",
|
|
NS_MSGQUOTE_CID,
|
|
NS_MSGQUOTE_CONTRACTID,
|
|
nsMsgQuoteConstructor },
|
|
{ "Msg Quote Listener",
|
|
NS_MSGQUOTELISTENER_CID,
|
|
NS_MSGQUOTELISTENER_CONTRACTID,
|
|
nsMsgQuoteListenerConstructor },
|
|
{ "Msg Recipient Array",
|
|
NS_MSGRECIPIENTARRAY_CID,
|
|
NS_MSGRECIPIENTARRAY_CONTRACTID,
|
|
nsMsgRecipientArrayConstructor },
|
|
{ "Compose string bundle",
|
|
NS_MSG_COMPOSESTRINGSERVICE_CID,
|
|
NS_MSG_COMPOSESTRINGSERVICE_CONTRACTID,
|
|
nsComposeStringServiceConstructor },
|
|
{ "SMTP string bundle",
|
|
NS_MSG_COMPOSESTRINGSERVICE_CID,
|
|
NS_MSG_SMTPSTRINGSERVICE_CONTRACTID,
|
|
nsComposeStringServiceConstructor },
|
|
{ "SMTP Datasource",
|
|
NS_SMTPDATASOURCE_CID,
|
|
NS_SMTPDATASOURCE_CONTRACTID,
|
|
nsSmtpDataSourceConstructor },
|
|
{ "SMTP Delegate Factory",
|
|
NS_SMTPDELEGATEFACTORY_CID,
|
|
NS_SMTPDELEGATEFACTORY_CONTRACTID,
|
|
nsSmtpDelegateFactoryConstructor },
|
|
};
|
|
|
|
|
|
NS_IMPL_NSGETMODULE("nsMsgComposeModule", components)
|