gecko-dev/mailnews/compose/public/nsIMsgCompose.idl
alecf%netscape.com 561a1fbd52 Combined checkin:
- convert Compose enums to IDL #13261
- exorcise net.h from compose and mime
r=ducarroz and rhp on both
1999-10-04 23:50:56 +00:00

118 lines
3.2 KiB
Plaintext

/* -*- Mode: idl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#include "nsISupports.idl"
#include "domstubs.idl"
#include "nsIMsgCompFields.idl"
#include "nsIEditorShell.idl"
#include "nsIMsgIdentity.idl"
%{ C++
#include "nsIDOMWindow.h"
#include "nsIEditorShell.h"
%}
typedef long MSG_ComposeType;
[scriptable, uuid(c7035852-7531-11d3-9a73-006008948010)]
interface nsIMsgCompType {
const long New = 0;
const long Reply = 1;
const long ReplyAll = 2;
const long ForwardAsAttachment = 3;
const long ForwardInline = 4;
};
typedef long MSG_ComposeFormat;
[scriptable, uuid(a28325e8-7531-11d3-8f1c-006008948010)]
interface nsIMsgCompFormat {
const long Default = 0;
const long HTML = 1;
const long PlainText = 2;
};
typedef long MSG_ComposeSaveType;
[scriptable, uuid(6953e50a-7531-11d3-85fe-006008948010)]
interface nsIMsgCompSaveType {
const long File = 0;
const long Template = 1;
const long Draft = 2;
};
typedef long MSG_DeliverMode;
[scriptable, uuid(f338eba4-7530-11d3-8833-006008948010)]
interface nsIMsgCompDeliverMode {
const long Now = 0;
const long Later = 1;
const long Save = 2;
const long SaveAs = 3;
const long SaveAsDraft = 4;
const long SaveAsTemplate = 5;
};
[scriptable, uuid(4E606270-B588-11D2-8289-00805F2A0107)]
interface nsIMsgCompose : nsISupports {
/* ... */
void Initialize(in nsIDOMWindow aWindow, in wstring originalMsgURI,
in MSG_ComposeType type, in MSG_ComposeFormat format,
in nsIMsgCompFields compFields,
in nsISupports object, /*object is temporary*/
in nsIMsgIdentity identity);
/* ... */
void SetDocumentCharset(in wstring charset);
/* ... */
void SendMsg(in MSG_DeliverMode deliverMode,
in nsIMsgIdentity identity,
in wstring callback);
/* ... */
void SendMsgEx(in MSG_DeliverMode deliverMode,
in nsIMsgIdentity identity,
in wstring addrTo, in wstring addrCc, in wstring addrBcc,
in wstring newsgroup, in wstring subject, in wstring body,
in wstring callback);
/* ... */
void CloseWindow();
/* ... */
attribute nsIEditorShell editor;
/* ... */
readonly attribute nsIDOMWindow domWindow;
/* ... */
readonly attribute nsIMsgCompFields compFields;
/* ... */
readonly attribute boolean composeHTML;
/* ... */
readonly attribute long wrapLength;
};