home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / editor / editorOverlay.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  62KB  |  925 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.    -   Ryan Cassin (rcassin@supernova.org)
  23.    -   Daniel Glazman (glazman@netscape.com)
  24.    -   Aaron Kaluszka (ask@swva.net)
  25. -->
  26.  
  27. <!DOCTYPE window SYSTEM "chrome://editor/locale/editorOverlay.dtd">
  28.  
  29. <overlay id="editorOverlay"
  30.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  31.  
  32. <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  33. <script type="application/x-javascript" src="chrome://editor/content/ComposerCommands.js"/>
  34.  
  35.   <keyset id="editorKeys">
  36.     <!-- defined in globalOverlay -->
  37.     <key id="key_newNavigator"/>
  38.     <key id="key_newBlankPage"/>
  39.  
  40.     <key id="openeditorkb"   key="&fileopen.keybinding;"   observes="cmd_open"  modifiers="accel"/>
  41.     <key id="openremoteeditorkb"  key="&fileopenremote.keybinding;"  observes="cmd_openRemote"  modifiers="accel,shift"/>
  42.     <key id="savekb"         key="&filesave.keybinding;"   observes="cmd_save"   modifiers="accel"/>
  43.     <key id="publishkb"      key="&filesave.keybinding;"   observes="cmd_publish" modifiers="accel,shift"/>
  44.     <key id="closekb"        key="&fileclose.keybinding;"  observes="cmd_close"  modifiers="accel"/>
  45.     <key id="printkb"        key="&fileprint.keybinding;"  observes="cmd_print"  modifiers="accel"/>
  46.     <key id="key_quit"/>
  47.     <key id="key_undo"/>
  48.     <key id="key_redo"/>
  49.     <key id="key_cut"/>
  50.     <key id="key_copy"/>
  51.     <key id="key_paste"/>
  52.     <key id="key_delete"/>
  53.     <key id="key_selectAll"/>
  54.     <key id="pastequotationkb"  key="&editpastequotation.keybinding;"   observes="cmd_pasteQuote"  modifiers="accel, shift"/>
  55.     <key id="findkb"            key="&editfind.keybinding;"            observes="cmd_find"  modifiers="accel"/>
  56.     <key id="findnextkb"        key="&editfindnext.keybinding;"        observes="cmd_findNext"  modifiers="accel"/>
  57.     <key id="findprevkb"        key="&editfindprev.keybinding;"        observes="cmd_findPrev"  modifiers="accel,shift"/>
  58.     <key keycode="&editfindnext.keybinding2;" observes="cmd_findNext"/>
  59.     <key keycode="&editfindprev.keybinding2;" observes="cmd_findPrev" modifiers="shift"/>
  60.     <key id="checkspellingkb"   key="&editcheckspelling.keybinding;"   observes="cmd_spelling"  modifiers="accel" disabled="true"/>
  61.  
  62.     <key id="boldkb"         key="&stylebold.keybinding;"       observes="cmd_bold" modifiers="accel"/>
  63.     <key id="italickb"       key="&styleitalic.keybinding;"     observes="cmd_italic" modifiers="accel"/>
  64.     <key id="underlinekb"    key="&styleunderline.keybinding;"  observes="cmd_underline" modifiers="accel"/>
  65.     <key id="fixedwidthkb"   key="&formatfontfixed.keybinding;" observes="cmd_tt" modifiers="accel"/>
  66.  
  67.     <key id="increaseindentkb"  key="&formatindent.keybinding;"  observes="cmd_indent"  modifiers="accel"/>
  68.     <key id="decreaseindentkb"  key="&formatoutdent.keybinding;"  observes="cmd_outdent"  modifiers="accel"/>
  69.  
  70.     <key id="removestyleskb"       key="&formatremovestyles.keybinding;"   observes="cmd_removeStyles"  modifiers="accel, shift"/>
  71.     <key id="removestyleskb2"       key=" "   observes="cmd_removeStyles"  modifiers="accel"/>
  72.     <key id="removelinkskb"        key="&formatremovelinks.keybinding;"    observes="cmd_removeLinks"  modifiers="accel, shift"/>
  73.     <key id="removenamedanchorskb" key="&formatremovenamedanchors.keybinding;"    observes="cmd_removeNamedAnchors"  modifiers="accel, shift"/>
  74.     <key id="decreasefontsizekb"   key="&decreaseFontSize.keybinding;"     observes="cmd_decreaseFont"  modifiers="accel"/>
  75.     <key id="increasefontsizekb"   key="&increaseFontSize.keybinding;"     observes="cmd_increaseFont"  modifiers="accel"/>
  76.  
  77.     <key id="insertlinkkb"         key="&insertlink.keybinding;"           observes="cmd_link"          modifiers="accel"/>
  78.   </keyset>
  79.  
  80.   <!-- commands updated when the editor gets created -->
  81.   <commandset id="commonEditorMenuItems"
  82.           commandupdater="true"
  83.           events="create"
  84.           oncommandupdate="goUpdateComposerMenuItems(this)"
  85.   >
  86.     <command id="cmd_open"                                          oncommand="goDoCommand('cmd_open')"/>
  87.     <command id="cmd_openRemote"   label="&openremoteCmd.label;"    oncommand="goDoCommand('cmd_openRemote')"/>
  88.     <command id="cmd_close"        label="&closeCmd.label;"         oncommand="goDoCommand('cmd_close')"/>
  89.     <command id="cmd_printSetup"   oncommand="goDoCommand('cmd_printSetup')"/>
  90. <!--
  91.     <command id="cmd_printPreview" label="&printPreviewCmd.label;"  oncommand="goDoCommand('cmd_printPreview')"/>
  92. -->
  93.     <command id="cmd_print"                                         oncommand="goDoCommand('cmd_print')"/>
  94.     <command id="cmd_quit"         oncommand="goDoCommand('cmd_quit')"/>
  95.   </commandset>
  96.  
  97.   <commandset id="composerMenuItems"
  98.           commandupdater="true"
  99.           events="create, mode_switch"
  100.           oncommandupdate="goUpdateComposerMenuItems(this)"
  101.   >
  102.     <!-- format menu -->
  103.     <command id="cmd_listProperties"  oncommand="goDoCommand('cmd_listProperties')"/>
  104.     <command id="cmd_pageProperties"  oncommand="goDoCommand('cmd_pageProperties')"/>
  105.     <command id="cmd_colorProperties" oncommand="goDoCommand('cmd_colorProperties')"/>
  106.  
  107.     <command id="cmd_link"             oncommand="goDoCommand('cmd_link')"/>
  108.     <command id="cmd_anchor"           oncommand="goDoCommand('cmd_anchor')"/>
  109.     <command id="cmd_image"            oncommand="goDoCommand('cmd_image')"/>
  110.     <command id="cmd_hline"            oncommand="goDoCommand('cmd_hline')"/>
  111.     <command id="cmd_table"            oncommand="goDoCommand('cmd_table')"/>
  112.     <command id="cmd_form"             oncommand="goDoCommand('cmd_form')"/>
  113.     <command id="cmd_inputtag"         oncommand="goDoCommand('cmd_inputtag')"/>
  114.     <command id="cmd_inputimage"       oncommand="goDoCommand('cmd_inputimage')"/>
  115.     <command id="cmd_textarea"         oncommand="goDoCommand('cmd_textarea')"/>
  116.     <command id="cmd_select"           oncommand="goDoCommand('cmd_select')"/>
  117.     <command id="cmd_button"           oncommand="goDoCommand('cmd_button')"/>
  118.     <command id="cmd_label"            oncommand="goDoCommand('cmd_label')"/>
  119.     <command id="cmd_fieldset"         oncommand="goDoCommand('cmd_fieldset')"/>
  120.     <command id="cmd_isindex"          oncommand="goDoCommand('cmd_isindex')"/>
  121.     <command id="cmd_objectProperties" oncommand="goDoCommand('cmd_objectProperties')"/>
  122.     <command id="cmd_insertChars"      oncommand="goDoCommand('cmd_insertChars')"    label="&insertCharsCmd.label;"/>
  123.     <command id="cmd_insertHTMLWithDialog" oncommand="goDoCommand('cmd_insertHTMLWithDialog')"  label="&insertHTMLCmd.label;"/>
  124.  
  125.     <command id="cmd_insertBreak"      oncommand="goDoCommand('cmd_insertBreak')"/>
  126.     <command id="cmd_insertBreakAll"   oncommand="goDoCommand('cmd_insertBreakAll')"/>
  127.     <command id="cmd_NormalMode"       oncommand="goDoCommand('cmd_NormalMode')"     label="&NormalMode.label;"/>
  128.     <command id="cmd_AllTagsMode"      oncommand="goDoCommand('cmd_AllTagsMode')"    label="&AllTagsMode.label;"/>
  129.     <command id="cmd_HTMLSourceMode"   oncommand="goDoCommand('cmd_HTMLSourceMode')"/>
  130.     <command id="cmd_PreviewMode"      oncommand="goDoCommand('cmd_PreviewMode')"    label="&PreviewMode.label;"/>
  131.  
  132.     <!-- only used in context popup menu -->
  133.     <command id="cmd_editLink"         oncommand="goDoCommand('cmd_editLink')"/>
  134.  
  135.     <!-- dummy command used just to disable things in non-HTML modes -->
  136.     <command id="cmd_renderedHTMLEnabler"/>
  137.   </commandset>
  138.   
  139.   <commandset id="composerSaveMenuItems"
  140.           commandupdater="true"
  141.           events="create, save"
  142.           oncommandupdate="goUpdateComposerMenuItems(this)"
  143.   >
  144.     <command id="cmd_save"           label="&saveCmd.label;"           oncommand="goDoCommand('cmd_save')"/>
  145.     <command id="cmd_saveAs"         label="&saveAsCmd.label;"         oncommand="goDoCommand('cmd_saveAs')"/>
  146.     <command id="cmd_exportToText"   label="&exportToTextCmd.label;"   oncommand="goDoCommand('cmd_exportToText')"/>
  147.     <command id="cmd_saveAsCharset"  label="&saveAsCharsetCmd.label;"  oncommand="goDoCommand('cmd_saveAsCharset')"/>
  148.     <command id="cmd_publish"        label="&publishCmd.label;"        oncommand="goDoCommand('cmd_publish')"/>
  149.     <command id="cmd_publishAs"      label="&publishAsCmd.label;"      oncommand="goDoCommand('cmd_publishAs')"/>
  150.     <command id="cmd_revert"         label="&fileRevert.label;"        oncommand="goDoCommand('cmd_revert')"/>
  151.     <command id="cmd_preview"                                          oncommand="goDoCommand('cmd_preview')"/>
  152.     <command id="cmd_editSendPage"   label="&sendPageCmd.label;"
  153.                                      accesskey="&sendPage.accesskey;"  oncommand="goDoCommand('cmd_editSendPage')"/>
  154.   </commandset>
  155.  
  156.  
  157.   <!-- edit menu commands. These get updated by code in globalOverlay.js -->
  158.   <commandset id="composerEditMenuItems"
  159.           commandupdater="true"
  160.           events="create, mode_switch"
  161.           oncommandupdate="goUpdateComposerMenuItems(this)"
  162.   >
  163.     <command id="cmd_undo"/>
  164.     <command id="cmd_redo"/>
  165.     <command id="cmd_cut"/>
  166.     <command id="cmd_copy"/>
  167.     <command id="cmd_paste"/>  
  168.     <command id="cmd_pasteNoFormatting" oncommand="goDoCommand('cmd_pasteNoFormatting')"
  169.              label="&pasteNoFormatting.label;" accesskey="&pasteNoFormatting.accesskey;"/>
  170.     <command id="cmd_delete"/>
  171.     <command id="cmd_selectAll"/>
  172.     <command id="cmd_preferences"   oncommand="goDoCommand('cmd_preferences')"/>
  173.     <command id="cmd_find"          oncommand="goDoCommand('cmd_find')"/>
  174.     <command id="cmd_findNext"      oncommand="goDoCommand('cmd_findNext')"     label="&findAgainCmd.label;"/>
  175.     <command id="cmd_findPrev"      oncommand="goDoCommand('cmd_findPrev')"     label="&findPrevCmd.label;"/>
  176.     <command id="cmd_spelling"      oncommand="goDoCommand('cmd_spelling')"/>
  177.     <command id="cmd_validate"      label="&validateCmd.label;" accesskey="&validate.accesskey;" oncommand="goDoCommand('cmd_validate')"/>
  178.     <command id="cmd_checkLinks"    oncommand="goDoCommand('cmd_checkLinks')"/>
  179.     <command id="cmd_pasteQuote"    oncommand="goDoCommand('cmd_pasteQuote')" label="&pasteAsQuotationCmd.label;"/>
  180.     <command id="cmd_publishSettings" label="&publishSettings.label;" accesskey="&publishSettings.accesskey;" oncommand="goDoCommand('cmd_publishSettings')"/>
  181.   </commandset>
  182.  
  183.   <!-- style related commands that update on creation, and on selection change -->
  184.   <commandset id="composerStyleMenuItems"
  185.           commandupdater="true"
  186.           events="create, style, mode_switch"
  187.           oncommandupdate="goUpdateComposerMenuItems(this)"
  188.   >
  189.     <command id="cmd_bold"          state="false"     oncommand="doStyleUICommand('cmd_bold')"/>
  190.     <command id="cmd_italic"        state="false"     oncommand="doStyleUICommand('cmd_italic')"/>
  191.     <command id="cmd_underline"     state="false"     oncommand="doStyleUICommand('cmd_underline')"/>
  192.     <command id="cmd_tt"            state="false"     oncommand="doStyleUICommand('cmd_tt')"/>
  193.     <command id="cmd_smiley"/>
  194.  
  195.     <command id="cmd_strikethrough" state="false"     oncommand="doStyleUICommand('cmd_strikethrough');"/>
  196.     <command id="cmd_superscript"   state="false"     oncommand="doStyleUICommand('cmd_superscript');"/>
  197.     <command id="cmd_subscript"     state="false"     oncommand="doStyleUICommand('cmd_subscript');"/>
  198.     <command id="cmd_nobreak"       state="false"     oncommand="doStyleUICommand('cmd_nobreak');"/>
  199.  
  200.     <command id="cmd_em"            state="false"     oncommand="doStyleUICommand('cmd_em')"/>
  201.     <command id="cmd_strong"        state="false"     oncommand="doStyleUICommand('cmd_strong')"/>
  202.     <command id="cmd_cite"          state="false"     oncommand="doStyleUICommand('cmd_cite')"/>
  203.     <command id="cmd_abbr"          state="false"     oncommand="doStyleUICommand('cmd_abbr')"/>
  204.     <command id="cmd_acronym"       state="false"     oncommand="doStyleUICommand('cmd_acronym')"/>
  205.     <command id="cmd_code"          state="false"     oncommand="doStyleUICommand('cmd_code')"/>
  206.     <command id="cmd_samp"          state="false"     oncommand="doStyleUICommand('cmd_samp')"/>
  207.     <command id="cmd_var"           state="false"     oncommand="doStyleUICommand('cmd_var')"/>
  208.  
  209.     <command id="cmd_ul"            state="false"     oncommand="doStyleUICommand('cmd_ul')"/>
  210.     <command id="cmd_ol"            state="false"     oncommand="doStyleUICommand('cmd_ol')"/>
  211.  
  212.     <command id="cmd_indent"                          oncommand="goDoCommand('cmd_indent')"/>
  213.     <command id="cmd_outdent"                         oncommand="goDoCommand('cmd_outdent')"/>
  214.  
  215.     <!-- the state attribute gets filled with the paragraph format before the command is exectued -->
  216.     <command id="cmd_paragraphState"  state=""         oncommand="doStatefulCommand('cmd_paragraphState', event.target.value)"/>
  217.     <command id="cmd_fontFace"        state=""         oncommand="doStatefulCommand('cmd_fontFace', event.target.value)"/>
  218.  
  219.     <!-- No "oncommand", use EditorSelectColor() to bring up color dialog -->
  220.     <command id="cmd_fontColor"       state=""/>
  221.     <command id="cmd_backgroundColor" state=""/>
  222.     <command id="cmd_highlight"       state="transparent"  oncommand="EditorSelectColor('Highlight', event);"/>
  223.  
  224.     <command id="cmd_fontSize"                         oncommand="goDoCommand('cmd_fontSize')"/>
  225.     <command id="cmd_align"           state=""/>
  226.     
  227.     <command id="cmd_advancedProperties"              oncommand="goDoCommand('cmd_advancedProperties')"/>
  228.  
  229.     <command id="cmd_increaseFont"                    oncommand="goDoCommand('cmd_increaseFont')"/>
  230.     <command id="cmd_decreaseFont"                    oncommand="goDoCommand('cmd_decreaseFont')"/>
  231.     
  232.     <command id="cmd_removeStyles"                    oncommand="goDoCommand('cmd_removeStyles')"/>
  233.     <command id="cmd_removeLinks"                     oncommand="goDoCommand('cmd_removeLinks')"/>
  234.     <command id="cmd_removeNamedAnchors"              oncommand="goDoCommand('cmd_removeNamedAnchors')"/>
  235.     <command id="cmd_updateStructToolbar"             oncommand="goDoCommand('cmd_updateStructToolbar')"/>
  236.   </commandset>
  237.  
  238.   <!-- commands updated only when the menu gets created -->
  239.   <commandset id="composerListMenuItems"
  240.           commandupdater="true"
  241.           events="create, mode_switch"
  242.           oncommandupdate="goUpdateComposerMenuItems(this)">
  243.     <!-- List menu  -->
  244.     <command id="cmd_dt"                  oncommand="doStyleUICommand('cmd_dt')"/>
  245.     <command id="cmd_dd"                  oncommand="doStyleUICommand('cmd_dd')"/>
  246.     <command id="cmd_removeList"          oncommand="goDoCommand('cmd_removeList')"/>
  247.     <!-- cmd_ul and cmd_ol are shared with toolbar and are in composerStyleMenuItems commandset -->
  248.   </commandset>
  249.  
  250.   <commandset id="composerTableMenuItems"
  251.           commandupdater="true"
  252.           events="create, mode_switch"
  253.           oncommandupdate="goUpdateTableMenuItems(this)">
  254.     <!-- Table menu -->
  255.     <command id="cmd_SelectTable"         oncommand="goDoCommand('cmd_SelectTable')"/>
  256.     <command id="cmd_SelectRow"           oncommand="goDoCommand('cmd_SelectRow')"/>
  257.     <command id="cmd_SelectColumn"        oncommand="goDoCommand('cmd_SelectColumn')"/>
  258.     <command id="cmd_SelectCell"          oncommand="goDoCommand('cmd_SelectCell')"/>
  259.     <command id="cmd_SelectAllCells"      oncommand="goDoCommand('cmd_SelectAllCells')"/>
  260.     <command id="cmd_InsertTable"         oncommand="goDoCommand('cmd_InsertTable')"/>
  261.     <command id="cmd_InsertRowAbove"      oncommand="goDoCommand('cmd_InsertRowAbove')"/>
  262.     <command id="cmd_InsertRowBelow"      oncommand="goDoCommand('cmd_InsertRowBelow')"/>
  263.     <command id="cmd_InsertColumnBefore"  oncommand="goDoCommand('cmd_InsertColumnBefore')"/>
  264.     <command id="cmd_InsertColumnAfter"   oncommand="goDoCommand('cmd_InsertColumnAfter')"/>
  265.     <command id="cmd_InsertCellBefore"    oncommand="goDoCommand('cmd_InsertCellBefore')"/>
  266.     <command id="cmd_InsertCellAfter"     oncommand="goDoCommand('cmd_InsertCellAfter')"/>
  267.     <command id="cmd_DeleteTable"         oncommand="goDoCommand('cmd_DeleteTable')"/>
  268.     <command id="cmd_DeleteRow"           oncommand="goDoCommand('cmd_DeleteRow')"/>
  269.     <command id="cmd_DeleteColumn"        oncommand="goDoCommand('cmd_DeleteColumn')"/>
  270.     <command id="cmd_DeleteCell"          oncommand="goDoCommand('cmd_DeleteCell')"/>
  271.     <command id="cmd_DeleteCellContents"  oncommand="goDoCommand('cmd_DeleteCellContents')"/>
  272.     <command id="cmd_NormalizeTable"      oncommand="goDoCommand('cmd_NormalizeTable')"/>
  273.     <command id="cmd_JoinTableCells"      oncommand="goDoCommand('cmd_JoinTableCells')"/>
  274.     <command id="cmd_SplitTableCell"      oncommand="goDoCommand('cmd_SplitTableCell')"/>
  275.     <command id="cmd_ConvertToTable"      oncommand="goDoCommand('cmd_ConvertToTable')"/>
  276.     <command id="cmd_TableOrCellColor"    oncommand="goDoCommand('cmd_TableOrCellColor')"/>
  277.     <command id="cmd_editTable"           oncommand="goDoCommand('cmd_editTable')"/>
  278.   </commandset>
  279.  
  280.   <broadcasterset id="broadcasterset">
  281.     <!-- Broadcasters/commands with no other home -->
  282.     <!-- view menu -->
  283.     <command id="cmd_newNavigator"/>
  284.     <command id="cmd_newEditor"/>
  285.     <command id="cmd_newEditorTemplate"/>
  286.     <command id="cmd_newEditorDraft"/>
  287.  
  288.     <command id="cmd_viewCompToolbar"     oncommand="goToggleToolbar('EditToolbar','cmd_viewCompToolbar');"         checked="true"/>
  289.     <command id="cmd_viewFormatToolbar"   oncommand="goToggleToolbar('FormatToolbar','cmd_viewFormatToolbar');"     checked="true"/>
  290.     <command id="cmd_viewEditModeToolbar" oncommand="goToggleToolbar('EditModeToolbar','cmd_viewEditModeToolbar');" checked="true"/>
  291.     <command id="cmd_viewtaskbar"         oncommand="goToggleToolbar('status-bar','cmd_viewtaskbar');"              checked="true"/>
  292.  
  293.     <!-- Obsolete; these will go away -->
  294.     <command id="Editor:Font:Size" fontsize=""/>
  295.   </broadcasterset>
  296.  
  297.   <!-- File  menu items -->
  298.   <!-- Note: globalOverlay.xul uses menu_newEditor, but we want different menu item text
  299.              so we use our own id, label, and accesskey but connect to the same global key and broadcaster node
  300.    -->
  301.   <menu id="fileMenu" label="&fileMenu.label;" accesskey="&filemenu.accesskey;">
  302.     <menupopup id="menu_FilePopup" onpopupshowing="EditorInitFileMenu();">
  303.       <menu id="menu_New">
  304.         <menupopup id="menu_NewPopup">
  305.           <menuitem id="menu_newBlankPage" label="&newBlankPageCmd.label;" 
  306.                     accesskey="&newBlankPage.accesskey;" key="key_newBlankPage"
  307.                     command="cmd_newEditor"/>
  308.           <menuseparator id="composerBeginGlobalNewItems"/>
  309.           <!-- From globalOverlay.xul -->
  310.           <menuitem id="menu_newNavigator" observes="cmd_newNavigator"/>
  311.         </menupopup>
  312.       </menu>
  313.       <menuitem accesskey="&fileopenremote.accesskey;"      key="openremoteeditorkb" observes="cmd_openRemote"/>
  314.       <menuitem accesskey="&fileopen.accesskey;"            key="openeditorkb"       observes="cmd_open" label="&openFileCmd.label;"/>
  315.       <menu id="menu_RecentFiles" accesskey="&filerecentmenu.accesskey;" label="&fileRecentMenu.label;"
  316.             onpopupshowing="BuildRecentPagesMenu();">
  317.         <menupopup id="menupopup_RecentFiles" oncommand="editPage(event.target.getAttribute('value'), window, false);"/>
  318.           <!-- menuitems appended at runtime -->
  319.       </menu>
  320.       <menuitem accesskey="&fileclose.accesskey;" key="closekb" observes="cmd_close"/>
  321.       <menuseparator/>
  322.       <menuitem id="saveMenuitem" accesskey="&filesave.accesskey;" key="savekb" observes="cmd_save"/>
  323.       <menuitem accesskey="&filesaveas.accesskey;" observes="cmd_saveAs"/>
  324.       <menuitem accesskey="&filesaveascharset.accesskey;" observes="cmd_saveAsCharset"/>
  325.       <menuseparator/>
  326.       <menuitem id="publishMenuitem" accesskey="&publishcmd.accesskey;" key="publishkb" observes="cmd_publish"/>
  327.       <menuitem accesskey="&publishas.accesskey;" observes="cmd_publishAs"/>
  328.       <menuseparator/>
  329.       <menuitem accesskey="&filerevert.accesskey;" observes="cmd_revert"/>
  330.       <menuseparator/>
  331.       <menuitem id="fileExportToText"  accesskey="&fileexporttotext.accesskey;" observes="cmd_exportToText"/>
  332.       <menuitem id="previewInBrowser" label="&previewCmd.label;"  accesskey="&filepreview.accesskey;" observes="cmd_preview"/>
  333.       <!-- menuitem id="menu_SendPage" is merged here from mailEditorOverlay.xul,
  334.            where "position" is assumed to be just after 'previewInBrowser'  -->
  335.       <!--Page setup gets overlaid here from platformGlobalOverlay.xul / -->
  336.       <menuitem id="printMenuItem" accesskey="&fileprint.accesskey;" key="printkb" observes="cmd_print" label="&printCmd.label;"/>
  337.       <!-- The Exit/Quit item is merged from platformGlobalOverlay.xul -->
  338.     </menupopup>
  339.   </menu>
  340.  
  341.   <menu id="editMenu" label="&editMenu.label;" accesskey="&editmenu.accesskey;">
  342.     <menupopup id="edEditMenuPopup">
  343.       <!-- from utilityOverlay.xul -->
  344.       <menuitem id="menu_undo"/>
  345.       <menuitem id="menu_redo"/>
  346.       <menuseparator id="edEditMenuSep1" />
  347.       <menuitem id="menu_cut"/>
  348.       <menuitem id="menu_copy"/>
  349.       <menuitem id="menu_paste"/>
  350.       <menuitem id="menu_pasteNoFormatting" observes="cmd_pasteNoFormatting"/>"
  351.  
  352. <!-- PasteAs not implemented yet
  353.       <menu id="menu_pasteAs" label="&pasteAs.label;" accesskey="&pasteAs.accesskey;">
  354.         <menupopup onpopupshowing="InitPasteAsMenu();">
  355.           <menuitem id="menu_pasteText"    label="&pasteTextCmd.label;"     accesskey="&pasteText.accesskey;"/>
  356.           <menuitem id="menu_pasteImage"   label="&pasteImageCmd.label;"    accesskey="&pasteImage.accesskey;"/>
  357.           <menuseparator/>
  358.           <menuitem id="menu_pasteRows"    label="&pasteRowsCmd.label;"     accesskey="&pasteRows.accesskey;"/>
  359.           <menuitem id="menu_pasteColumns" label="&pasteColumnsCmd.label;"  accesskey="&pasteColumns.accesskey;"/>
  360.           <menuitem id="menu_pasteTable"                                    accesskey="&pasteTable.accesskey;"/>
  361.         </menupopup>
  362.       </menu>
  363. -->
  364.       <menuitem id="menu_delete"/>
  365.       <menuseparator id="edEditMenuSep2" />
  366.       <menuitem id="menu_selectAll"/>
  367.       <menuseparator id="sep_find"/>
  368.       <menuitem id="menu_find"           accesskey="&editfind.accesskey;"            key="findkb"         observes="cmd_find" label="&findCmd.label;"/>
  369.       <menuitem id="menu_findnext"       accesskey="&editfindnext.accesskey;"        key="findnextkb"     observes="cmd_findNext"/>
  370.       <menuitem id="menu_findprev"       accesskey="&editfindprev.accesskey;"        key="findprevkb"     observes="cmd_findPrev"/>
  371.       <menuseparator id="sep_checkspelling"/>
  372.       <menuitem id="menu_checkspelling" accesskey="&editcheckspelling.accesskey;"
  373.                 key="checkspellingkb"   observes="cmd_spelling" disabled="true"
  374.                 label="&checkSpellingCmd.label;"/>
  375.       <menuseparator id="menu_prefsSep"/>
  376.       <menuitem id="menu_preferences"     observes="cmd_preferences"/>
  377.       <!-- Note: other Edit items (menu_validate, menu_publishSettings) are inserted from composerOverlay.xul -->
  378.     </menupopup>
  379.   </menu>
  380.  
  381.   <!-- view menu items -->
  382.   <menu id="menu_Toolbars" label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;">
  383.     <menupopup id="view_toolbars_popup"> 
  384.       <menuitem id="viewComposerToolbar" label="&compositionToolbarCmd.label;" type="checkbox" accesskey="&compositiontb.accesskey;" observes="cmd_viewCompToolbar"  />
  385.       <menuitem id="viewFormatToolbar"   label="&formattingToolbarCmd.label;"  type="checkbox" accesskey="&formattingtb.accesskey;"  observes="cmd_viewFormatToolbar" />
  386.       <menuitem id="viewEditModeToolbar" label="&editmodeToolbarCmd.label;"    type="checkbox" accesskey="&editmodetb.accesskey;"    observes="cmd_viewEditModeToolbar" />
  387.       <menuitem id="viewTaskBar"         label="&taskbarCmd.label;"            type="checkbox" accesskey="&taskbarCmd.accesskey;"    observes="cmd_viewtaskbar" />
  388.     </menupopup>
  389.   </menu>
  390.  
  391.   <menuitem id="viewNormalMode"   type="radio" group="mode" accesskey="&NormalMode.accesskey;"     observes="cmd_NormalMode"/>
  392.   <menuitem id="viewAllTagsMode"  type="radio" group="mode" accesskey="&AllTagsMode.accesskey;"    observes="cmd_AllTagsMode"/>
  393.   <menuitem id="viewSourceMode"   type="radio" group="mode" accesskey="&HTMLSourceMode.accesskey;" observes="cmd_HTMLSourceMode" label="&HTMLSourceMode.label;"/>
  394.   <menuitem id="viewPreviewMode"  type="radio" group="mode" accesskey="&PreviewMode.accesskey;"    observes="cmd_PreviewMode"/>
  395.  
  396.   <menupopup id = "composerCharsetMenuPopup"  onpopupshowing="updateCharsetPopupMenu(this)" />
  397.  
  398.   <!-- Insert menu -->
  399.   <menu id="insertMenu" label="&insertMenu.label;" accesskey="&insertmenu.accesskey;">
  400.     <menupopup id="insertMenuPopup">
  401.       <menuitem accesskey="&insertimage.accesskey;"      observes="cmd_image"       label="&insertImageCmd.label;"/>
  402.       <menuitem accesskey="&inserttable.accesskey;"      observes="cmd_InsertTable" label="&insertTableCmd.label;"/>
  403.       <menuitem accesskey="&insertlink.accesskey;"       observes="cmd_link"        label="&insertLinkCmd.label;"   key="insertlinkkb"/>
  404.       <menuitem accesskey="&insertanchor.accesskey;"     observes="cmd_anchor"      label="&insertAnchorCmd.label;"/>
  405.       <menuitem accesskey="&inserthline.accesskey;"      observes="cmd_hline"       label="&insertHLineCmd.label;"/>
  406.       <menuitem accesskey="&HTMLSourceMode.accesskey;"   observes="cmd_insertHTMLWithDialog"  key="inserthtmlkb"/>
  407.       <menuitem accesskey="&insertchars.accesskey;"      observes="cmd_insertChars" id="insertChars"/>
  408.       <menu label="&tocMenu.label;" accesskey="&tocMenu.accesskey;">
  409.         <menupopup onpopupshowing="InitTOCMenu()">
  410.           <menuitem id="insertTOCMenuitem"
  411.                     label="&insertTOC.label;"
  412.                     accesskey="&insertTOC.accesskey;"
  413.                     oncommand="UpdateTOC()"/>
  414.           <menuitem id="updateTOCMenuitem"
  415.                     label="&updateTOC.label;"
  416.                     accesskey="&updateTOC.accesskey;"
  417.                     oncommand="UpdateTOC()"/>
  418.           <menuitem id="removeTOCMenuitem"
  419.                     label="&removeTOC.label;"
  420.                     accesskey="&removeTOC.accesskey;"
  421.                     oncommand="RemoveTOC()"/>
  422.         </menupopup>
  423.       </menu>
  424.       <menuseparator id="insertMenuSeparator"/>
  425. <!-- Activate this after Enter key inserts P tag and not BR
  426.       <menuitem accesskey="&insertbreak.accesskey;"      observes="cmd_insertBreak"      label="&insertBreakCmd.label;"/>
  427. -->
  428.       <menuitem accesskey="&insertbreakall.accesskey;"   observes="cmd_insertBreakAll"   label="&insertBreakAllCmd.label;"/>
  429.     </menupopup>
  430.   </menu>
  431.     
  432.   <!-- Insert menu for PlainText editor -->
  433.   <menu id="insertMenuPlainText" label="&insertMenu.label;" accesskey="&insertmenu.accesskey;">
  434.     <menupopup>
  435.       <menuitem accesskey="&insertchars.accesskey;" observes="cmd_insertChars" />
  436.     </menupopup>
  437.   </menu>
  438.  
  439.   <!-- Format Menu -->
  440.   <menupopup id="formatMenuPopup" onpopupshowing="EditorInitFormatMenu()">
  441.     <!-- Font face submenu -->
  442.     <menu id="fontFaceMenu" label="&fontfaceMenu.label;" accesskey="&formatfontmenu.accesskey;" 
  443.           position="1">
  444.       <menupopup oncommand="doStatefulCommand('cmd_fontFace', event.target.value)" onpopupshowing="initFontFaceMenu(this)">
  445.         <menuitem label="&fontVarWidth.label;"      accesskey="&fontvarwidth.accesskey;"    value=""    type="radio" name="1" observes="cmd_renderedHTMLEnabler"/>
  446.         <menuitem label="&fontFixedWidth.label;"    accesskey="&fontfixedwidth.accesskey;"  value="tt"  type="radio" name="1" observes="cmd_renderedHTMLEnabler"/>
  447.         <menuseparator/>
  448.         <menuitem label="&fontHelveticaFont.label;" accesskey="&fonthelvetica.accesskey;"   value="Helvetica, Arial, sans-serif"    type="radio" name="2" observes="cmd_renderedHTMLEnabler"/>
  449.         <menuitem label="&fontTimes.label;"         accesskey="&fonttimes.accesskey;"       value="Times New Roman, Times, serif"   type="radio" name="2" observes="cmd_renderedHTMLEnabler"/>
  450.         <menuitem label="&fontCourier.label;"       accesskey="&fontcourier.accesskey;"     value="Courier New, Courier, monospace" type="radio" name="2" observes="cmd_renderedHTMLEnabler"/>
  451.       </menupopup>
  452.     </menu>
  453.  
  454.     <!-- Font size submenu -->
  455.     <menu id="fontSizeMenu" label="&fontsizeMenu.label;"
  456.           accesskey="&formatsizemenu.accesskey;" 
  457.           position="2">
  458.       <menupopup onpopupshowing="initFontSizeMenu(this)">
  459.       <menuitem label="&decreaseFontSize.label;" accesskey="&decreasefontsize.accesskey;" observes="cmd_decreaseFont" type="radio" name="1" key="decreasefontsizekb"/>
  460.       <menuitem label="&increaseFontSize.label;" accesskey="&increasefontsize.accesskey;" observes="cmd_increaseFont" type="radio" name="1" key="increasefontsizekb"/>
  461.         <menuseparator/>
  462. <!-- Not supported in current font size implementation
  463.         <menuitem label="&size-xx-smallCmd.label;" accesskey="&size-xx-small.accesskey;" oncommand="EditorSetFontSize('xx-small')" type="radio" name="2" />
  464. -->
  465.         <menuitem label="&size-x-smallCmd.label;"  accesskey="&size-x-small.accesskey;"  oncommand="EditorSetFontSize('x-small')"  type="radio" name="2" observes="cmd_renderedHTMLEnabler"/>
  466.         <menuitem label="&size-smallCmd.label;"    accesskey="&size-small.accesskey;"    oncommand="EditorSetFontSize('small')"    type="radio" name="2" observes="cmd_renderedHTMLEnabler"/>
  467.         <menuitem label="&size-mediumCmd.label;"   accesskey="&size-medium.accesskey;"   oncommand="EditorSetFontSize('medium')"   type="radio" name="2" observes="cmd_renderedHTMLEnabler"/>
  468.         <menuitem label="&size-largeCmd.label;"    accesskey="&size-large.accesskey;"    oncommand="EditorSetFontSize('large')"    type="radio" name="2" observes="cmd_renderedHTMLEnabler"/>
  469.         <menuitem label="&size-x-largeCmd.label;"  accesskey="&size-x-large.accesskey;"  oncommand="EditorSetFontSize('x-large')"  type="radio" name="2" observes="cmd_renderedHTMLEnabler"/>
  470.         <menuitem label="&size-xx-largeCmd.label;" accesskey="&size-xx-large.accesskey;" oncommand="EditorSetFontSize('xx-large')" type="radio" name="2" observes="cmd_renderedHTMLEnabler"/>
  471.       </menupopup>
  472.     </menu>
  473.  
  474.     <!-- Font style submenu -->
  475.     <menu id="fontStyleMenu" label="&fontStyleMenu.label;" 
  476.           accesskey="&formatstylemenu.accesskey;"
  477.           position="3">
  478.     <menupopup onpopupshowing="initFontStyleMenu(this)">
  479.       <menuitem label="&styleBoldCmd.label;"        accesskey="&stylebold.accesskey;"         observes="cmd_bold"          type="checkbox" key="boldkb"/>
  480.       <menuitem label="&styleItalicCmd.label;"      accesskey="&styleitalic.accesskey;"       observes="cmd_italic"        type="checkbox" key="italickb" />
  481.       <menuitem label="&styleUnderlineCmd.label;"   accesskey="&styleunderline.accesskey;"    observes="cmd_underline"     type="checkbox" key="underlinekb"/>
  482.       <menuitem label="&styleStrikeThruCmd.label;"  accesskey="&stylestrikethru.accesskey;"   observes="cmd_strikethrough" type="checkbox"/>
  483.       <menuitem label="&styleSuperscriptCmd.label;" accesskey="&stylesuperscript.accesskey;"  observes="cmd_superscript"   type="checkbox"/>
  484.       <menuitem label="&styleSubscriptCmd.label;"   accesskey="&stylesubscript.accesskey;"    observes="cmd_subscript"     type="checkbox"/>
  485.       <menuitem label="&fontFixedWidth.label;"      accesskey="&fontfixedwidth.accesskey;"    observes="cmd_tt"            type="checkbox" key="fixedwidthkb"/>
  486.       <menuitem label="&styleNonbreakingCmd.label;" accesskey="&stylenonbreaking.accesskey;"  observes="cmd_nobreak"       type="checkbox"/>
  487.       <menuseparator/>
  488.       <menuitem label="&styleEm.label;"             accesskey="&styleEm.accesskey;"           observes="cmd_em"            type="checkbox"/>
  489.       <menuitem label="&styleStrong.label;"         accesskey="&styleStrong.accesskey;"       observes="cmd_strong"        type="checkbox"/>
  490.       <menuitem label="&styleCite.label;"           accesskey="&styleCite.accesskey;"         observes="cmd_cite"          type="checkbox"/>
  491.       <menuitem label="&styleAbbr.label;"           accesskey="&styleAbbr.accesskey;"         observes="cmd_abbr"          type="checkbox"/>
  492.       <menuitem label="&styleAcronym.label;"        accesskey="&styleAcronym.accesskey;"      observes="cmd_acronym"       type="checkbox"/>
  493.       <menuitem label="&styleCode.label;"           accesskey="&styleCode.accesskey;"         observes="cmd_code"          type="checkbox"/>
  494.       <menuitem label="&styleSamp.label;"           accesskey="&styleSamp.accesskey;"         observes="cmd_samp"          type="checkbox"/>
  495.       <menuitem label="&styleVar.label;"            accesskey="&styleVar.accesskey;"          observes="cmd_var"           type="checkbox"/>
  496.     </menupopup>
  497.     </menu>
  498.     
  499.     <!-- Note: "cmd_fontColor" only monitors color state, it doesn't execute the command
  500.          (We should use "cmd_fontColorState" and "cmd_backgroundColorState" ?) -->
  501.     <menuitem id="fontColor" label="&formatFontColor.label;" 
  502.           accesskey="&formatfontcolor.accesskey;"
  503.           observes="cmd_fontColor"
  504.           oncommand="EditorSelectColor('Text', null);"
  505.           position="4"/>
  506.     <menuseparator id="removeSep" position="5"/>
  507.  
  508.     <!-- label and accesskey set at runtime from strings -->
  509.     <menuitem id="removeStylesMenuitem" key="removestyleskb"
  510.           observes="cmd_removeStyles"
  511.           position="6"/>
  512.     <menuitem id="removeLinksMenuitem" key="removelinkskb"
  513.           observes="cmd_removeLinks"
  514.           position="7"/>
  515.     <menuitem id="removeNamedAnchorsMenuitem"  label="&formatRemoveNamedAnchors.label;"
  516.           key="removenamedanchorskb"
  517.           accesskey="&formatRemoveNamedAnchors.accesskey;"
  518.           observes="cmd_removeNamedAnchors"
  519.           position="8"/>
  520.     <menuseparator id="tabSep" position="9"/>
  521.  
  522.     <!-- Note: the 'Init' menu methods for Paragraph, List, and Align
  523.          assume that the id = 'menu_'+tagName (the 'value' label),
  524.          except for the first ('none') item
  525.      -->
  526.     <!-- Paragraph Style submenu -->
  527.     <menu id="paragraphMenu" label="¶graphMenu.label;"
  528.           accesskey="&formatparagraphmenu.accesskey;"
  529.           position="10" onpopupshowing="InitParagraphMenu()">
  530.       <menupopup oncommand="doStatefulCommand('cmd_paragraphState', event.target.getAttribute('value'))">
  531.         <menuitem id="menu_bodyText"  type="radio" name="1" label="&bodyTextCmd.label;"             accesskey="&bodytext.accesskey;"            value=""      observes="cmd_renderedHTMLEnabler"/>
  532.         <menuitem id="menu_p"         type="radio" name="1" label="¶graphParagraphCmd.label;"   accesskey="¶graphparagraph.accesskey;"  value="p"     observes="cmd_renderedHTMLEnabler"/>
  533.         <menuitem id="menu_h1"        type="radio" name="1" label="&heading1Cmd.label;"             accesskey="&heading1.accesskey;"            value="h1"    observes="cmd_renderedHTMLEnabler"/>
  534.         <menuitem id="menu_h2"        type="radio" name="1" label="&heading2Cmd.label;"             accesskey="&heading2.accesskey;"            value="h2"    observes="cmd_renderedHTMLEnabler"/>
  535.         <menuitem id="menu_h3"        type="radio" name="1" label="&heading3Cmd.label;"             accesskey="&heading3.accesskey;"            value="h3"    observes="cmd_renderedHTMLEnabler"/>
  536.         <menuitem id="menu_h4"        type="radio" name="1" label="&heading4Cmd.label;"             accesskey="&heading4.accesskey;"            value="h4"    observes="cmd_renderedHTMLEnabler"/>
  537.         <menuitem id="menu_h5"        type="radio" name="1" label="&heading5Cmd.label;"             accesskey="&heading5.accesskey;"            value="h5"    observes="cmd_renderedHTMLEnabler"/>
  538.         <menuitem id="menu_h6"        type="radio" name="1" label="&heading6Cmd.label;"             accesskey="&heading6.accesskey;"            value="h6"    observes="cmd_renderedHTMLEnabler"/>
  539.         <menuitem id="menu_address"   type="radio" name="1" label="¶graphAddressCmd.label;"     accesskey="¶graphaddress.accesskey;"    value="address"  observes="cmd_renderedHTMLEnabler"/>   
  540.         <menuitem id="menu_pre"       type="radio" name="1" label="¶graphPreformatCmd.label;"   accesskey="¶graphpreformat.accesskey;"  value="pre"   observes="cmd_renderedHTMLEnabler"/>       
  541.       </menupopup>
  542.     </menu>
  543.  
  544.     <!-- List Style submenu -->
  545.     <menu id="listMenu" label="&formatlistMenu.label;"
  546.           accesskey="&formatlistmenu.accesskey;"
  547.           position="11" onpopupshowing="InitListMenu()">
  548.       <menupopup>
  549.         <menuitem id="menu_noList" type="radio" name="1" label="&noneCmd.label;"           accesskey="&none.accesskey;"           observes="cmd_removeList"/>
  550.         <menuitem id="menu_ul"     type="radio" name="1" label="&listBulletCmd.label;"     accesskey="&listbullet.accesskey;"     observes="cmd_ul"/>
  551.         <menuitem id="menu_ol"     type="radio" name="1" label="&listNumberedCmd.label;"   accesskey="&listnumbered.accesskey;"   observes="cmd_ol"/>
  552.         <menuitem id="menu_dt"     type="radio" name="1" label="&listTermCmd.label;"       accesskey="&listterm.accesskey;"       observes="cmd_dt"/>
  553.         <menuitem id="menu_dd"     type="radio" name="1" label="&listDefinitionCmd.label;" accesskey="&listdefinition.accesskey;" observes="cmd_dd"/>
  554.         <menuseparator/>
  555.         <menuitem id="listProps" label="&listProps.label;" accesskey="&listprops.accesskey;" observes="cmd_listProperties"/>
  556.       </menupopup>
  557.     </menu>
  558.     <menuseparator id="identingSep" position="12"/>
  559.  
  560.     <menuitem id="increaseIndent" label="&increaseIndent.label;"  accesskey="&increaseindent.accesskey;"  key="increaseindentkb"
  561.                 observes="cmd_indent" position="13"/>
  562.     <menuitem id="decreaseIndent" label="&decreaseIndent.label;"  accesskey="&decreaseindent.accesskey;"  key="decreaseindentkb"
  563.               observes="cmd_outdent"  position="14"/>
  564.  
  565.     <menu id="alignMenu" label="&alignMenu.label;" accesskey="&formatalignmenu.accesskey;"
  566.         onpopupshowing="InitAlignMenu()"
  567.         position="15">
  568.       <!-- Align submenu -->
  569.       <menupopup oncommand="doStatefulCommand('cmd_align', event.target.getAttribute('value'))">
  570.         <menuitem id="menu_left"    label="&alignLeft.label;"  accesskey="&alignleft.accesskey;"      type="radio" name="1" value="left"    observes="cmd_renderedHTMLEnabler"/>
  571.         <menuitem id="menu_center"  label="&alignCenter.label;"  accesskey="&aligncenter.accesskey;"  type="radio" name="1" value="center"  observes="cmd_renderedHTMLEnabler"/>
  572.         <menuitem id="menu_right"   label="&alignRight.label;"   accesskey="&alignright.accesskey;"   type="radio" name="1" value="right"   observes="cmd_renderedHTMLEnabler"/>
  573.         <menuitem id="menu_justify" label="&alignJustify.label;" accesskey="&alignjustify.accesskey;" type="radio" name="1" value="justify" observes="cmd_renderedHTMLEnabler"/>
  574.       </menupopup>
  575.     </menu>
  576.     <menuseparator id="tableSep" position="16"/>
  577.     <!-- Merge Table Menu and separator in Messenger Composer here -->
  578.     <!-- Merge property items here -->
  579.   </menupopup>
  580.  
  581.   <!-- Next 3 are items to append at the bottom of the formatMenuPopup -->
  582.   <!-- label and accesskey filled in during menu creation -->
  583.   <menuitem id="objectProperties"   oncommand="goDoCommand('cmd_objectProperties')"   observes="cmd_renderedHTMLEnabler"/>
  584.   <!-- Dont use 'observes', must call command correctly -->
  585.   <menuitem id="pageProperties"       label="&pageProperties.label;"       accesskey="&pageproperties.accesskey;"      
  586.             oncommand="goDoCommand('cmd_pageProperties')"  observes="cmd_renderedHTMLEnabler"/>
  587.   <menuitem id="colorsAndBackground"  label="&colorsAndBackground.label;"  accesskey="&colorsandbackground.accesskey;"
  588.             oncommand="goDoCommand('cmd_colorProperties')" observes="cmd_renderedHTMLEnabler"/>
  589.  
  590.   <menu id="tableMenu" label="&tableMenu.label;" accesskey="&tablemenu.accesskey;">
  591.     <menupopup  onpopupshowing="EditorInitTableMenu()">
  592.       <!-- From EditorCommandOverlay.xul (shared with context popup) -->
  593.       <menu id="tableInsertMenu" label="&tableInsertMenu.label;" accesskey="&tableinsertmenu.accesskey;">
  594.         <menupopup>
  595.           <menuitem label="&insertTableCmd.label;"    accesskey="&tabletable.accesskey;"        observes="cmd_InsertTable"/>
  596.           <menuseparator />
  597.           <menuitem label="&tableRowAbove.label;"     accesskey="&tablerow.accesskey;"          observes="cmd_InsertRowAbove"/>
  598.           <menuitem label="&tableRowBelow.label;"     accesskey="&tablerowbelow.accesskey;"     observes="cmd_InsertRowBelow"/>
  599.           <menuseparator />
  600.           <menuitem label="&tableColumnBefore.label;" accesskey="&tablecolumn.accesskey;"       observes="cmd_InsertColumnBefore"/>
  601.           <menuitem label="&tableColumnAfter.label;"  accesskey="&tablecolumnafter.accesskey;"  observes="cmd_InsertColumnAfter"/>
  602.           <menuseparator />
  603.           <menuitem label="&tableCellBefore.label;"   accesskey="&tablecell.accesskey;"         observes="cmd_InsertCellBefore"/>
  604.           <menuitem label="&tableCellAfter.label;"    accesskey="&tablecellafter.accesskey;"    observes="cmd_InsertCellAfter"/>
  605.         </menupopup>
  606.       </menu>
  607.       <menu id="tableSelectMenu" label="&tableSelectMenu.label;" accesskey="&tableselectmenu.accesskey;">
  608.         <menupopup id="tableSelectPopup">
  609.           <menuitem id="menu_SelectTable"    label="&tableTable.label;"    accesskey="&tabletable.accesskey;"    observes="cmd_SelectTable"    />
  610.           <menuitem id="menu_SelectRow"      label="&tableRow.label;"      accesskey="&tablerow.accesskey;"      observes="cmd_SelectRow"      />
  611.           <menuitem id="menu_SelectColumn"   label="&tableColumn.label;"   accesskey="&tablecolumn.accesskey;"   observes="cmd_SelectColumn"   />
  612.           <menuitem id="menu_SelectCell"     label="&tableCell.label;"     accesskey="&tablecell.accesskey;"     observes="cmd_SelectCell"     />
  613.           <menuitem id="menu_SelectAllCells" label="&tableAllCells.label;" accesskey="&tableallcells.accesskey;" observes="cmd_SelectAllCells" />
  614.         </menupopup>
  615.       </menu>
  616.       <menu id="tableDeleteMenu" label="&tableDeleteMenu.label;" accesskey="&tabledeletemenu.accesskey;">
  617.         <menupopup id="tableDeletePopup">
  618.           <menuitem id="menu_DeleteTable"         label="&tableTable.label;"        accesskey="&tabletable.accesskey;"          observes="cmd_DeleteTable"/>
  619.           <menuitem id="menu_DeleteRow"           label="&tableRows.label;"         accesskey="&tablerow.accesskey;"            observes="cmd_DeleteRow"/>
  620.           <menuitem id="menu_DeleteColumn"        label="&tableColumns.label;"      accesskey="&tablecolumn.accesskey;"         observes="cmd_DeleteColumn"/>
  621.           <menuitem id="menu_DeleteCell"          label="&tableCells.label;"        accesskey="&tablecell.accesskey;"           observes="cmd_DeleteCell"/>
  622.           <menuitem id="menu_DeleteCellContents"  label="&tableCellContents.label;" accesskey="&tablecellcontents.accesskey;"   observes="cmd_DeleteCellContents"/>
  623.         </menupopup>
  624.       </menu>
  625.       <menuseparator />
  626.       <!-- menu label is set in InitTableMenu -->
  627.       <menuitem id="menu_JoinTableCells"   label="&tableJoinCells.label;"   accesskey="&tablejoincells.accesskey;"   observes="cmd_JoinTableCells"/>
  628.       <menuitem id="menu_SlitTableCell"    label="&tableSplitCell.label;"   accesskey="&tablesplitcell.accesskey;"   observes="cmd_SplitTableCell"/>
  629.       <menuitem id="menu_ConvertToTable"   label="&convertToTable.label;"   accesskey="&converttotable.accesskey;"   observes="cmd_ConvertToTable"/>
  630.       <menuseparator />
  631.       <menuitem id="menu_TableOrCellColor" label="&tableOrCellColor.label;" accesskey="&tableOrCellColor.accesskey;" observes="cmd_TableOrCellColor"/>
  632.       <menuitem id="menu_tableProperties"  label="&tableProperties.label;"  accesskey="&tableProperties.accesskey;"  observes="cmd_editTable"/>
  633.     </menupopup>
  634.   </menu>
  635.  
  636.   <!-- this is only used in messengercompose.xul -->
  637.   <toolbarbutton type="menu" id="AlignPopupButton" observes="cmd_align"
  638.               tooltiptext="&AlignPopupButton.tooltip;">
  639.     <menupopup id="AlignPopup">
  640.       <menuitem id="AlignLeftItem" class="menuitem-iconic" label="&alignLeft.label;"
  641.                 oncommand="doStatefulCommand('cmd_align', 'left')"/>
  642.       <menuitem id="AlignCenterItem" class="menuitem-iconic" label="&alignCenter.label;"
  643.                 oncommand="doStatefulCommand('cmd_align', 'center')"/>
  644.       <menuitem id="AlignRightItem" class="menuitem-iconic" label="&alignRight.label;"
  645.                 oncommand="doStatefulCommand('cmd_align', 'right')"/>
  646.       <menuitem id="AlignJustifyItem" class="menuitem-iconic" label="&alignJustify.label;"
  647.                 oncommand="doStatefulCommand('cmd_align', 'justify')"/>
  648.     </menupopup>
  649.   </toolbarbutton>
  650.  
  651.   <!-- InsertPopupButton is used by messengercompose.xul -->
  652.   <toolbarbutton type="menu" id="InsertPopupButton" observes="cmd_insert"
  653.               tooltiptext="&InsertPopupButton.tooltip;">
  654.     <menupopup id="InsertPopup">
  655.       <menuitem id="InsertLinkItem" class="menuitem-iconic" observes="cmd_link"
  656.                 oncommand="goDoCommand('cmd_link')" label="&linkToolbarCmd.label;"/>
  657.       <menuitem id="InsertAnchorItem" class="menuitem-iconic" observes="cmd_anchor"
  658.                 oncommand="goDoCommand('cmd_anchor')" label="&anchorToolbarCmd.label;"/>
  659.       <menuitem id="InsertImageItem"  class="menuitem-iconic" observes="cmd_image"
  660.                 oncommand="goDoCommand('cmd_image')" label="&imageToolbarCmd.label;"/>
  661.       <menuitem id="InsertHRuleItem"  class="menuitem-iconic" observes="cmd_hline"
  662.                 oncommand="goDoCommand('cmd_hline')" label="&hruleToolbarCmd.label;"/>
  663.       <menuitem id="InsertTableItem"  class="menuitem-iconic" observes="cmd_table"
  664.                 oncommand="goDoCommand('cmd_table')" label="&tableToolbarCmd.label;"/>
  665.     </menupopup>
  666.   </toolbarbutton>
  667.  
  668.   <!-- Editor toolbar items -->
  669.   <!-- note that we override the submenu item label "Blank Window" with "New" used for the menu -->
  670.   <toolbarbutton id="newButton" class="toolbarbutton-1"
  671.                  label="&newMenu.label;" command="cmd_newEditor"
  672.                  tooltiptext="&newToolbarCmd.tooltip;"/>
  673.   <toolbarbutton id="openButton" class="toolbarbutton-1"
  674.                  label="&openToolbarCmd.label;" observes="cmd_open"
  675.                  tooltiptext="&openToolbarCmd.tooltip;"/>
  676.   <toolbarbutton id="saveButton" class="toolbarbutton-1" observes="cmd_save"
  677.                  tooltiptext="&saveToolbarCmd.tooltip;"/>
  678.   <toolbarbutton id="publishButton" class="toolbarbutton-1"
  679.                  observes="cmd_publish"
  680.                  tooltiptext="&publishToolbarCmd.tooltip;"/>
  681.   <toolbarbutton id="previewButton" class="toolbarbutton-1"
  682.                  label="&previewToolbarCmd.label;" observes="cmd_preview"
  683.                  tooltiptext="&previewToolbarCmd.tooltip;"/>
  684.  
  685.   <toolbarbutton id="printButton" type="menu-button" class="toolbarbutton-1"
  686.                  label="&printToolbarCmd.label;"
  687.                  tooltiptext="&printToolbarCmd.tooltip;"
  688.                  oncommand="if (event.target==this) goDoCommand('cmd_print');">
  689.     <menupopup id="printMenu">
  690.       <menuitem id="printMenuItemToolbar" accesskey="&fileprint.accesskey;" label="&printCmd.label;" default="true"
  691.                 oncommand="goDoCommand('cmd_print');"/>
  692.       <!-- 'printSetupToolbar' is merged in here from platformGlobalOverlay.xul -->
  693.     </menupopup>
  694.   </toolbarbutton>
  695.     
  696.   <toolbarbutton id="findButton" class="toolbarbutton-1"
  697.                  label="&findToolbarCmd.label;" observes="cmd_find"
  698.                  tooltiptext="&findToolbarCmd.tooltip;"/>
  699.   <toolbarbutton id="spellingButton" class="toolbarbutton-1" disabled="true"
  700.                  label="&spellToolbarCmd.label;" observes="cmd_spelling"
  701.                  tooltiptext="&spellToolbarCmd.tooltip;"/>
  702.   <toolbarbutton id="imageButton" class="toolbarbutton-1"
  703.                  label="&imageToolbarCmd.label;" observes="cmd_image"
  704.                  tooltiptext="&imageToolbarCmd.tooltip;"/>
  705.   <toolbarbutton id="hlineButton" class="toolbarbutton-1"
  706.                  label="&hruleToolbarCmd.label;" observes="cmd_hline"
  707.                  tooltiptext="&hruleToolbarCmd.tooltip;"/>
  708.   <toolbarbutton id="tableButton" class="toolbarbutton-1"
  709.                  label="&tableToolbarCmd.label;" observes="cmd_table"
  710.                  tooltiptext="&tableToolbarCmd.tooltip;"/>
  711.   <toolbarbutton id="linkButton" class="toolbarbutton-1"
  712.                  label="&linkToolbarCmd.label;" observes="cmd_link"
  713.                  tooltiptext="&linkToolbarCmd.tooltip;"/>
  714.   <toolbarbutton id="namedAnchorButton" class="toolbarbutton-1"
  715.                  label="&anchorToolbarCmd.label;" observes="cmd_anchor"
  716.                  tooltiptext="&anchorToolbarCmd.tooltip;"/>
  717.  
  718.   <!-- Formatting toolbar items. "value" are HTML tagnames, don't translate -->
  719.   <menulist class="toolbar-focustarget" id="ParagraphSelect" 
  720.     tooltiptext="&ParagraphSelect.tooltip;" crop="right">
  721.     <observes element="cmd_paragraphState" attribute="state" onbroadcast="onParagraphFormatChange(this.parentNode, 'cmd_paragraphState')"/>
  722.     <menupopup id="ParagraphPopup" oncommand="doStatefulCommand('cmd_paragraphState', event.target.value)">
  723.       <menuitem label="&bodyTextCmd.label;"            value=""/>
  724.       <menuitem label="¶graphParagraphCmd.label;"  value="p"/>
  725.       <menuitem label="&heading1Cmd.label;"            value="h1"/>
  726.       <menuitem label="&heading2Cmd.label;"            value="h2"/>
  727.       <menuitem label="&heading3Cmd.label;"            value="h3"/>
  728.       <menuitem label="&heading4Cmd.label;"            value="h4"/>
  729.       <menuitem label="&heading5Cmd.label;"            value="h5"/>
  730.       <menuitem label="&heading6Cmd.label;"            value="h6"/>
  731.       <menuitem label="¶graphAddressCmd.label;"    value="address"/>
  732.       <menuitem label="¶graphPreformatCmd.label;"  value="pre"/>
  733.     </menupopup>
  734.   </menulist>
  735.  
  736.   <!-- "value" are HTML tagnames, don't translate -->
  737.   <menulist class="toolbar-focustarget" id="FontFaceSelect" tooltiptext="&FontFaceSelect.tooltip;" crop="right">
  738.     <observes element="cmd_fontFace" attribute="state" onbroadcast="onFontFaceChange(this.parentNode, 'cmd_fontFace')"/>
  739.     <menupopup id="FontFacePopup" oncommand="doStatefulCommand('cmd_fontFace', event.target.value)">
  740.       <menuitem label="&fontVarWidth.label;"      value=""/>
  741.       <menuitem label="&fontFixedWidth.label;"    value="tt"/>
  742.       <menuseparator/>
  743.       <menuitem label="&fontHelveticaFont.label;" value="Helvetica, Arial, sans-serif"/>
  744.       <menuitem label="&fontTimes.label;"         value="Times New Roman, Times, serif"/>
  745.       <menuitem label="&fontCourier.label;"       value="Courier New, Courier, monospace"/>
  746.     </menupopup>
  747.   </menulist>  
  748.   
  749.   <menulist class="toolbar-focustarget" id="FontSizeSelect" oncommand="EditorSelectFontSize()"  tooltiptext="&FontSizeSelect.tooltip;" crop="right">
  750.     <observes element="cmd_fontSize" attribute="state" onbroadcast="onFontSizeChange(this.parentNode, 'cmd_fontSize')"/>
  751.     <menupopup>
  752.       <menuitem label="&size-xx-smallCmd.label;"/>
  753.       <menuitem label="&size-x-smallCmd.label;"/>
  754.       <menuitem label="&size-smallCmd.label;"/>
  755.       <menuitem label="&size-mediumCmd.label;"/>
  756.       <menuitem label="&size-largeCmd.label;"/>
  757.       <menuitem label="&size-x-largeCmd.label;"/>
  758.       <menuitem label="&size-xx-largeCmd.label;"/>
  759.     </menupopup>
  760.   </menulist>          
  761.  
  762.   <stack id="ColorButtons" align="center">
  763.     <observes element="cmd_fontColor"       attribute="state" onbroadcast="onFontColorChange()"/>
  764.     <observes element="cmd_backgroundColor" attribute="state" onbroadcast="onBackgroundColorChange()"/>
  765.     <box class="color-button" id="BackgroundColorButton"
  766.           onclick="EditorSelectColor('', event);"
  767.           tooltiptext="&BackgroundColorButton.tooltip;"/>
  768.     <box class="color-button" id="TextColorButton"
  769.           onclick="EditorSelectColor('Text', event);"
  770.           tooltiptext="&TextColorButton.tooltip;"/>
  771.   </stack>
  772.   <toolbarbutton id="HighlightColorButton" tooltip="aTooltip"
  773.           tooltiptext="&HighlightColorButton.tooltip;" command="cmd_highlight">
  774.     <observes element="cmd_highlight" attribute="state" onbroadcast="onHighlightColorChange()"/>
  775.     <observes element="cmd_highlight" attribute="collapsed"/>
  776.   </toolbarbutton>
  777.  
  778. <!-- A BUG IN CSS/BOXES MAKES THIS ASSERT WHEN CLASS= IS PRESENT AND WE TRY TO COLLAPSE THE TOOLBOX -->
  779.   <toolbarbutton id="DecreaseFontSizeButton" observes="cmd_decreaseFont"
  780.           tooltiptext="&decreaseFontSizeToolbarCmd.tooltip;"/>
  781.   <toolbarbutton id="IncreaseFontSizeButton" observes="cmd_increaseFont"
  782.           tooltiptext="&increaseFontSizeToolbarCmd.tooltip;"/>
  783.  
  784.   <toolbarbutton id="boldButton" type="checkbox" autoCheck="false" observes="cmd_bold"
  785.           tooltiptext="&boldToolbarCmd.tooltip;">
  786.     <observes element="cmd_bold" type="checkbox" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_bold')"/>
  787.   </toolbarbutton>
  788.   <toolbarbutton id="italicButton" type="checkbox" autoCheck="false" observes="cmd_italic"
  789.           tooltiptext="&italicToolbarCmd.tooltip;">
  790.     <observes element="cmd_italic" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_italic')"/>
  791.   </toolbarbutton>
  792.   <toolbarbutton id="underlineButton" type="checkbox" autoCheck="false" observes="cmd_underline"
  793.           tooltiptext="&underlineToolbarCmd.tooltip;">
  794.     <observes element="cmd_underline" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_underline')"/>
  795.   </toolbarbutton>
  796.  
  797.   <toolbarbutton id="ulButton" type="radio" group="lists" autoCheck="false" observes="cmd_ul"
  798.           tooltiptext="&bulletListToolbarCmd.tooltip;">
  799.       <observes element="cmd_ul" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_ul')"/>
  800.   </toolbarbutton>
  801.  
  802.   <toolbarbutton id="olButton" type="radio" group="lists" autoCheck="false" observes="cmd_ol"
  803.           tooltiptext="&numberListToolbarCmd.tooltip;">
  804.       <observes element="cmd_ol" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_ol')"/>
  805.   </toolbarbutton>
  806.  
  807.   <toolbarbutton id="outdentButton" observes="cmd_outdent"
  808.           tooltiptext="&outdentToolbarCmd.tooltip;"/>
  809.   <toolbarbutton id="indentButton" observes="cmd_indent"
  810.           tooltiptext="&indentToolbarCmd.tooltip;"/>
  811.  
  812.   <!-- alignment buttons -->
  813.   <toolbarbutton id="align-left-button" type="radio" group="align" autoCheck="false"
  814.                  oncommand="doStatefulCommand('cmd_align', 'left')"
  815.                  tooltiptext="&alignLeft.tooltip;" >
  816.     <observes element="cmd_align" attribute="state" 
  817.               onbroadcast="onStateButtonUpdate(this.parentNode, 'cmd_align', 'left')" />
  818.   </toolbarbutton>
  819.   <toolbarbutton id="align-center-button" type="radio" group="align" autoCheck="false"
  820.                  oncommand="doStatefulCommand('cmd_align', 'center')"
  821.                  tooltiptext="&alignCenter.tooltip;" >
  822.     <observes element="cmd_align" attribute="state" 
  823.               onbroadcast="onStateButtonUpdate(this.parentNode, 'cmd_align', 'center')"/>
  824.   </toolbarbutton>
  825.   <toolbarbutton id="align-right-button" type="radio" group="align" autoCheck="false"
  826.                  oncommand="doStatefulCommand('cmd_align', 'right')"
  827.                  tooltiptext="&alignRight.tooltip;" >
  828.     <observes element="cmd_align" attribute="state"
  829.               onbroadcast="onStateButtonUpdate(this.parentNode, 'cmd_align', 'right')"/>
  830.   </toolbarbutton>
  831.   <toolbarbutton id="align-justify-button" type="radio" group="align" autoCheck="false"
  832.                  oncommand="doStatefulCommand('cmd_align', 'justify')"
  833.                  tooltiptext="&alignJustify.tooltip;" >
  834.     <observes element="cmd_align" attribute="state"
  835.               onbroadcast="onStateButtonUpdate(this.parentNode, 'cmd_align', 'justify')"/>
  836.   </toolbarbutton>
  837.   
  838.   <!-- Edit Mode toolbar -->
  839.   <tab id="NormalModeButton"   class="tab-bottom edit-mode _plain" type="text" selected="1" label="&NormalModeTab.label;"  oncommand="goDoCommand('cmd_NormalMode');"
  840.           tooltiptext="&NormalMode.tooltip;"/>
  841.   <tab id="TagModeButton"      class="tab-bottom edit-mode _plain" type="text" selected="0" label="&AllTagsMode.label;"    oncommand="goDoCommand('cmd_AllTagsMode');"
  842.           tooltiptext="&AllTagsMode.tooltip;"/>
  843.   <tab id="SourceModeButton"   class="tab-bottom edit-mode _plain" type="text" selected="0" label="&SourceMode.label;"     oncommand="goDoCommand('cmd_HTMLSourceMode');"
  844.           tooltiptext="&HTMLSourceMode.tooltip;" dir="&SourceTabDirection;"/>
  845.   <tab id="PreviewModeButton"  class="tab-bottom edit-mode _plain" type="text" selected="0" label="&PreviewMode.label;"    oncommand="goDoCommand('cmd_PreviewMode');"
  846.           tooltiptext="&PreviewMode.tooltip;"/>
  847.  
  848.   <!-- Paste as quotation is used by mail compose,
  849.        but in composer it has to go in the debug menu
  850.    -->
  851.   <menuitem id="menu_pasteQuote" accesskey="&editpastequotation.accesskey;" observes="cmd_pasteQuote"/>
  852.  
  853.   <!-- DEBUG only -->
  854.   <!-- Removing debug menu
  855.   <menu id="debugMenu" label="&debugMenu.label;">
  856.   <menupopup>
  857.     <menuitem label="&newEditorTestPage.label;" oncommand="window.openDialog('chrome://editor/content','_blank','chrome,all,dialog=no','chrome://editor/content/EditorInitPage.html')"/>
  858.     <menuitem label="&textEditorCmd.label;"     oncommand="EditorNewPlaintext();" />
  859.     <menuitem label="&outputTextCmd.label;"
  860.            oncommand="EditorGetText()"/>
  861.     <menuitem label="&outputHTMLCmd.label;"
  862.            oncommand="EditorGetHTML()"/>
  863.     <menuseparator />
  864.     <menuitem label="&pasteAsQuotationCmd.label;"
  865.            accesskey="&editpastequotation.accesskey;"
  866.            oncommand="goDoCommand('cmd_pasteQuote')"/>
  867.     <menuitem label="&editRewrapCmd.label;"
  868.            oncommand="try { GetCurrentEditor().rewrap(true); } catch (e) {}"/>
  869.     <menuitem label="&editStripQuotesCmd.label;"
  870.            oncommand="try { GetCurrentEditor().stripCites(); } catch (e) {}"/>
  871.     <menuitem label="&insertTextCmd.label;"
  872.            oncommand="EditorInsertText('All good things come to those who wait. ')"/>
  873.     <menuitem id="menu_checkLinks" observes="cmd_checkLinks"
  874.      label="&checkLinksCmd.label;"/>
  875.     <menuseparator />
  876.       <menu     accesskey="&insertformmenu.accesskey;"   id="insertFormMenu"        label="&insertFormMenu.label;">
  877.         <menupopup>
  878.           <menuitem accesskey="&insertform.accesskey;"        command="cmd_form"        label="&insertFormCmd.label;"/>
  879.           <menuseparator/>
  880.           <menuitem accesskey="&insertinputtag.accesskey;"    command="cmd_inputtag"    label="&insertInputTagCmd.label;"/>
  881.           <menuitem accesskey="&insertinputimage.accesskey;"  command="cmd_inputimage"  label="&insertInputImageCmd.label;"/>
  882.           <menuitem accesskey="&inserttextarea.accesskey;"    command="cmd_textarea"    label="&insertTextAreaCmd.label;"/>
  883.           <menuitem accesskey="&insertselect.accesskey;"      command="cmd_select"      label="&insertSelectCmd.label;"/>
  884.           <menuitem accesskey="&insertbutton.accesskey;"      command="cmd_button"      label="&insertButtonCmd.label;"/>
  885.           <menuitem accesskey="&insertlabel.accesskey;"       command="cmd_label"       label="&insertLabelCmd.label;"/>
  886.           <menuitem accesskey="&insertfieldset.accesskey;"    command="cmd_fieldset"    label="&insertFieldSetCmd.label;"/>
  887.           <menuseparator/>
  888.           <menuitem accesskey="&insertisindex.accesskey;"     command="cmd_isindex"     label="&insertIsIndexCmd.label;"/>
  889.         </menupopup>
  890.       </menu>
  891.     <menuitem label="&testSelectionCmd.label;"
  892.            oncommand="EditorTestSelection()"/>
  893.     <menuitem label="&testTableLayoutCmd.label;"
  894.            oncommand="EditorTestTableLayout()"/>
  895.     <menuitem label="&showEmbeddedCmd.label;"
  896.            oncommand="EditorShowEmbeddedObjects()"/>
  897.     <menuitem label="&dumpContentCmd.label;"
  898.            oncommand="EditorDumpContent()"/>
  899.     <menuitem label="&testDocumentCmd.label;"
  900.            oncommand="EditorTestDocument()"/>
  901.     <menuitem label="&runUnitTestsCmd.label;"
  902.            oncommand="EditorUnitTests()"/>
  903.     <menuseparator />
  904.     <menuitem label="&dumpUndoStack.label;"
  905.            oncommand="DumpUndoStack()"/>
  906.     <menuitem label="&dumpRedoStack.label;"
  907.            oncommand="DumpRedoStack()"/>
  908.     <menuseparator />
  909.     <menuitem label="&startLogCmd.label;"
  910.            oncommand="EditorStartLog()"/>
  911.     <menuitem label="&stopLogCmd.label;"
  912.            oncommand="EditorStopLog()"/>
  913.     <menuitem label="&runLogCmd.label;"
  914.            oncommand="EditorRunLog()"/>
  915.     <menuseparator />
  916.     <menuitem label="&setFocusCmd.label;"
  917.             accesskey="&toolsetfocus.accesskey;"
  918.             oncommand="window.focus()"/>
  919.   </menupopup>
  920.   </menu>
  921.   -->
  922.   <!-- end DEBUG only -->
  923.  
  924. </overlay>
  925.