gecko-dev/mailnews/base/resources/content/mailOverlay.xul
timeless%mac.com 1fdeed80f7 Bugzilla Bug 70857 [XUL Syntax] Replace <boxDerivedTag align="horizontal|vertical"> with
<boxDerivedTag orient="horizontal|vertical">
patch by andersma@luther.edu r=timeless sr=blake
2001-07-09 18:41:07 +00:00

48 lines
1.8 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE window SYSTEM "chrome://messenger/locale/mailOverlay.dtd">
<overlay id="mailOverlay.xul"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript">
<![CDATA[
function goNewCardDialog(selectedAB)
{
window.openDialog("chrome://messenger/content/addressbook/abNewCardDialog.xul",
"",
"chrome,resizeable=no,titlebar,modal",
{selectedAB:selectedAB});
}
function goOpenNewMessage()
{
try {
MsgNewMessage();
return;
}
catch(ex) {
;
}
var msgComposeService = Components.classes["@mozilla.org/messengercompose;1"].getService();
msgComposeService = msgComposeService.QueryInterface(Components.interfaces.nsIMsgComposeService);
msgComposeService.OpenComposeWindow(null, null,
Components.interfaces.nsIMsgCompType.New,
Components.interfaces.nsIMsgCompFormat.Default,
null);
}
]]>
</script>
<!-- generic commands -->
<commandset id="tasksCommands">
<command id="cmd_newMessage" oncommand="goOpenNewMessage();"/>
<command id="cmd_newCard" oncommand="goNewCardDialog(0)"/>
</commandset>
<menuitem id="menu_newCard" label="&newCardCmd.label;" accesskey="&newCardCmd.accesskey;" command="cmd_newCard"/>
<menuitem id="menu_newMessage" label="&newMessageCmd.label;" accesskey="&newMessageCmd.accesskey;" key="key_newMessage" command="cmd_newMessage"/>
<keyset id="tasksKeys">
<key id="key_newMessage" key="&newMessageCmd.key;" command="cmd_newMessage" modifiers="accel"/>
</keyset>
</overlay>