home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / phoenx05.zip / phoenix / chrome / browser.jar / content / browser / viewSourceOverlay.xul < prev   
Extensible Markup Language  |  2002-10-31  |  6KB  |  125 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> 
  2. <?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?> 
  3.  
  4.  
  5. <?xul-overlay href="chrome://navigator/content/navigatorOverlay.xul"?>
  6.  
  7. <!DOCTYPE overlay [
  8. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  9. %brandDTD;
  10. <!ENTITY % sourceDTD SYSTEM "chrome://browser/locale/viewSource.dtd" >
  11. %sourceDTD;
  12. <!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
  13. %navigatorDTD;
  14. <!ENTITY % contentAreaCommandsDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
  15. %contentAreaCommandsDTD;
  16. ]>
  17.  
  18. <overlay id="viewSourceOverlay"
  19.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  20.   <script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
  21.   <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  22.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  23.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
  24.   <script type="application/x-javascript" src="chrome://navigator/content/browser.js"/>
  25.   <script type="application/x-javascript" src="chrome://browser/content/viewsource.js"/>
  26.   <script type="application/x-javascript" src="chrome://communicator/content/findUtils.js"/>
  27.   <script type="application/x-javascript" src="chrome://browser/content/contentAreaUtils.js"/>
  28.  
  29.   <commandset id="commands">
  30.     <commandset id="globalEditMenuItems"/>
  31.     <commandset id="selectEditMenuItems"/>
  32.     <commandset id="clipboardEditMenuItems"/>
  33.     <commandset id="viewSourceMenuItems">
  34.       <command id="cmd_highlightSyntax" oncommand="highlightSyntax();"/>
  35.       <command id="cmd_wrapLongLines" oncommand="wrapLongLines()"/>
  36.       <command id="cmd_close" oncommand="ViewSourceClose()"/>
  37.       <command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
  38.       <command id="cmd_editPage" oncommand="ViewSourceEditPage();"/>
  39.     </commandset>
  40.   </commandset>
  41.  
  42.   <stringbundleset id="viewSource-stringbundleset">
  43.     <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
  44.   </stringbundleset>
  45.  
  46.   <!-- keys are appended from the overlay -->
  47.   <keyset id="viewSourceKeys">
  48.     <!-- File Menu -->
  49.     <key id="key_savePage"     key="&savePageCmd.commandkey;" command="cmd_savePage" modifiers="accel"/>
  50.     <key id="printKb"          key="&printCmd.commandkey;" command="Browser:Print"  modifiers="accel"/>
  51.     <key id="key_close"/>
  52.  
  53.     <!-- Edit Menu -->
  54.     <key id="key_undo"/>
  55.     <key id="key_redo"/>
  56.     <key id="key_cut"/>
  57.     <key id="key_copy"/>
  58.     <key id="key_paste"/>
  59.     <key id="key_delete"/>
  60.     <key id="key_selectAll"/>
  61.     <key id="key_find"         key="&findOnCmd.commandkey;" command="Browser:Find" modifiers="accel"/>
  62.     <key id="key_findAgain"    key="&findAgainCmd.commandkey;" command="Browser:FindAgain" modifiers="accel"/>
  63.   </keyset>
  64.  
  65.   <!-- context menu -->
  66.   <popupset id="viewSourceContextSet">
  67.     <popup id="viewSourceContextMenu">
  68.       <menuitem label="&findNextCmd.label;" accesskey="&findNextCmd.accesskey;"  command="Browser:FindAgain"/>
  69.       <menuseparator/>
  70.       <menuitem id="menu_copy_cm" command="cmd_copy"
  71.                 label="©Cmd.label;" accesskey="©Cmd.accesskey;"/>
  72.       <menuseparator/>
  73.       <menuitem id="menu_selectAll_cm" command="cmd_selectAll"
  74.                 label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"/>
  75.     </popup>
  76.   </popupset>
  77.  
  78.   <!-- Menu --> 
  79.   <toolbox id="viewSource-toolbox">
  80.     <menubar id="viewSource-main-menubar">
  81.  
  82.       <menu label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
  83.         <menupopup id="filemenu-popup">
  84.           <menuitem key="key_savePage" command="cmd_savePage"
  85.                     label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
  86.           <menuitem key="printKb" command="Browser:Print"
  87.                     label="&printCmd.label;" accesskey="&printCmd.accesskey;"/>
  88.           <menuseparator/>
  89.           <menuitem id="menu_close"/>
  90.         </menupopup>
  91.       </menu>
  92.  
  93.       <menu id="menu_Edit">
  94.         <menupopup>
  95.           <menuitem id="menu_undo"/>   
  96.           <menuitem id="menu_redo"/>
  97.           <menuseparator/>
  98.           <menuitem id="menu_cut"/>
  99.           <menuitem id="menu_copy"/>
  100.           <menuitem id="menu_paste"/>
  101.           <menuitem id="menu_delete"/>
  102.           <menuseparator/>
  103.           <menuitem id="menu_selectAll"/>
  104.           <menuseparator /> 
  105.           <menuitem id="menu_find" key="key_find" command="Browser:Find"
  106.                     label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;"/>
  107.           <menuitem id="menu_findAgain" key="key_findAgain" command="Browser:FindAgain"
  108.                     label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;"/>
  109.         </menupopup>
  110.       </menu>
  111.  
  112.       <menu label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  113.         <menupopup>
  114.           <menu id="charsetMenu"/>
  115.           <menuitem id="menu_wrapLongLines" type="checkbox" command="cmd_wrapLongLines"
  116.                     label="&menu_wrapLongLines.title;" accesskey="&menu_wrapLongLines.accesskey;"/>
  117.           <menuitem type="checkbox" command="cmd_highlightSyntax"
  118.                     label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/>
  119.         </menupopup>
  120.       </menu>
  121.     </menubar>  
  122.   </toolbox>
  123.  
  124. </overlay>
  125.