home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / mail.xpi / bin / chrome / messenger.jar / content / messenger / messengercompose / messengercompose.xul < prev    next >
Extensible Markup Language  |  2001-10-16  |  24KB  |  477 lines

  1. <?xml version="1.0"?> 
  2. <!--
  3.    - The contents of this file are subject to the Netscape Public
  4.    - License Version 1.1 (the "License"); you may not use this file
  5.    - except in compliance with the License. You may obtain a copy of
  6.    - the License at http://www.mozilla.org/NPL/
  7.    -  
  8.    - Software distributed under the License is distributed on an "AS
  9.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10.    - implied. See the License for the specific language governing
  11.    - rights and limitations under the License.
  12.    -  
  13.    - The Original Code is Mozilla Communicator client code, released
  14.    - March 31, 1998.
  15.    - 
  16.    - The Initial Developer of the Original Code is Netscape
  17.    - Communications Corporation. Portions created by Netscape are
  18.    - Copyright (C) 1999 Netscape Communications Corporation. All
  19.    - Rights Reserved.
  20.    - 
  21.    - Contributor(s):
  22.    -   Ben Goodger <ben@netscape.com> (ass'td polish fixes)
  23.    -   Hσkan Waara <hwaara@chello.se>
  24.   -->
  25.  
  26. <?xml-stylesheet href="chrome://messenger/skin/messengercompose/messengercompose.css" type="text/css"?> 
  27. <?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?> 
  28. <?xml-stylesheet href="chrome://editor/skin/editorFormatToolbar.css" type="text/css"?> 
  29.  
  30. <?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
  31. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  32. <?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
  33. <?xul-overlay href="chrome://messenger/content/messengercompose/addressingWidgetOverlay.xul"?>
  34. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  35. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  36. <?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
  37.  
  38. <!DOCTYPE window [
  39. <!ENTITY % messengercomposeDTD SYSTEM "chrome://messenger/locale/messengercompose/messengercompose.dtd" >
  40. %messengercomposeDTD;
  41. <!ENTITY % messengerDTD SYSTEM "chrome://messenger/locale/messenger.dtd" >
  42. %messengerDTD;
  43. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  44. %brandDTD;
  45. ]>
  46.  
  47. <window id="msgcomposeWindow"
  48.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  49.         xmlns:nc="http://home.netscape.com/NC-rdf#"
  50.         onunload="ComposeUnload()"
  51.         onload="ComposeLoad()"
  52.         onclose="return DoCommandClose()"
  53.         title="&msgComposeWindow.title;"
  54.         windowtype="msgcompose"
  55.         orient="vertical"
  56.         width="640" height="480"
  57.         persist="screenX screenY width height sizemode"> 
  58.  
  59. <stringbundleset id="stringbundleset">
  60.   <stringbundle id="bundle_composeMsgs" src="chrome://messenger/locale/messengercompose/composeMsgs.properties"/>
  61.   <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  62.   <stringbundle id="bundle_offlinePrompts" src="chrome://messenger/locale/offline.properties"/>
  63. </stringbundleset>
  64.  
  65. <resourcebundle id="resource_bundle_messengercompose"/>
  66.  
  67. <script type="application/x-javascript" src="chrome://messenger/content/accountUtils.js"/>
  68. <script type="application/x-javascript" src="chrome://messenger/content/widgetglue.js"/>
  69. <script type="application/x-javascript" src="chrome://messenger/content/mail-offline.js"/>
  70. <script type="application/x-javascript" src="chrome://editor/content/editor.js"/>
  71. <script type="application/x-javascript" src="chrome://messenger/content/messengercompose/MsgComposeCommands.js"/>
  72.  
  73. <!-- drag and drop -->
  74. <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  75. <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  76.  
  77. <commandset id="composeCommands">
  78.   <commandset id="msgComposeCommandUpdate"
  79.     commandupdater="true"
  80.     events="focus"
  81.     oncommandupdate="CommandUpdate_MsgCompose()"/>
  82.  
  83.   <commandset id="globalEditMenuItems"/>
  84.   <commandset id="selectEditMenuItems"/>
  85.   <commandset id="undoEditMenuItems"/>
  86.   <commandset id="clipboardEditMenuItems"/>
  87.  
  88.   <commandset id="commonEditorMenuItems"/>
  89.   <commandset id="composerMenuItems"/>
  90.   <commandset id="composerEditMenuItems"/>
  91.   <commandset id="composerSaveMenuItems"/>    
  92.   <commandset id="composerStyleMenuItems"/>
  93.   <commandset id="composerTableMenuItems"/>
  94.   <commandset id="composerListMenuItems"/>
  95.   <commandset id="tasksCommands"/>
  96.   <command id="cmd_quit"/>
  97.   <!-- File Menu -->
  98.   <command id="cmd_newNavigator"/>
  99.   <command id="cmd_newEditor"/>
  100.   <command id="cmd_new" oncommand="goDoCommand('cmd_newMessage')"/>
  101.   <command id="cmd_attachFile" oncommand="goDoCommand('cmd_attachFile')"/>
  102.   <command id="cmd_attachPage" oncommand="goDoCommand('cmd_attachPage')"/>
  103.   <command id="cmd_close" oncommand="goDoCommand('cmd_close')"/>
  104.   <command id="cmd_saveDefault" oncommand="goDoCommand('cmd_saveDefault')"/>
  105.   <command id="cmd_saveAsFile" oncommand="goDoCommand('cmd_saveAsFile')"/>
  106.   <command id="cmd_saveAsDraft" oncommand="goDoCommand('cmd_saveAsDraft')"/>
  107.   <command id="cmd_saveAsTemplate" oncommand="goDoCommand('cmd_saveAsTemplate')"/>
  108.   <command id="cmd_sendButton" oncommand="goDoCommand('cmd_sendButton')"/>
  109.   <command id="cmd_sendNow" oncommand="goDoCommand('cmd_sendNow')"/>
  110.   <command id="cmd_sendLater" oncommand="goDoCommand('cmd_sendLater')"/>
  111.   <command id="cmd_printSetup" oncommand="goDoCommand('cmd_printSetup')"/>
  112.   <command id="cmd_print" oncommand="goDoCommand('cmd_print')"/>
  113.  
  114.   <!-- Edit Menu -->
  115.   <!--command id="cmd_pasteQuote"/  DO NOT INCLUDE THOSE PBROCASTER ESLE THE EDIT MENU WILL BE BROKEN! -->
  116.   <!--command id="cmd_find"/-->
  117.   <!--command id="cmd_findNext"/-->
  118.   <command id="cmd_account" oncommand="goDoCommand('cmd_account')"/>
  119.  
  120.   <!-- View Menu -->
  121.   <command id="cmd_showComposeToolbar" oncommand="goDoCommand('cmd_showComposeToolbar')"/>
  122.   <command id="cmd_showFormatToolbar" oncommand="goDoCommand('cmd_showFormatToolbar')"/>
  123.   
  124.   <!-- Options Menu -->
  125.   <command id="cmd_selectAddress" oncommand="goDoCommand('cmd_selectAddress')"/>
  126.   <command id="cmd_outputFormat" oncommand="OutputFormatMenuSelect(event.target)"/>
  127.   <!-- command id="cmd_quoteMessage" oncommand="goDoCommand('cmd_quoteMessage')"/ -->
  128.   <command id="cmd_rewrap" oncommand="goDoCommand('cmd_rewrap')"/>
  129.   <command id="cmd_insert"/>
  130. </commandset>
  131.  
  132. <broadcasterset id="composeBroadcasters">
  133.   <broadcaster id="Editor:Throbber" busy="false"/>
  134.   <broadcaster id="Communicator:WorkMode"/>
  135.   <broadcaster id="args" value="editorType=default"/>
  136. </broadcasterset>
  137.  
  138. <popupset>
  139.   <popup id="TextColorPopup"/>
  140.   <popup id="BackColorPopup"/>
  141. </popupset>
  142. <popupset id="aTooltipSet"/>
  143.  
  144. <keyset id="tasksKeys">
  145.   <!-- File Menu -->
  146.   <key id="key_newNavigator"/>
  147.   <key id="key_newBlankPage"/>
  148.   <key id="key_close"/>
  149.   <key id="key_save"  key="&saveCmd.key;" command="cmd_saveDefault" modifiers="accel"/>
  150.   <!-- key id="key_sendNow" xulkey="true" keycode="&sendNowCmd.keycode;" command="cmd_sendNow"/ -->
  151.   <!-- key id="key_sendLater" xulkey="true" keycode="&sendLaterCmd.keycode;" shift="true" command="cmd_sendLater"/ -->
  152.   <key id="key_print"  key="&printCmd.key;" command="cmd_print" modifiers="accel"/>
  153.   <key id="key_quit"/>
  154.   
  155.   <!-- Edit Menu -->
  156.   <key id="key_undo"/>
  157.   <key id="key_redo"/>
  158.   <key id="key_cut"/>
  159.   <key id="key_copy"/>
  160.   <key id="key_paste"/>
  161.   <key id="pastequotationkb"/>
  162.   <key id="key_delete"/>
  163.   <key id="key_selectAll"/>
  164.   <key id="key_find"  key="&findCmd.key;"  command="cmd_find" modifiers="accel"/>
  165.   <key id="key_findNext"  key="&findAgainCmd.key;" command="cmd_findNext" modifiers="accel"/>
  166.   
  167.   <!-- Options Menu -->
  168.   <!-- key id="key_selectAddresses" xulkey="true" key="&selectAddressCmd.key;" command="cmd_selectAddress"/ -->
  169.   <key id="key_checkspelling"  key="&checkSpellingCmd.key;" command="cmd_spelling"  modifiers="accel"/>
  170.   
  171. </keyset>
  172. <keyset id="editorKeys"/>
  173.  
  174. <popupset>
  175.   <popup id="TextColorPopup"/>
  176.   <popup id="BackColorPopup"/>
  177. </popupset>
  178.  
  179.   <toolbox class="toolbox-top">
  180.     <menubar id="compose-menubar">
  181.       <menu id="menu_File">
  182.         <menupopup id="menu_FilePopup">
  183.           <menuitem label="&newMessage.label;" accesskey="&newMessage.accesskey;" key="key_newMessage" oncommand="goOpenNewMessage();"/>
  184.           <menu id="menu_New">
  185.             <menupopup id="menu_NewPopup">
  186.               <menuitem id="menu_newNavigator"/>
  187.               <menuitem id="menu_newEditor"/>
  188.             </menupopup>
  189.           </menu>
  190.           <menuitem label="&attachFileCmd.label;" accesskey="&attachFileCmd.accesskey;" command="cmd_attachFile"/>
  191.           <menuitem label="&attachPageCmd.label;" accesskey="&attachPageCmd.accesskey;" command="cmd_attachPage"/>
  192.           <menuitem hidden="true" observes="Communicator:WorkMode"/>
  193.           <menuseparator/>
  194.           <menuitem id="menu_close"/>
  195.           <menuitem label="&saveCmd.label;" accesskey="&saveCmd.accesskey;" key="key_save" command="cmd_saveDefault"/>
  196.           <menu label="&saveAsCmd.label;" accesskey="&saveAsCmd.accesskey;">
  197.             <menupopup>
  198.               <menuitem label="&saveAsFileCmd.label;" accesskey="&saveAsFileCmd.accesskey;" command="cmd_saveAsFile"/>
  199.               <menuseparator/>
  200.               <menuitem label="&saveAsDraftCmd.label;" accesskey="&saveAsDraftCmd.accesskey;" command="cmd_saveAsDraft"/>
  201.               <menuitem label="&saveAsTemplateCmd.label;" accesskey="&saveAsTemplateCmd.accesskey;" command="cmd_saveAsTemplate"/>
  202.             </menupopup>
  203.           </menu>
  204.           <menuseparator/>
  205.           <menuitem label="&sendNowCmd.label;" accesskey="&sendNowCmd.accesskey;" command="cmd_sendNow"/>
  206.           <menuitem label="&sendLaterCmd.label;" accesskey="&sendLaterCmd.accesskey;" command="cmd_sendLater"/>
  207.           <menuseparator/>
  208.           <!--Page setup gets overlaid here from platformGlobalOverlay.xul / -->
  209.           <menuitem id="printMenuItem" label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="key_print" command="cmd_print"/>
  210.           <menuseparator/>
  211.         </menupopup>
  212.       </menu>
  213.       <menu id="menu_Edit">
  214.         <menupopup onpopupshowing="updateEditItems();">
  215.           <menuitem id="menu_undo"/>
  216.           <menuitem id="menu_redo"/>
  217.           <menuseparator/>
  218.           <menuitem id="menu_cut"/>
  219.           <menuitem id="menu_copy"/>
  220.           <menuitem id="menu_paste"/>
  221.           <menuitem id="menu_pasteQuote"/>
  222.           <menuitem id="menu_delete"/>
  223.           <menuseparator/>
  224.           <menuitem id="menu_selectAll"/>
  225.           <menuseparator/>
  226.           <menuitem label="&findCmd.label;"      key="key_find"      accesskey="&findCmd.accesskey;"      command="cmd_find"/>
  227.           <menuitem label="&findAgainCmd.label;" key="key_findNext" accesskey="&findAgainCmd.accesskey;" command="cmd_findNext"/>
  228.           <menuseparator/>
  229.           <menuitem label="&accountManagerCmd.label;" accesskey="&accountManagerCmd.accesskey;" command="cmd_account"/>
  230.           <menuitem id="menu_preferences" oncommand="goDoCommand('cmd_preferences')"/>
  231.         </menupopup>
  232.       </menu>
  233.       <menu id="menu_View">
  234.         <menupopup>
  235.           <menu id="menu_Toolbars">
  236.             <menupopup>
  237.               <menuitem id="menu_showComposeToolbar"
  238.                         type="checkbox"
  239.                         label="&showComposeToolbarCmd.label;"
  240.                         command="cmd_showComposeToolbar"
  241.                         accesskey="&showComposeToolbarCmd.accesskey;"
  242.                         checked="true"/>
  243.               <menuitem id="menu_showFormatToolbar"
  244.                         type="checkbox"
  245.                         label="&showFormatToolbarCmd.label;"
  246.                         command="cmd_showFormatToolbar"
  247.                         accesskey="&showFormatToolbarCmd.accesskey;"
  248.                         checked="true"/>
  249.               <menuitem id="menu_showTaskbar"
  250.                         type="checkbox"/>
  251.             </menupopup>
  252.           </menu>
  253.           <menuseparator/>
  254.           <menu id = "maileditCharsetMenu" />
  255.         </menupopup>
  256.       </menu>
  257.   
  258.       <menu id="insertMenu" command="cmd_insert"/>
  259.  
  260.       <menu id="formatMenu" label="&formatMenu.label;" accesskey="&formatMenu.accesskey;" command="cmd_insert">
  261.         <menupopup id="formatMenuPopup">
  262.           <menu id="tableMenu"/>
  263.           <menuseparator/>
  264.           <menuitem id="objectProperties"/>
  265.           <menuitem id="colorsAndBackground"/>
  266.         </menupopup>
  267.       </menu>
  268.   
  269.       <menu label="&optionsMenu.label;" accesskey="&optionsMenu.accesskey;">
  270.         <menupopup> 
  271.           <menuitem label="&selectAddressCmd.label;" accesskey="&selectAddressCmd.accesskey;" command="cmd_selectAddress"/>
  272.           <menuitem label="&checkSpellingCmd.label;" id="menu_checkspelling" accesskey="&checkSpellingCmd.accesskey;" key="key_checkspelling" command="cmd_spelling"/>
  273.           <!--menuitem label=""eOrigCmd.label;" accesskey=""eOrigCmd.accesskey;" command="cmd_quoteMessage"/-->  
  274.           <menuitem label="&editRewrapCmd.label;" accesskey="&editRewrapCmd.accesskey;" command="cmd_rewrap" oncommand="editorShell.Rewrap(false)"/>
  275.           <menuseparator/>
  276.           <menu id="outputFormatMenu" label="&outputFormatMenu.label;" accesskey="&outputFormatMenu.accesskey;" command="cmd_outputFormat">
  277.             <menupopup>
  278.               <menuitem type="radio" name="output_format" label="&autoFormatCmd.label;" accesskey="&autoFormatCmd.accesskey;" id="1" checked="true"/>
  279.               <menuitem type="radio" name="output_format" label="&plainTextFormatCmd.label;" accesskey="&plainTextFormatCmd.accesskey;" id="2"/>
  280.               <menuitem type="radio" name="output_format" label="&htmlFormatCmd.label;" accesskey="&htmlFormatCmd.accesskey;" id="3"/>
  281.               <menuitem type="radio" name="output_format" label="&bothFormatCmd.label;" accesskey="&bothFormatCmd.accesskey;" id="4"/>
  282.             </menupopup>
  283.           </menu>
  284.           <menu label="&priorityMenu.label;" accesskey="&priorityMenu.accesskey;" oncommand="PriorityMenuSelect(event.target);">
  285.             <menupopup>
  286.               <menuitem type="radio" name="priority" label="&lowestPriorityCmd.label;" accesskey="&lowestPriorityCmd.accesskey;" id="lowest"/>
  287.               <menuitem type="radio" name="priority" label="&lowPriorityCmd.label;" accesskey="&lowPriorityCmd.accesskey;" id="low"/>
  288.               <menuitem type="radio" name="priority" label="&normalPriorityCmd.label;" accesskey="&normalPriorityCmd.accesskey;" id="normal" checked="true"/>
  289.               <menuitem type="radio" name="priority" label="&highPriorityCmd.label;" accesskey="&highPriorityCmd.accesskey;" id="high"/>
  290.               <menuitem type="radio" name="priority" label="&highestPriorityCmd.label;" accesskey="&highestPriorityCmd.accesskey;" id="highest"/>
  291.             </menupopup>
  292.           </menu>
  293.           <menu id="fccMenu" label="&fileCarbonCopyCmd.label;" 
  294.              accesskey="&fileCarbonCopyCmd.accesskey;" 
  295.              sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  296.              sortDirection="ascending"
  297.              datasources="rdf:msgaccountmanager rdf:mailnewsfolders" 
  298.              ref="msgaccounts:/">
  299.             <menupopup/>
  300.             <template> 
  301.               <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  302.                 <menupopup>
  303.                   <!--menuitem label="[current selection]" disabled="true"/>
  304.                   <menuseparator/-->
  305.                   <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  306.                         SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  307.                         BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  308.                         IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  309.                         IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  310.                         ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  311.                     <menupopup>
  312.                       <menuitem label="&fileHereMenu.label;"
  313.                                 oncommand="MessageFcc(event.target.parentNode.parentNode)"/>
  314.                       <menuseparator/>
  315.                     </menupopup>
  316.                   </menu>
  317.                 </menupopup>
  318.               </rule>
  319.               <rule nc:CanFileMessagesOnServer="false"/>
  320.               <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  321.                 <menupopup>
  322.                   <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  323.                         SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  324.                         BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  325.                         IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  326.                         IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  327.                         ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  328.                     <menupopup/>
  329.                   </menu>
  330.                 </menupopup>
  331.               </rule>
  332.               <rule nc:CanFileMessages="true">
  333.                 <menupopup>
  334.                   <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  335.                             oncommand="MessageFcc(event.target)" 
  336.                             SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  337.                             BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  338.                             IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  339.                             IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  340.                             ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  341.                 </menupopup>
  342.               </rule>
  343.             </template>
  344.           </menu>     
  345.           <!--menuseparator/>
  346.           <menuitem label="&addSignatureCmd.label;" disabled="true" oncommand=""/>      
  347.           <menuitem label="&attachVCardCmd.label;" disabled="true" accesskey="&attachVCardCmd.accesskey;" oncommand="AttachVCard()"/-->     
  348.         </menupopup>
  349.       </menu>
  350.       <!--menu id="debugMenu"/-->
  351.       <menu id="tasksMenu"/>
  352.       <menu id="menu_Help"/>
  353.     </menubar>
  354.  
  355.     <toolbar class="toolbar-primary chromeclass-toolbar" id="composeToolbar" persist="collapsed">
  356.       <hbox id="toolbar_button_box">
  357.        <button class="button-toolbar-2 top" 
  358.                id="button-send" label="&sendButton.label;"
  359.                tooltip="aTooltip" tooltiptext="&sendButton.tooltip;" 
  360.                command="cmd_sendButton"
  361.                now_label="&sendButton.label;"
  362.                now_tooltiptext="&sendButton.tooltip;"
  363.                later_label="&sendLaterCmd.label;"
  364.                later_tooltiptext=""
  365.                >
  366.                <observes element="Communicator:WorkMode" attribute="offline"/>
  367.        </button>
  368.        <toolbarseparator class="toolbarseparator-primary"/>
  369.        <button class="button-toolbar-2 top" 
  370.                id="button-address" label="&addressButton.label;" 
  371.                tooltip="aTooltip" tooltiptext="&addressButton.tooltip;" 
  372.                command="cmd_selectAddress"/>
  373.        <button class="button-toolbar-2 top" 
  374.                id="button-attach" label="&attachButton.label;" 
  375.                tooltip="aTooltip" tooltiptext="&attachButton.tooltip;" 
  376.                command="cmd_attachFile"/>
  377.        <button class="button-toolbar-2 top" 
  378.                id="spellingButton" label="&spellingButton.label;" 
  379.                command="cmd_spelling"/>
  380.        <toolbarseparator class="toolbarseparator-primary"/>
  381.        <button class="button-toolbar-2 top" 
  382.                id="button-save" label="&saveButton.label;" 
  383.                tooltip="aTooltip" tooltiptext="&saveButton.tooltip;" 
  384.                command="cmd_saveDefault"/>
  385.        <spring flex="1"/>
  386.        <hbox id="throbber-box" autostretch="never">
  387.          <button id="navigator-throbber" 
  388.                oncommand="goClickThrobber('compose.throbber.url')" tooltip="aTooltip" tooltiptext="&throbber.tooltip;">
  389.            <observes element="broadcaster_throbber" attribute="busy"/>
  390.          </button>
  391.        </hbox>
  392.        </hbox>
  393.     </toolbar>
  394.   
  395.     <toolbar id="MsgHeadersToolbar" persist="collapsed" tborient="vertical" tbalign="stretch" flex="1">
  396.       <hbox id="msgheaderstoolbar-box" flex="1">
  397.         <vbox flex="75">
  398.           <hbox autostretch="never">
  399.             <text class="label" value="&fromAddr.label;"/>
  400.             <menulist id="msgIdentity" label="..." flex="1" oncommand="LoadIdentity(false);">
  401.               <menupopup id="msgIdentityPopup"/>
  402.             </menulist>
  403.           </hbox> 
  404.           <tree id="addressingWidgetTree" flex="1"/>
  405.           <hbox autostretch="never">
  406.             <text class="label" value="&subject.label;" accesskey="&subject.accesskey;"/>
  407.             <textbox id="msgSubject" flex="1" class="toolbar" onkeyup="SetComposeWindowTitle(event.which);"
  408.                        onkeypress="subjectKeyPress(event);" onchange="contentChanged=true;"/>
  409.           </hbox>
  410.         </vbox>
  411.         <splitter id="attachmentbucket-sizer" collapse="after"/>
  412.         <vbox flex="25">
  413.           <text class="label" id="attachmentBucketText" value="&attachments.label;" crop="right"
  414.                 accesskey="&attachments.accesskey;"/>
  415.           <tree id="attachmentBucket" class="inset toolbar" flex="1" style="height: 0px; width: 0px;"
  416.                 dragdroptree="true"
  417.                 onkeypress="if (event.keyCode == 8 || event.keyCode == 46) RemoveSelectedAttachment();"
  418.                 onchange="contentChanged=true;"
  419.                 onclick="AttachmentBucketClicked(event);"
  420.                 ondragover="nsDragAndDrop.dragOver(event, attachmentBucketObserver);"
  421.                 ondragdrop="nsDragAndDrop.drop(event, attachmentBucketObserver);"
  422.                 ondragexit="nsDragAndDrop.dragExit(event, attachmentBucketObserver);">
  423.                 
  424.             <treecolgroup>
  425.               <treecol flex="1"/>
  426.             </treecolgroup>
  427.             <treechildren id="bucketBody" flex="1"/>
  428.           </tree>
  429.         </vbox>
  430.       </hbox>
  431.     </toolbar>
  432.   
  433.     <!-- These toolbar items get filled out from the editorOverlay -->
  434.     <toolbar id="FormatToolbar" persist="collapsed" tbautostretch="never">
  435.       <menulist id="ParagraphSelect"/>
  436.       <menulist id="FontFaceSelect"/>
  437.       <stack id="ColorButtons"/>
  438.       <button id="DecreaseFontSizeButton"/>
  439.       <button id="IncreaseFontSizeButton"/>
  440.       <toolbarseparator class="toolbarseparator-standard"/>
  441.       <button id="boldButton"/>
  442.       <button id="italicButton"/>
  443.       <button id="underlineButton"/>
  444.       <toolbarseparator class="toolbarseparator-standard"/>
  445.       <button id="ulButton"/>
  446.       <button id="olButton"/>
  447.       <button id="outdentButton"/>
  448.       <button id="indentButton"/>
  449.       <toolbarseparator class="toolbarseparator-standard"/>
  450.       <menubutton id="AlignPopupButton"/>
  451.       <menubutton id="InsertPopupButton"/>
  452.       <menubutton id="smileButtonMenu" padwithspace="true"/>
  453.       <spring flex="1"/>
  454.     </toolbar>
  455.   </toolbox>
  456.  
  457.   <splitter id="compose-toolbar-sizer" onmousedown="awSizerListen()" collapse="after"/>
  458.  
  459.   <!-- The mail message body frame -->
  460.   <vbox id="appcontent" flex="1">
  461.     <editor type="content-primary" id="content-frame" src="about:blank" name="browser.message.body" flex="1"
  462.             onkeypress="editorKeyPress(event);"/>
  463.   </vbox>
  464.  
  465.   <statusbar id="status-bar">
  466.     <hbox id="component-bar"/>
  467.     <statusbarpanel id="statusText" flex="1" label="&defaultStatusText.label;"/>
  468.  
  469.     <progressmeter id="compose-progressmeter" class="progressmeter-statusbar" 
  470.                    mode="normal" value="0" statusbar="true"/>
  471.     <statusbarpanel checkfunc="MailCheckBeforeOfflineChange()" id="offline-status" class="statusbarpanel-icononly"/> 
  472.   </statusbar>
  473.  
  474.  
  475. </window>
  476.  
  477.