mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Add a new message compose service command that let you create a message from a nsIMsgCompFields.
This commit is contained in:
parent
9a4f42018e
commit
d6897f8e82
@ -79,7 +79,9 @@ interface nsIMsgCompose : nsISupports {
|
||||
|
||||
/* ... */
|
||||
void Initialize(in nsIDOMWindow aWindow, in wstring originalMsgURI,
|
||||
in MSG_ComposeType type, in MSG_ComposeFormat format, in nsISupports object); /*object is temporary*/
|
||||
in MSG_ComposeType type, in MSG_ComposeFormat format,
|
||||
in nsIMsgCompFields compFields,
|
||||
in nsISupports object); /*object is temporary*/
|
||||
|
||||
/* ... */
|
||||
void LoadFields();
|
||||
|
@ -38,7 +38,10 @@ interface nsIMsgComposeService : nsISupports {
|
||||
in wstring subject, in wstring body);
|
||||
|
||||
/* ... */
|
||||
nsIMsgCompose InitCompose(in nsIDOMWindow aWindow, in wstring originalMsgURI, in long type, in long format);
|
||||
void OpenComposeWindowWithCompFields(in wstring msgComposeWindowURL, in MSG_ComposeFormat format, in nsIMsgCompFields compFields);
|
||||
|
||||
/* ... */
|
||||
nsIMsgCompose InitCompose(in nsIDOMWindow aWindow, in wstring originalMsgURI, in long type, in long format, in long compFieldsAddr);
|
||||
|
||||
/* ... */
|
||||
void DisposeCompose(in nsIMsgCompose compose, in boolean closeWindow);
|
||||
|
@ -69,7 +69,7 @@ function GetArgs()
|
||||
args[argname] = argvalue.substring(1, argvalue.length - 1);
|
||||
else
|
||||
args[argname] = unescape(argvalue);
|
||||
// dump("GETARGS: " + argname + "=[" + args[argname] + "]\n");
|
||||
dump("[" + argname + "=" + args[argname] + "]\n");
|
||||
}
|
||||
return args;
|
||||
}
|
||||
@ -80,9 +80,6 @@ function ComposeStartup()
|
||||
|
||||
// Get arguments
|
||||
var args = GetArgs();
|
||||
dump("[type=" + args.type + "]\n");
|
||||
dump("[format=" + args.format + "]\n");
|
||||
dump("[originalMsg=" + args.originalMsg + "]\n");
|
||||
|
||||
// fill in Identity combobox
|
||||
var identitySelect = document.getElementById("msgIdentity");
|
||||
@ -95,7 +92,7 @@ function ComposeStartup()
|
||||
|
||||
if (msgComposeService)
|
||||
{
|
||||
msgCompose = msgComposeService.InitCompose(window, args.originalMsg, args.type, args.format);
|
||||
msgCompose = msgComposeService.InitCompose(window, args.originalMsg, args.type, args.format, args.fieldsAddr);
|
||||
if (msgCompose)
|
||||
{
|
||||
//Creating a Editor Shell
|
||||
|
Loading…
Reference in New Issue
Block a user