home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / mail.jar / content / navigator / viewSource.xul < prev   
Encoding:
Extensible Markup Language  |  2003-08-07  |  5.0 KB  |  128 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> 
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  5. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  6. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  7.  
  8. <!DOCTYPE window [
  9. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  10. %brandDTD;
  11. <!ENTITY % sourceDTD SYSTEM "chrome://navigator/locale/viewSource.dtd" >
  12. %sourceDTD;
  13. <!ENTITY % msgDTD SYSTEM "chrome://messenger/locale/messenger.dtd" >
  14. %msgDTD;
  15. <!ENTITY % contentAreaCommandsDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
  16. %contentAreaCommandsDTD;
  17. ]>
  18.  
  19. <window id="main-window"
  20.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  21.         onload="onLoadViewSource();"
  22.         contenttitlesetting="true"
  23.         title="&mainWindow.title;" 
  24.         titledefault="&mainWindow.titlemodifier;" 
  25.         titlepreface="&mainWindow.preface;"
  26.         titlemenuseparator ="&mainWindow.titlemodifierseparator;"  
  27.         windowtype="navigator:view-source"
  28.         width="640" height="480"
  29.         screenX="10" screenY="10"
  30.         persist="screenX screenY width height sizemode">
  31.  
  32.   <script type="application/x-javascript" src="chrome://navigator/content/viewsource.js"/>
  33.   <script type="application/x-javascript" src="chrome://communicator/content/printing.js"/>
  34.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  35.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  36.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
  37.   <script type="application/x-javascript" src="chrome://communicator/content/findUtils.js"/>
  38.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
  39.   
  40.   <commandset id="commands">
  41.     <commandset id="globalEditMenuItems"/>
  42.     <commandset id="selectEditMenuItems"/>
  43.     <commandset id="clipboardEditMenuItems"/>
  44.     <commandset id="viewSourceMenuItems">
  45.       <command id="cmd_close" oncommand="ViewSourceClose()"/>
  46.     </commandset>
  47.   </commandset>  
  48.  
  49.  
  50.   <!-- keys are appended from the overlay -->
  51.   <keyset id="viewSourceKeys">
  52.  
  53.     <!-- File Menu -->
  54.     <key id="key_close"/>
  55.  
  56.     <!-- Edit Menu -->
  57.     <key id="key_undo"/>
  58.     <key id="key_redo"/>
  59.     <key id="key_cut"/>
  60.     <key id="key_copy"/>
  61.     <key id="key_paste"/>
  62.     <key id="key_delete"/>
  63.     <key id="key_selectAll"/>
  64.     <key id="key_find"         key="&findCmd.key;" command="Browser:Find" modifiers="accel"/>
  65.     <key id="key_findAgain"    key="&findAgainCmd.key;" command="Browser:FindAgain" modifiers="accel"/>
  66.     <key id="key_findPrev"     key="&findPrevCmd.key;"  command="Browser:FindPrev"  modifiers="accel, shift"/>
  67.     <key keycode="&findAgainCmd.key2;" command="Browser:FindAgain"/>
  68.     <key keycode="&findPrevCmd.key2;"  command="Browser:FindPrev"  modifiers="shift"/>
  69.   </keyset>
  70.  
  71.   <stringbundleset id="viewSource-stringbundleset">
  72.     <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
  73.   </stringbundleset>
  74.     
  75.   <!-- context menu -->
  76.   <popupset id="viewSourceContextSet">
  77.     <popup id="viewSourceContextMenu">
  78.       <menuitem label="&findNextCmd.label;" accesskey="&findNextCmd.accesskey;"  command="Browser:FindAgain"/>
  79.       <menuseparator/>
  80.       <menuitem id="menu_copy_cm" command="cmd_copy"
  81.                 label="©Cmd.label;" accesskey="©Cmd.accesskey;"/>
  82.       <menuseparator/>
  83.       <menuitem id="menu_selectAll_cm" command="cmd_selectAll"
  84.                 label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;"/>
  85.     </popup>
  86.   </popupset>
  87.  
  88.   <!-- Menu --> 
  89.   <toolbox id="viewSource-toolbox">
  90.     <menubar id="viewSource-main-menubar">
  91.       <menu id="menu_File">
  92.         <menupopup id="filemenu-popup">
  93.           <menuitem id="menu_close"/>
  94.         </menupopup>
  95.       </menu>
  96.  
  97.       <menu id="menu_Edit">
  98.         <menupopup>
  99.           <menuitem id="menu_undo"/>   
  100.           <menuitem id="menu_redo"/>
  101.           <menuseparator/>
  102.           <menuitem id="menu_cut"/>
  103.           <menuitem id="menu_copy"/>
  104.           <menuitem id="menu_paste"/>
  105.           <menuitem id="menu_delete"/>
  106.           <menuseparator/>
  107.           <menuitem id="menu_selectAll"/>
  108.           <menuseparator /> 
  109.           <menuitem id="menu_find" key="key_find" command="Browser:Find"
  110.                     label="&findCmd.label;" accesskey="&findCmd.accesskey;"/>
  111.           <menuitem id="menu_findAgain" key="key_findAgain" command="Browser:FindAgain"
  112.                     label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;"/>
  113.           <menuitem id="menu_findPrev" key="key_findPrev" command="Browser:FindPrev"
  114.                     label="&findPrevCmd.label;" accesskey="&findPrevCmd.accesskey;"/>
  115.         </menupopup>
  116.       </menu>
  117.     </menubar>
  118.   </toolbox>
  119.  
  120.   <vbox id="appcontent" flex="1"
  121.        ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  122.  
  123.     <browser id="content" type="content-primary" name="content" src="about:blank" flex="1"/>
  124.  
  125.   </vbox> 
  126.  
  127. </window>
  128.