Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsMsgComposeService.cpp File Reference
#include "nsMsgComposeService.h"
#include "nsMsgCompCID.h"
#include "nsIMsgSend.h"
#include "nsISupportsArray.h"
#include "nsIServiceManager.h"
#include "nsIObserverService.h"
#include "nsXPIDLString.h"
#include "nsIMsgIdentity.h"
#include "nsISmtpUrl.h"
#include "nsIURI.h"
#include "nsMsgI18N.h"
#include "nsIMsgComposeParams.h"
#include "nsXPCOM.h"
#include "nsISupportsPrimitives.h"
#include "nsIWindowWatcher.h"
#include "nsIDOMWindow.h"
#include "nsEscape.h"
#include "nsIContentViewer.h"
#include "nsMsgWindow.h"
#include "nsIDocShell.h"
#include "nsIScriptGlobalObject.h"
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsIXULWindow.h"
#include "nsIWindowMediator.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDocShellTreeOwner.h"
#include "nsIBaseWindow.h"
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"
#include "nsIPrefBranch2.h"
#include "nsMsgBaseCID.h"
#include "nsIMsgAccountManager.h"
#include "nsIMimeMiscStatus.h"
#include "nsIInterfaceRequestorUtils.h"
#include "prlog.h"
#include "nsIMsgHdr.h"
#include "nsIMsgMessageService.h"
#include "nsMsgUtils.h"
#include "nsIParser.h"
#include "nsParserCIID.h"
#include "nsIContentSink.h"
#include "mozISanitizingSerializer.h"
#include "nsMsgMimeCID.h"
#include "nsNetUtil.h"
#include "nsIMsgMailNewsUrl.h"
#include "nsIMimeStreamConverter.h"
#include "nsIStreamConverter.h"

Go to the source code of this file.

Classes

class  nsMsgTemplateReplyHelper

Defines

#define DEFAULT_CHROME   "chrome://messenger/content/messengercompose/messengercompose.xul"
#define PREF_MAIL_COMPOSE_MAXRECYCLEDWINDOWS   "mail.compose.max_recycled_windows"
#define MAIL_ROOT_PREF   "mail."
#define MAILNEWS_ROOT_PREF   "mailnews."
#define HTMLDOMAINUPDATE_VERSION_PREF_NAME   "global_html_domains.version"
#define HTMLDOMAINUPDATE_DOMAINLIST_PREF_NAME   "global_html_domains"
#define USER_CURRENT_HTMLDOMAINLIST_PREF_NAME   "html_domains"
#define USER_CURRENT_PLAINTEXTDOMAINLIST_PREF_NAME   "plaintext_domains"
#define DOMAIN_DELIMITER   ","

Functions

static NS_DEFINE_CID (kParserCID, NS_PARSER_CID)
static NS_DEFINE_CID (kNavDTDCID, NS_CNAVDTD_CID)
static PRUint32 GetMessageSizeFromURI (const char *originalMsgURI)
 NS_IMPL_ISUPPORTS4 (nsMsgComposeService, nsIMsgComposeService, nsIObserver, ICOMMANDLINEHANDLER, nsISupportsWeakReference) nsMsgComposeService

Variables

static PRLogModuleInfoMsgComposeLogModule = nsnull

Define Documentation

#define DEFAULT_CHROME   "chrome://messenger/content/messengercompose/messengercompose.xul"

Definition at line 119 of file nsMsgComposeService.cpp.

Definition at line 129 of file nsMsgComposeService.cpp.

#define HTMLDOMAINUPDATE_DOMAINLIST_PREF_NAME   "global_html_domains"

Definition at line 126 of file nsMsgComposeService.cpp.

#define HTMLDOMAINUPDATE_VERSION_PREF_NAME   "global_html_domains.version"

Definition at line 125 of file nsMsgComposeService.cpp.

#define MAIL_ROOT_PREF   "mail."

Definition at line 123 of file nsMsgComposeService.cpp.

#define MAILNEWS_ROOT_PREF   "mailnews."

Definition at line 124 of file nsMsgComposeService.cpp.

#define PREF_MAIL_COMPOSE_MAXRECYCLEDWINDOWS   "mail.compose.max_recycled_windows"

Definition at line 121 of file nsMsgComposeService.cpp.

Definition at line 127 of file nsMsgComposeService.cpp.

Definition at line 128 of file nsMsgComposeService.cpp.


Function Documentation

static PRUint32 GetMessageSizeFromURI ( const char *  originalMsgURI) [static]

Definition at line 134 of file nsMsgComposeService.cpp.

{
  PRUint32 msgSize = 0;

  if (originalMsgURI && *originalMsgURI)
  {
    nsCOMPtr <nsIMsgDBHdr> originalMsgHdr;
    GetMsgDBHdrFromURI(originalMsgURI, getter_AddRefs(originalMsgHdr));
    if (originalMsgHdr)
    originalMsgHdr->GetMessageSize(&msgSize);
  }
  
  return msgSize;
}

Here is the call graph for this function:

static NS_DEFINE_CID ( kParserCID  ,
NS_PARSER_CID   
) [static]
static NS_DEFINE_CID ( kNavDTDCID  ,
NS_CNAVDTD_CID   
) [static]

Definition at line 171 of file nsMsgComposeService.cpp.

{
  if (mCachedWindows)
  {
    DeleteCachedWindows();
    delete [] mCachedWindows;
  }

  mOpenComposeWindows.Clear();
}

Variable Documentation

Definition at line 132 of file nsMsgComposeService.cpp.