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 / navigator / viewSourceOverlay.xul < prev   
Extensible Markup Language  |  2003-06-08  |  9KB  |  186 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> 
  2. <?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?> 
  3.  
  4. <!--
  5.    - The contents of this file are subject to the Mozilla Public
  6.    - License Version 1.1 (the "License"); you may not use this file
  7.    - except in compliance with the License. You may obtain a copy of
  8.    - the License at http://www.mozilla.org/MPL/
  9.    - 
  10.    - Software distributed under the License is distributed on an "AS
  11.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  12.    - implied. See the License for the specific language governing
  13.    - rights and limitations under the License.
  14.    -
  15.    - The Original Code is mozilla.org view-source front-end.
  16.    -
  17.    - The Initial Developer of the Original Code is mozilla.org.
  18.    - Portions created by the Initial Developer are Copyright (C) 2002
  19.    - the Initial Developer. All Rights Reserved.
  20.    -
  21.    - Contributor(s):
  22.    -   Doron Rosenberg (doronr@naboonline.com)
  23.    -   Roger B. Sidje (rbs@maths.uq.edu.au)
  24.    -
  25.    - Alternatively, the contents of this file may be used under the
  26.    - terms of the GNU General Public License Version 2 or later (the
  27.    - "GPL"), in which case the provisions of the GPL are applicable 
  28.    - instead of those above.  If you wish to allow use of your 
  29.    - version of this file only under the terms of the GPL and not to
  30.    - allow others to use your version of this file under the MPL,
  31.    - indicate your decision by deleting the provisions above and
  32.    - replace them with the notice and other provisions required by
  33.    - the GPL.  If you do not delete the provisions above, a recipient
  34.    - may use your version of this file under either the MPL or the
  35.    - GPL.
  36.   -->
  37.  
  38. <?xul-overlay href="chrome://navigator/content/navigatorOverlay.xul"?>
  39.  
  40. <!DOCTYPE overlay [
  41. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  42. %brandDTD;
  43. <!ENTITY % sourceDTD SYSTEM "chrome://navigator/locale/viewSource.dtd" >
  44. %sourceDTD;
  45. <!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
  46. %navigatorDTD;
  47. <!ENTITY % contentAreaCommandsDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
  48. %contentAreaCommandsDTD;
  49. ]>
  50.  
  51. <overlay id="viewSourceOverlay"
  52.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  53.   <script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
  54.   <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  55.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  56.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  57.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
  58.   <script type="application/x-javascript" src="chrome://communicator/content/printing.js"/>
  59.   <script type="application/x-javascript" src="chrome://navigator/content/browser.js"/>
  60.   <script type="application/x-javascript" src="chrome://navigator/content/viewsource.js"/>
  61.   <script type="application/x-javascript" src="chrome://communicator/content/findUtils.js"/>
  62.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
  63.  
  64.   <commandset id="commands">
  65.     <commandset id="globalEditMenuItems"/>
  66.     <commandset id="selectEditMenuItems"/>
  67.     <commandset id="clipboardEditMenuItems"/>
  68.     <commandset id="viewSourceMenuItems">
  69.       <command id="cmd_close" oncommand="ViewSourceClose()"/>
  70.       <command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
  71.       <command id="cmd_editPage" oncommand="ViewSourceEditPage();"/>
  72.     </commandset>
  73.   </commandset>
  74.  
  75.   <stringbundleset id="viewSource-stringbundleset">
  76.     <stringbundle id="bundle_viewZoom"/>
  77.     <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
  78.   </stringbundleset>
  79.  
  80.   <!-- keys are appended from the overlay -->
  81.   <keyset id="viewSourceKeys">
  82.     <!-- File Menu -->
  83.     <key id="key_newNavigator"/>
  84.     <key id="key_newBlankPage"/>
  85.     <key id="key_savePage"     key="&savePageCmd.commandkey;" command="cmd_savePage" modifiers="accel"/>
  86.     <key id="key_editPage"     key="&editPageCmd.commandkey;" command="Browser:EditPage" modifiers="accel"/>
  87.     <key id="printKb"          key="&printCmd.commandkey;" command="Browser:Print"  modifiers="accel"/>
  88.     <key id="key_close"/>
  89.  
  90.     <!-- Edit Menu -->
  91.     <key id="key_undo"/>
  92.     <key id="key_redo"/>
  93.     <key id="key_cut"/>
  94.     <key id="key_copy"/>
  95.     <key id="key_paste"/>
  96.     <key id="key_delete"/>
  97.     <key id="key_selectAll"/>
  98.     <key id="key_find"         key="&findOnCmd.commandkey;" command="Browser:Find" modifiers="accel"/>
  99.     <key id="key_findAgain"    key="&findAgainCmd.commandkey;" command="Browser:FindAgain" modifiers="accel"/>
  100.     <key id="key_findNext"     key="&findPrevCmd.commandkey;"  command="Browser:FindPrev"  modifiers="accel, shift"/>
  101.     <key keycode="&findAgainCmd.commandkey2;" command="Browser:FindAgain"/>
  102.     <key keycode="&findPrevCmd.commandkey2;"  command="Browser:FindPrev"  modifiers="shift"/>
  103.  
  104.     <keyset id="viewZoomKeys"/>
  105.   </keyset>
  106.  
  107.   <!-- context menu -->
  108.   <popupset id="viewSourceContextSet">
  109.     <popup id="viewSourceContextMenu">
  110.       <menuitem label="&findNextCmd.label;" accesskey="&findNextCmd.accesskey;"  command="Browser:FindAgain"/>
  111.       <menuseparator/>
  112.       <menuitem id="menu_copy_cm" command="cmd_copy"
  113.                 label="©Cmd.label;" accesskey="©Cmd.accesskey;"/>
  114.       <menuseparator/>
  115.       <menuitem id="menu_selectAll_cm" command="cmd_selectAll"
  116.                 label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"/>
  117.     </popup>
  118.   </popupset>
  119.  
  120.   <!-- Menu --> 
  121.   <toolbox id="viewSource-toolbox">
  122.     <menubar id="viewSource-main-menubar">
  123.  
  124.       <menu id="menu_File">
  125.         <menupopup id="filemenu-popup">
  126.           <menu id="menu_New">
  127.             <menupopup id="menu_NewPopup">
  128.               <menuitem id="menu_newNavigator"/>
  129.               <menuitem id="menu_newEditor"/>
  130.             </menupopup>
  131.           </menu>
  132.           <menuseparator/>
  133.           <menuitem id="menu_close"/>
  134.           <menuitem key="key_savePage" command="cmd_savePage"
  135.                     label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
  136.           <menuseparator/>
  137.           <menuitem key="key_editPage" command="cmd_editPage"
  138.                     label="&editPageCmd.label;" accesskey="&editPageCmd.accesskey;"/>
  139.           <menuseparator/>
  140.           <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="Browser:Print"/>     
  141.           <menuitem id="printSetupMenuItem" label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="Browser:PrintSetup"/>
  142.         </menupopup>
  143.       </menu>
  144.  
  145.       <menu id="menu_Edit">
  146.         <menupopup>
  147.           <menuitem id="menu_undo"/>   
  148.           <menuitem id="menu_redo"/>
  149.           <menuseparator/>
  150.           <menuitem id="menu_cut"/>
  151.           <menuitem id="menu_copy"/>
  152.           <menuitem id="menu_paste"/>
  153.           <menuitem id="menu_delete"/>
  154.           <menuseparator/>
  155.           <menuitem id="menu_selectAll"/>
  156.           <menuseparator /> 
  157.           <menuitem id="menu_find" key="key_find" command="Browser:Find"
  158.                     label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;"/>
  159.           <menuitem id="menu_findAgain" key="key_findAgain" command="Browser:FindAgain"
  160.                     label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;"/>
  161.           <menuitem id="menu_findPrev" key="key_findPrev" command="Browser:FindPrev"
  162.                     label="&findPrevCmd.label;" accesskey="&findPrevCmd.accesskey;"/>
  163.         </menupopup>
  164.       </menu>
  165.  
  166.       <menu id="menu_View">
  167.         <menupopup>
  168.           <menu id="menu_textZoom"/>  
  169.           <menuseparator/>
  170. <!--      <menuitem key="key_viewInfo" observes="View:PageInfo"
  171.                     label="&pageInfoCmd.label;" accesskey="&pageInfoCmd.accesskey;"/>
  172.           <menuseparator id="file_moduleSeparator"/>-->
  173.           <menu id="charsetMenu"/>
  174.           <menuitem id="menu_wrapLongLines" type="checkbox" oncommand="wrapLongLines()"
  175.                     label="&menu_wrapLongLines.title;" accesskey="&menu_wrapLongLines.accesskey;"/>
  176.           <menuitem type="checkbox" id="menu_highlightSyntax" oncommand="highlightSyntax();"
  177.                     label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/>
  178.         </menupopup>
  179.       </menu>
  180.  
  181.       <menu id="menu_Help"/>
  182.     </menubar>  
  183.   </toolbox>
  184.  
  185. </overlay>
  186.