gecko-dev/mailnews/base/resources/content/messenger.xul

360 lines
14 KiB
Plaintext
Raw Normal View History

<?xml version="1.0"?>
1999-06-08 02:17:35 +00:00
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
-->
2000-04-19 21:42:30 +00:00
<?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>
1999-08-07 00:22:01 +00:00
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/platformMailnewsOverlay.xul"?>
1999-09-01 23:50:33 +00:00
<?xul-overlay href="chrome://messenger/content/threadPane.xul"?>
<?xul-overlay href="chrome://messenger/content/folderPane.xul"?>
<?xul-overlay href="chrome://messenger/content/msgHdrViewOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/mailWindowOverlay.xul"?>
2000-06-17 03:26:47 +00:00
<?xul-overlay href="chrome://messenger/content/mailOverlay.xul"?>
2000-04-19 21:42:30 +00:00
<?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
2000-06-17 03:26:47 +00:00
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
1999-06-08 02:17:35 +00:00
<!DOCTYPE window [
<!ENTITY % messengerDTD SYSTEM "chrome://messenger/locale/messenger.dtd" >
%messengerDTD;
<!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
%navigatorDTD;
]>
1999-09-14 06:28:05 +00:00
<window id="messengerWindow"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:nc="http://home.netscape.com/NC-rdf#"
title="&messengerWindow.title;"
titlemodifier="&titleModifier.label;"
titlemenuseparator="&titleSeperator.label;"
onload="OnLoadMessenger()"
onunload="OnUnloadMessenger()"
1999-09-14 06:28:05 +00:00
align="vertical"
1999-10-26 00:39:19 +00:00
width="750"
height="500"
persist="width height screenX screenY"
windowtype="mail:3pane">
<script src="chrome://global/content/strres.js"/>
<script src="chrome://messenger/content/widgetglue.js"/>
<script src="chrome://messenger/content/commandglue.js"/>
<script src="chrome://messenger/content/shareglue.js"/>
<script src="chrome://messenger/content/msgViewNavigation.js"/>
<script src="chrome://messenger/content/mailWindow.js"/>
<script src="chrome://messenger/content/msgMail3PaneWindow.js"/>
<script src="chrome://messenger/content/mail3PaneWindowCommands.js"/>
<script src="chrome://messenger/content/mailContextMenus.js"/>
<script src="chrome://messenger/content/messengerdnd.js"/>
<script src="chrome://messenger/content/accountUtils.js"/>
<script src="chrome://navigator/content/nsContextMenu.js"/>
<script src="chrome://navigator/content/navigator.js"/>
<commands id="commands">
<commandset id="CommandUpdate_Mail"
commandupdater="true"
events="focus,tree-select"
oncommandupdate="CommandUpdate_Mail()"/>
<commandset id="globalEditMenuItems"/>
<commandset id="selectEditMenuItems"/>
<commandset id="undoEditMenuItems"/>
</commands>
<broadcasterset id="broadcasterset"/>
<keyset id="keyset"/>
<popupset>
<popup id="threadPaneContext" oncreate="return fillThreadPaneContextMenu();" >
<menuitem id="threadPaneContext-openNewWindow"
value="&contextOpenNewWindow.label;"
accesskey=""
oncommand="MsgOpenNewWindowForMessage();"/>
<menuseparator id="threadPaneContext-sep-open"/>
<menuitem id="threadPaneContext-replySender"
value="&contextReplySender.label;"
accesskey=""
oncommand="MsgReplyMessage(event);"/>
<menuitem id="threadPaneContext-replyAll"
value="&contextReplyAll.label;"
accesskey=""
oncommand="MsgReplyToAllMessage(event);"/>
<menuitem id="threadPaneContext-replyNewsgroup"
value="&contextReplyNewsgroup.label;"
accesskey=""
oncommand="MsgReplyMessage(event);"/>
<menuitem id="threadPaneContext-forward"
value="&contextForward.label;"
accesskey=""
oncommand="MsgForwardMessage(event);"/>
<menuitem id="threadPaneContext-editAsNew"
value="&contextEditAsNew.label;"
accesskey=""
oncommand="MsgEditMessageAsNew();"/>
<menuseparator id="threadPaneContext-sep-reply"/>
<menu id="threadPaneContext-moveMenu"
value="&contextMoveMsgMenu.label;"
datasources="rdf:null"
rdf:ignore="http://home.netscape.com/NC-rdf#MessageChild">
<menupopup/>
<template>
<rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
<menupopup>
<menu uri="..." class="folderMenuItem" value="rdf:http://home.netscape.com/NC-rdf#Name"
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
<menupopup>
<menuitem uri="..." value="&fileHereMenu.label;"
oncommand="MsgMoveMessage(event.target)"
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType" />
<menuseparator/>
</menupopup>
</menu>
</menupopup>
</rule>
<rule nc:CanFileMessages="false" nc:ServerType="nntp">
<!-- don't show nntp servers in the file and copies menus -->
</rule>
<rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
<!-- note, there is no "file here" -->
<menupopup>
<menu uri="..." class="folderMenuItem" value="rdf:http://home.netscape.com/NC-rdf#Name"
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
<menupopup/>
</menu>
</menupopup>
</rule>
<rule nc:CanFileMessages="true">
<menupopup>
<menuitem uri="..." class="folderMenuItem" value="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MsgMoveMessage(event.target)"
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
</menupopup>
</rule>
</template>
</menu>
<menu id="threadPaneContext-copyMenu"
value="&contextCopyMsgMenu.label;"
datasources="rdf:null"
rdf:ignore="http://home.netscape.com/NC-rdf#MessageChild">
<menupopup/>
<template>
<rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
<menupopup>
<menu uri="..." class="folderMenuItem" value="rdf:http://home.netscape.com/NC-rdf#Name"
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
<menupopup>
<menuitem uri="..." value="&fileHereMenu.label;"
oncommand="MsgCopyMessage(event.target)"
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
<menuseparator/>
</menupopup>
</menu>
</menupopup>
</rule>
<rule nc:CanFileMessages="false" nc:ServerType="nntp">
<!-- don't show nntp servers in the file and copies menus -->
</rule>
<rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
<!-- note, there is no "file here" -->
<menupopup>
<menu uri="..." class="folderMenuItem" value="rdf:http://home.netscape.com/NC-rdf#Name"
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
<menupopup/>
</menu>
</menupopup>
</rule>
<rule nc:CanFileMessages="true">
<menupopup>
<menuitem uri="..." class="folderMenuItem" value="rdf:http://home.netscape.com/NC-rdf#Name"
oncommand="MsgCopyMessage(event.target)"
SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
</menupopup>
</rule>
</template>
</menu>
<menuitem id="threadPaneContext-saveAs"
value="&contextSaveAs.label;"
accesskey=""
oncommand="MsgSaveAsFile();"/>
<menuitem id="threadPaneContext-print"
value="&contextPrint.label;"
accesskey=""
oncommand="PrintEnginePrint();"/>
<menuitem id="threadPaneContext-delete"
value="&contextDelete.label;"
accesskey=""
oncommand="MsgDeleteMessage(false, false);"/>
<menuseparator id="threadPaneContext-sep-edit"/>
<menuitem id="threadPaneContext-addSenderToAddressBook"
value="&contextAddSenderToAddressBook.label;"
accesskey=""
oncommand="MsgAddSenderToAddressBook();"/>
<menuitem id="threadPaneContext-addAllToAddressBook"
value="&contextAddAllToAddressBook.label;"
accesskey=""
oncommand="MsgAddAllToAddressBook();"/>
</popup>
<popup id="folderPaneContext" oncreate="return fillFolderPaneContextMenu();" >
<menuitem id="folderPaneContext-getMessages"
value="&folderContextGetMessages.label;"
accesskey=""
oncommand="MsgGetMessage();"/>
<menuitem id="folderPaneContext-openNewWindow"
value="&folderContextOpenNewWindow.label;"
accesskey=""
oncommand="MsgOpenNewWindowForFolder(null);"/>
<menuitem id="folderPaneContext-rename"
value="&folderContextRename.label;"
accesskey=""
oncommand="MsgRenameFolder();"/>
<menuitem id="folderPaneContext-remove"
value="&folderContextRemove.label;"
accesskey=""
oncommand="MsgDeleteFolder();"/>
<menuitem id="folderPaneContext-emptyTrash"
value="&folderContextEmptyTrash.label;"
accesskey=""
oncommand="MsgEmptyTrash();"/>
<menuitem id="folderPaneContext-sendUnsentMessages"
value="&folderContextSendUnsentMessages.label;"
accesskey=""
oncommand="MsgSendUnsentMsg();"/>
<menuitem id="folderPaneContext-unsubscribe"
value="&folderContextUnsubscribe.label;"
accesskey=""
oncommand="MsgUnsubscribe();"/>
<menuitem id="folderPaneContext-markFolderRead"
value="&folderContextMarkNewsgroupRead.label;"
accesskey=""
oncommand="MsgMarkFolderRead();"/>
<menuseparator id="folderPaneContext-sep-edit"/>
<menuitem id="folderPaneContext-new"
value="&folderContextNew.label;"
accesskey=""
oncommand="MsgNewFolder();"/>
<menuitem id="folderPaneContext-subscribe"
value="&folderContextSubscribe.label;"
accesskey=""
oncommand="MsgSubscribe();"/>
<menuseparator id="folderPaneContext-sep-new"/>
<menuitem id="folderPaneContext-searchMessages"
value="&folderContextSearchMessages.label;"
accesskey=""
oncommand="MsgSearchMessages();"/>
<menuseparator id="folderPaneContext-sep-search"/>
<menuitem id="folderPaneContext-properties"
value="&folderContextProperties.label;"
accesskey=""
oncommand="MsgFolderProperties();"/>
</popup>
<popup id="emailAddressPopup" popupanchor="bottomleft">
<menuitem value="&AddToAddressBook.label;"
oncommand="AddNodeToAddressBook(document.popupNode)"/>
<menuitem value="&SendMailTo.label;"
oncommand="SendMailToNode(document.popupNode)"/>
</popup>
<popup id="allHeadersPopup" oncreate="return fillAllHeadersPopup(document.popupNode);" popupanchor="bottomleft">
<box id="allHeadersPopupContainer">
</box>
</popup>
<popup id="messagePaneContext"/>
</popupset>
<popupset id="aTooltipSet">
<popup id="folderTooltip"/>
</popupset>
1999-06-15 00:01:23 +00:00
2000-05-25 06:00:16 +00:00
<toolbox id="mailToolbarToolbox" class="toolbox-top">
<menubar id="mailMenubar"/>
2000-05-25 06:00:16 +00:00
</toolbox>
1999-10-26 00:39:19 +00:00
<!-- The main mail three pane frame -->
1999-09-16 21:11:32 +00:00
<box align="horizontal" style="height:100px" flex="1">
<box id="sidebar-box">
2000-05-11 00:08:34 +00:00
<splitter class="sidebarheader-main" collapse="after" persist="state">
<text value="&mail-sidebar-header.label;"/>
</splitter>
<tree id="folderTree" style="width:100px; height: 600px;" flex="1" context="folderPaneContext"/>
</box>
1999-10-26 00:39:19 +00:00
<splitter id="sidebar-splitter"/>
<box align="vertical" flex="1">
<tree id="threadTree" flex="2" style="height:0px" context="threadPaneContext"/>
<!-- if you change this id, please change GetThreadAndMessagePaneSplitter() and MsgToggleMessagePane() -->
<splitter id="gray_horizontal_splitter" collapse="after" persist="state"
onclick="OnClickThreadAndMessagePaneSplitter()"/>
1999-09-01 23:50:33 +00:00
<!-- msg header view -->
<box id="messagepanebox" align="vertical" flex="3" persist="collapsed">
<toolbox id="msgHeaderView"/>
<!-- message view -->
<iframe id="messagepane" context="messagePaneContext" style="height: 0px" flex="1" name="messagepane" type="content-primary" src="about:blank"/>
</box>
<box id="status-bar">
<text value="&unreadCountText.label;"/>
<text id="unreadMessageCount" style="min-width: 5px"/>
<text value="&totalCountText.label;"/>
<text id="totalMessageCount" style="min-width: 5px"/>
</box>
</box>
</box>
2000-05-25 06:00:16 +00:00
<toolbox id="taskbar" class="toolbox-bottom"/>
</window>