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 / EditorContextMenuOverlay.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  8KB  |  134 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) 2000 Netscape Communications Corporation. All
  19.    - Rights Reserved.
  20.    - 
  21.    - Contributor(s):
  22.    -   Daniel Glazman (glazman@netscape.com)
  23.    -   Charles Manske (cmanske@netscape.com)
  24.   -->
  25.  
  26. <!DOCTYPE window SYSTEM "chrome://editor/locale/editorOverlay.dtd">
  27.  
  28. <overlay id="ComposerContextMenuOverlay"
  29.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  30.  
  31. <script type="application/x-javascript" src="chrome://editor/content/EditorContextMenu.js"/>
  32. <script type="application/x-javascript" src="chrome://editor/content/StructBarContextMenu.js"/>
  33.  
  34. <popupset id="editorContentContextSet">
  35.  <popup id="editorContentContext"   
  36.    onpopupshowing="EditorFillContextMenu(event, this);"> 
  37.     <menuitem id="menu_undo_cm"   label="&undoCmd.label;" accesskey="&undo.accesskey;"
  38.       observes="cmd_undo" oncommand="goDoCommand('cmd_undo')"/>
  39.     <menuitem id="menu_redo_cm"   label="&redoCmd.label;" accesskey="&redo.accesskey;"
  40.       observes="cmd_redo"  oncommand="goDoCommand('cmd_redo')"/>
  41.     <menuseparator id="undoredo-separator"/>
  42.     
  43.     <!-- In these commands, the "observes" is needed for proper command disabling,
  44.          but the "oncommand" is still needed since we can't get it from global overlay -->
  45.     <menuitem id="menu_cut_cm"    label="&cutCmd.label;"    accesskey="&cut.accesskey;"
  46.       observes="cmd_cut" oncommand="goDoCommand('cmd_cut')"/>
  47.     <menuitem id="menu_copy_cm"   label="©Cmd.label;"   accesskey="©.accesskey;"
  48.       observes="cmd_copy" oncommand="goDoCommand('cmd_copy')"/>
  49.     <menuitem id="menu_paste_cm"  label="&pasteCmd.label;"  accesskey="&paste.accesskey;"
  50.       observes="cmd_paste" oncommand="goDoCommand('cmd_paste')"/>
  51.     <menuitem id="menu_pasteNoFormatting_cm" observes="cmd_pasteNoFormatting"/>
  52.     <menuitem id="menu_delete_cm" label="&deleteCmd.label;" accesskey="&delete.accesskey;"
  53.       observes="cmd_delete" oncommand="goDoCommand('cmd_delete')"/>
  54.     <menuseparator id="edit-separator"/>
  55.     <menuitem id="menu_selectAll_cm" label="&selectAllCmd.label;" accesskey="&selectall.accesskey;" 
  56.           observes="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
  57.     <menuseparator id="selectAll-separator"/>
  58.     
  59.     <!-- label and accesskey set at runtime from strings -->
  60.     <menuitem id="removeStylesMenuitem_cm"
  61.           observes="cmd_removeStyles"/>
  62.     <menuitem id="createLink_cm" label="&createLinkCmd.label;" accesskey="&createlink.accesskey;"
  63.           observes="cmd_link" />
  64.     <!-- label and accesskey set at runtime from strings -->
  65.     <menuitem id="removeLinksMenuitem_cm" observes="cmd_removeLinks"/>
  66.     <menuitem id="removeNamedAnchorsMenuitem_cm"  label="&formatRemoveNamedAnchors.label;"   
  67.           observes="cmd_removeNamedAnchors"/>
  68.     <menuseparator id="styles-separator"/>
  69.  
  70.     <!-- label and accesskey are set in InitObjectProperties -->
  71.     <menuitem id="objectProperties_cm" observes="cmd_objectProperties"/>
  72.     <menuitem id="editLink_cm" label="&editLinkCmd.label;" accesskey="&editlink.accesskey;" observes="cmd_editLink"/>
  73.     <menuseparator id="property-separator"/>
  74.  
  75.     <!-- Can't get submenus to load from a shared overlay -->
  76.     <menu id="tableInsertMenu_cm" label="&tableInsertMenu2.label;" accesskey="&tableinsertmenu.accesskey;">
  77.       <menupopup>
  78.         <menuitem label="&insertTableCmd.label;"    accesskey="&tabletable.accesskey;"        observes="cmd_InsertTable"/>
  79.         <menuseparator />
  80.         <menuitem label="&tableRowAbove.label;"     accesskey="&tablerow.accesskey;"          observes="cmd_InsertRowAbove"/>
  81.         <menuitem label="&tableRowBelow.label;"     accesskey="&tablerowbelow.accesskey;"     observes="cmd_InsertRowBelow"/>
  82.         <menuseparator />
  83.         <menuitem label="&tableColumnBefore.label;" accesskey="&tablecolumn.accesskey;"       observes="cmd_InsertColumnBefore"/>
  84.         <menuitem label="&tableColumnAfter.label;"  accesskey="&tablecolumnafter.accesskey;"  observes="cmd_InsertColumnAfter"/>
  85.         <menuseparator />
  86.         <menuitem label="&tableCellBefore.label;"   accesskey="&tablecell.accesskey;"         observes="cmd_InsertCellBefore"/>
  87.         <menuitem label="&tableCellAfter.label;"    accesskey="&tablecellafter.accesskey;"    observes="cmd_InsertCellAfter"/>
  88.       </menupopup>
  89.     </menu>
  90.     <menu id="tableSelectMenu_cm" label="&tableSelectMenu2.label;" accesskey="&tableselectmenu.accesskey;">
  91.       <menupopup>
  92.         <menuitem id="menu_SelectTable"    label="&tableTable.label;"    accesskey="&tabletable.accesskey;"    observes="cmd_SelectTable"    />
  93.         <menuitem id="menu_SelectRow"      label="&tableRow.label;"      accesskey="&tablerow.accesskey;"      observes="cmd_SelectRow"      />
  94.         <menuitem id="menu_SelectColumn"   label="&tableColumn.label;"   accesskey="&tablecolumn.accesskey;"   observes="cmd_SelectColumn"   />
  95.         <menuitem id="menu_SelectCell"     label="&tableCell.label;"     accesskey="&tablecell.accesskey;"     observes="cmd_SelectCell"     />
  96.         <menuitem id="menu_SelectAllCells" label="&tableAllCells.label;" accesskey="&tableallcells.accesskey;" observes="cmd_SelectAllCells" />
  97.       </menupopup>
  98.     </menu>
  99.     <menu id="tableDeleteMenu_cm" label="&tableDeleteMenu2.label;" accesskey="&tabledeletemenu.accesskey;">
  100.       <menupopup>
  101.         <menuitem id="menu_DeleteTable"         label="&tableTable.label;"        accesskey="&tabletable.accesskey;"          observes="cmd_DeleteTable"/>
  102.         <menuitem id="menu_DeleteRow"           label="&tableRows.label;"         accesskey="&tablerow.accesskey;"            observes="cmd_DeleteRow"/>
  103.         <menuitem id="menu_DeleteColumn"        label="&tableColumns.label;"      accesskey="&tablecolumn.accesskey;"         observes="cmd_DeleteColumn"/>
  104.         <menuitem id="menu_DeleteCell"          label="&tableCells.label;"        accesskey="&tablecell.accesskey;"           observes="cmd_DeleteCell"/>
  105.         <menuitem id="menu_DeleteCellContents"  label="&tableCellContents.label;" accesskey="&tablecellcontents.accesskey;"   observes="cmd_DeleteCellContents"/>
  106.       </menupopup>
  107.     </menu>
  108.     <!-- menu label is set in InitTableMenu -->
  109.     <menuitem id="joinTableCells_cm"   label="&tableJoinCells.label;" accesskey="&tablejoincells.accesskey;" observes="cmd_JoinTableCells"/>
  110.     <menuitem id="splitTableCell_cm"   label="&tableSplitCell.label;" accesskey="&tablesplitcell.accesskey;" observes="cmd_SplitTableCell"/>
  111.     <menuitem id="tableOrCellColor_cm" label="&tableOrCellColor.label;" accesskey="&tableOrCellColor.accesskey;" observes="cmd_TableOrCellColor"/>
  112.  </popup>
  113.  
  114.  <popup id="structToolbarContext">
  115.    <menuitem id="structSelect"     label="&structSelect.label;"
  116.                                    accesskey="&structSelect.accesskey;"
  117.                                    oncommand="StructSelectTag()"/>
  118.    <menuseparator/>
  119.    <menuitem id="structRemoveTag"  label="&structRemoveTag.label;"
  120.                                    accesskey="&structRemoveTag.accesskey;"
  121.                                    oncommand="StructRemoveTag()"/>
  122.    <menuitem id="structChangeTag"  label="&structChangeTag.label;"
  123.                                    accesskey="&structChangeTag.accesskey;"
  124.                                    oncommand="StructChangeTag()"/>
  125.    <menuseparator/>
  126.    <menuitem id="advancedPropsTag" label="&advancedPropertiesCmd.label;"
  127.                                    accesskey="&advancedproperties.accesskey;"
  128.                                    oncommand="OpenAdvancedProperties()"/>
  129.  </popup>
  130.  
  131. </popupset>
  132.  
  133. </overlay>
  134.