Add a new message compose service command that let you create a message from a nsIMsgCompFields.

This commit is contained in:
ducarroz%netscape.com 1999-07-14 21:34:25 +00:00
parent 9a4f42018e
commit d6897f8e82
3 changed files with 9 additions and 7 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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