gecko-dev/xpfe/AppCores/xul/MailToolbar.xml

93 lines
3.2 KiB
XML
Raw Normal View History

1999-02-02 19:24:07 +00:00
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<!DOCTYPE window>
1999-02-12 08:15:17 +00:00
<xul:window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
1999-02-12 08:15:17 +00:00
<html:script language="JavaScript">
function StartUp()
{
appCore = XPAppCoresManager.Find("MailAppCore");
1999-02-12 08:15:17 +00:00
if (appCore==null) {
appCore = new MailCore();
if (appCore != null) {
dump("MailAppCore was created!\n");
appCore.Init("MailAppCore");
appCore.MailCompleteCallback("MailSent();");
appCore.SetWindow(window);
}
1999-02-11 18:42:46 +00:00
}
}
1999-02-12 08:15:17 +00:00
function SendMailMessage()
{
dump("SendMailMessage!\n");
var appCore = XPAppCoresManager.Find("MailAppCore");
1999-02-12 08:15:17 +00:00
if (appCore != null) {
dump("Mail was sent!\n");
appCore.SendMail(window.parent.frames[1].document.forms[0].elements[1].value,
window.parent.frames[1].document.forms[0].elements[2].value,
window.parent.frames[1].document.forms[0].elements[4].value);
}
1999-02-12 08:15:17 +00:00
}
1999-02-12 08:15:17 +00:00
function MailSent()
{
1999-02-12 08:15:17 +00:00
// Clear Them
window.parent.frames[1].document.forms[0].elements[1].value = "";
window.parent.frames[1].document.forms[0].elements[2].value = "";
window.parent.frames[1].document.forms[0].elements[4].value = "";
1999-02-12 08:15:17 +00:00
}
1999-02-12 08:15:17 +00:00
</html:script>
1999-02-02 19:24:07 +00:00
<xul:commands>
1999-02-11 18:42:46 +00:00
<xul:command name="nsCmd:StartUp" onCommand="StartUp();"/>
<xul:command name="nsCmd:MailSendMsg" onCommand="SendMailMessage();"/>
1999-02-02 19:24:07 +00:00
</xul:commands>
<xul:toolbox>
<xul:toolbar>
<html:button cmd="nsCmd:MailSendMsg" style="background-color:rgb(192,192,192);">
1999-02-12 08:15:17 +00:00
<html:img src="resource:/res/toolbar/Mail_SendMsg.gif"/><html:br/>Send
1999-02-02 19:24:07 +00:00
</html:button>
<html:button cmd="nsCmd:MailGetMsg" style="background-color:rgb(192,192,192);">
1999-02-12 08:15:17 +00:00
<html:img src="resource:/res/toolbar/Mail_GetMsg.gif"/><html:br/>GetMsg
1999-02-02 19:24:07 +00:00
</html:button>
<html:button cmd="nsCmd:MailNewMsg" style="background-color:rgb(192,192,192);">
1999-02-12 08:15:17 +00:00
<html:img src="resource:/res/toolbar/Mail_NewMsg.gif"/><html:br/>New Msg
1999-02-02 19:24:07 +00:00
</html:button>
<html:button cmd="nsCmd:MailReply" style="background-color:rgb(192,192,192);">
1999-02-12 08:15:17 +00:00
<html:img src="resource:/res/toolbar/Mail_Reply.gif"/><html:br/>Reply
1999-02-02 19:24:07 +00:00
</html:button>
<html:button cmd="nsCmd:MailForward" style="background-color:rgb(192,192,192);">
1999-02-12 08:15:17 +00:00
<html:img src="resource:/res/toolbar/Mail_Forward.gif"/><html:br/>Forward
1999-02-02 19:24:07 +00:00
</html:button>
<html:button cmd="nsCmd:BrowserPrint" style="background-color:rgb(192,192,192);">
1999-02-12 08:15:17 +00:00
<html:img src="resource:/res/toolbar/TB_Print.gif"/><html:br/>Print
1999-02-02 19:24:07 +00:00
</html:button>
<html:a style="position:relative; direction:rtl; right:3; top: 2px;" href="http://www.netscape.com">
<html:img alt="Throbber!" border=0 src="resource:/res/throbber/anims00.gif"/>
</html:a>
</xul:toolbar>
<xul:toolbar>
1999-02-12 08:15:17 +00:00
<html:form>
<html:select style="width:200px;">
<html:option>INBOX</html:option>
</html:select>
</html:form>
1999-02-02 19:24:07 +00:00
</xul:toolbox>
</xul:toolbox>
1999-02-12 08:15:17 +00:00
</xul:window>
1999-02-02 19:24:07 +00:00