diff --git a/mozilla/mailnews/ui/compose/Makefile.in b/mozilla/mailnews/ui/compose/Makefile.in index 920b93a97ab..627fb52e802 100644 --- a/mozilla/mailnews/ui/compose/Makefile.in +++ b/mozilla/mailnews/ui/compose/Makefile.in @@ -22,6 +22,8 @@ srcdir = @srcdir@ include $(DEPTH)/config/autoconf.mk +DIRS = public src resources + include $(topsrcdir)/config/config.mk include $(topsrcdir)/config/rules.mk diff --git a/mozilla/mailnews/ui/compose/Makefile.win b/mozilla/mailnews/ui/compose/Makefile.win new file mode 100644 index 00000000000..32cfaf4a2cd --- /dev/null +++ b/mozilla/mailnews/ui/compose/Makefile.win @@ -0,0 +1,22 @@ +#!nmake +# +# 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. + +DEPTH=..\..\.. + +DIRS=public src resources + +include <$(DEPTH)\config\rules.mak> diff --git a/mozilla/mailnews/ui/compose/public/makefile.in b/mozilla/mailnews/ui/compose/public/makefile.in new file mode 100644 index 00000000000..473206485d0 --- /dev/null +++ b/mozilla/mailnews/ui/compose/public/makefile.in @@ -0,0 +1,33 @@ +#!gmake +# +# 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. + +DEPTH = ../../../.. +topsrcdir = @top_srcdir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +EXPORTS = \ + nsIDOMComposeAppCore.h \ + $(NULL) + + +include $(topsrcdir)/config/config.mk + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/mailnews/ui/compose/public/makefile.win b/mozilla/mailnews/ui/compose/public/makefile.win new file mode 100644 index 00000000000..4c00e556735 --- /dev/null +++ b/mozilla/mailnews/ui/compose/public/makefile.win @@ -0,0 +1,27 @@ +#!nmake +# +# 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. + +DEPTH=..\..\..\.. +MODULE=compose +IGNORE_MANIFEST=1 + +EXPORTS= \ + nsIDOMComposeAppCore.h \ + $(NULL) + +include <$(DEPTH)\config\rules.mak> + diff --git a/mozilla/mailnews/ui/compose/public/nsIDOMComposeAppCore.h b/mozilla/mailnews/ui/compose/public/nsIDOMComposeAppCore.h new file mode 100644 index 00000000000..e8a60e55167 --- /dev/null +++ b/mozilla/mailnews/ui/compose/public/nsIDOMComposeAppCore.h @@ -0,0 +1,47 @@ +/* + * DO NOT EDIT. THIS FILE IS GENERATED FROM nsIDOMComposeAppCore.idl + */ + +#ifndef __gen_nsIDOMComposeAppCore_h__ +#define __gen_nsIDOMComposeAppCore_h__ + +#include "nsISupports.h" /* interface nsISupports */ +#include "nsIDOMWindow.h" /* interface nsIDOMWindow */ +#include "nsIDOMBaseAppCore.h" /* interface nsIDOMBaseAppCore */ + + +/* starting interface nsIDOMComposeAppCore */ + +/* {D4779C9A-CAA6-11d2-A6F2-0060B0EB39B5} */ +#define NS_IDOMCOMPOSEAPPCORE_IID_STR "D4779C9A-CAA6-11d2-A6F2-0060B0EB39B5" +#define NS_IDOMCOMPOSEAPPCORE_IID \ + {0xd4779c9a, 0xcaa6, 0x11d2, \ + { 0xa6, 0xf2, 0x0, 0x60, 0xb0, 0xeb, 0x39, 0xb5 }} + +class nsIDOMComposeAppCore : public nsIDOMBaseAppCore { + public: + static const nsIID& IID() { + static nsIID iid = NS_IDOMCOMPOSEAPPCORE_IID; + return iid; + } + + /* void SetWindow (in nsIDOMWindow ptr); */ + NS_IMETHOD SetWindow(nsIDOMWindow *ptr) = 0; + + /* void MailCompleteCallback (); */ + NS_IMETHOD CompleteCallback(const nsString& aScript) = 0; + + /* void NewMessage (); */ + NS_IMETHOD NewMessage() = 0; + + /* void SendMessage (); */ + NS_IMETHOD SendMessage(const nsString& aAddrTo, const nsString& aSubject, const nsString& aMsg) = 0; +}; + + +extern "C" NS_DOM +nsresult +NS_InitComposeAppCoreClass(nsIScriptContext *aContext, void **aPrototype, JSObject * aParentProto); + +#endif /* __gen_nsIDOMComposeAppCore_h__ */ + diff --git a/mozilla/mailnews/ui/compose/public/nsIDOMComposeAppCore.idl b/mozilla/mailnews/ui/compose/public/nsIDOMComposeAppCore.idl new file mode 100644 index 00000000000..60a3cf5d297 --- /dev/null +++ b/mozilla/mailnews/ui/compose/public/nsIDOMComposeAppCore.idl @@ -0,0 +1,34 @@ +/* -*- 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" + +/* this should eventually derive from some sort of BaseAppCore */ + +#include "nsIDOMBaseAppCore.idl" +#include "nsIDOMWindow.idl" + +[object, uuid(D4779C9A-CAA6-11d2-A6F2-0060B0EB39B5)] +interface nsIDOMComposeAppCore : nsIDOMBaseAppCore { + + void SetWindow(in nsIDOMWindow ptr); + void CompleteCallback(in wstring script); + void NewMessage(); + void SendMessage(in wstring addrTo, in wstring subject, in wstring msg); +}; + diff --git a/mozilla/mailnews/ui/compose/resources/ComposeFrame.html b/mozilla/mailnews/ui/compose/resources/ComposeFrame.html new file mode 100644 index 00000000000..9446cab6fa9 --- /dev/null +++ b/mozilla/mailnews/ui/compose/resources/ComposeFrame.html @@ -0,0 +1,77 @@ + +
+ + + + +| + + | +
| + + | +