home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / comm.jar / content / navigator / viewSource.xul < prev   
Encoding:
Extensible Markup Language  |  2001-07-09  |  7.1 KB  |  164 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 viewsource frontend.
  16.    - 
  17.    - The Initial Developer of the Original Code is Netscape
  18.    - Communications Corporation.  Portions created by Netscape are
  19.    - Copyright (C) 2000 Netscape Communications Corporation.  All
  20.    - Rights Reserved.
  21.    - 
  22.    - Contributor(s):
  23.    -     Doron Rosenberg (doronr@naboonline.com)
  24.   -->
  25.  
  26. <?xul-overlay href="chrome://navigator/content/navigatorOverlay.xul"?>
  27.  
  28. <!DOCTYPE window [
  29. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  30. %brandDTD;
  31. <!ENTITY % sourceDTD SYSTEM "chrome://navigator/locale/viewSource.dtd" >
  32. %sourceDTD;
  33. <!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
  34. %navigatorDTD;
  35. <!ENTITY % contentAreaCommandsDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
  36. %contentAreaCommandsDTD;
  37. ]>
  38.  
  39. <window id="main-window" xmlns:html="http://www.w3.org/1999/xhtml"
  40.      xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  41.     onload="onLoadViewSource();"
  42.     contenttitlesetting="true"
  43.     title="&mainWindow.title;" 
  44.     titlemodifier="&mainWindow.titlemodifier;" 
  45.     titlepreface="&mainWindow.preface;"
  46.     titlemenuseparator ="&mainWindow.titlemodifierseperator;"  
  47.     windowtype="navigator:view-source"
  48.     orient="vertical" width="640" height="480"
  49.     screenX="10" screenY="10"
  50.     persist="screenX screenY width height sizemode">
  51.  
  52.   <script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
  53.   <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  54.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  55.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  56.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
  57.   <script type="application/x-javascript" src="chrome://navigator/content/viewsource.js"/>
  58.   <script type="application/x-javascript" src="chrome://navigator/content/navigator.js"/>
  59.   <script type="application/x-javascript" src="chrome://communicator/content/findUtils.js"/>
  60.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
  61.   <script type="application/x-javascript" src="chrome://communicator/content/utilityOverlay.js"/>
  62.  
  63.   <commandset id="commands">    
  64.     <commandset id="globalEditMenuItems"/>
  65.     <commandset id="selectEditMenuItems"/>
  66.     <commandset id="clipboardEditMenuItems"/>
  67.   </commandset>
  68.     
  69.   <stringbundleset id="stringbundleset">
  70.     <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
  71.   </stringbundleset>
  72.  
  73.   <!-- keys are appended from the overlay -->
  74.   <keyset id="viewSourceKeys">
  75.  <!-- File Menu -->
  76.     <key id="key_newNavigator"/>
  77.     <key id="key_newBlankPage"/>
  78.     <key id="key_savePage"       key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
  79.     <key id="key_editPage"       key="&editPageCmd.commandkey;" command="Browser:EditPage" modifiers="accel"/>
  80.     <key id="printKb"            key="&printCmd.commandkey;" command="Browser:Print"  modifiers="accel"/>
  81.     <key id="key_close"/>
  82.  
  83.     <!-- Edit Menu -->
  84.     <key id="key_undo"/>
  85.     <key id="key_redo"/>
  86.     <key id="key_cut"/>
  87.     <key id="key_copy"/>
  88.     <key id="key_paste"/>
  89.     <key id="key_delete"/>
  90.     <key id="key_selectAll"/>
  91.     <key id="key_find"              key="&findOnCmd.commandkey;" command="Browser:Find" modifiers="accel"/>
  92.     <key id="key_findAgain"         key="&findAgainCmd.commandkey;" command="Browser:FindAgain" modifiers="accel"/>
  93.     <keyset id="viewZoomKeys"/>
  94.   </keyset>
  95.  
  96.   <!-- Menu --> 
  97.   <toolbox>
  98.   <menubar id="zmain-menubar">
  99.     <menu id="menu_File">
  100.       <menupopup id="filemenu-popup">
  101.         <menuitem label="&browserCmd.label;" accesskey="&browserCmd.accesskey;" key="key_newNavigator" observes="cmd_newNavigator"/>
  102.         <menu id="menu_New">
  103.           <menupopup id="menu_NewPopup">
  104.             <menuitem id="menu_newNavigator" observes="cmd_newNavigator"/>
  105.             <menuitem id="menu_newEditor"    observes="cmd_newEditor"/>
  106.           </menupopup>
  107.         </menu>
  108.         
  109.         <menuseparator/>
  110.  
  111.         <menuitem id="menu_close"/>
  112.         <menuitem label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" key="key_savePage" command="Browser:SavePage"/>
  113.         <menuitem id="savepage" label="&saveFrameCmd.label;" accesskey="&saveFrameCmd.accesskey;" oncommand="savePage(gFocusedURL);" hidden="true"/>
  114.         <menuseparator/>
  115.         <menuitem label="&editPageCmd.label;" accesskey="&editPageCmd.accesskey;" key="key_editPage" oncommand="ViewSourceEditPage();"/>
  116.  
  117.        <menuseparator/>
  118.         <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="Browser:Print"/>     
  119. <!--    <menuitem accesskey="&printPreviewCmd.accesskey;" observes="Browser:PrintPreview"/> -->
  120.       </menupopup>
  121.     </menu>
  122.  
  123.     <menu id="menu_Edit">
  124.       <menupopup>
  125.         <menuitem id="menu_undo"/>   
  126.         <menuitem id="menu_redo"/>
  127.         <menuseparator/>
  128.         <menuitem id="menu_cut"/>
  129.         <menuitem id="menu_copy"/>
  130.         <menuitem id="menu_paste"/>
  131.         <menuitem id="menu_delete"/>
  132.         <menuseparator/>
  133.         <menuitem id="menu_selectAll"/>
  134.         <menuseparator /> 
  135.         <menuitem id="menu_find" label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="Browser:Find"/>
  136.         <menuitem id="menu_findAgain" label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="Browser:FindAgain"/>
  137.       </menupopup>
  138.     </menu>
  139.      
  140.     <menu id="menu_view" accesskey="&viewMenu.accesskey;" label="&viewMenu.label;">
  141.       <menupopup>
  142.         <menu id="menu_textZoom"/>  
  143.         <menuseparator/>
  144.      <!--   <menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;" key="key_viewInfo" observes="View:PageInfo"/>
  145.         <menuseparator id="file_moduleSeparator"/>-->
  146.         <menu id = "charsetMenu"/>
  147.       </menupopup>
  148.     </menu>
  149.  
  150.     <menu id="menu_Help"/>
  151.   </menubar>  
  152.   </toolbox>
  153.  
  154.   <vbox id="appcontent" flex="1"
  155.        ondragover="nsDragAndDrop.dragOver(event, contentAreaDNDObserver);"
  156.        ondraggesture="nsDragAndDrop.startDrag(event, contentAreaDNDObserver);"
  157.        ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  158.  
  159.     <browser id="content" type="content-primary" name="content" src="about:blank" flex="1"/>
  160.  
  161.   </vbox>
  162.  
  163. </window>
  164.