home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / komunikace / nvu / nvu-1.0-cs-CZ.win32.installer.exe / chrome / toolkit.jar / content / global / viewSource.xul < prev    next >
Extensible Markup Language  |  2004-10-28  |  7KB  |  145 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  4. <?xml-stylesheet href="chrome://global/content/viewSource.css" type="text/css"?> 
  5. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  6. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  7. <?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
  8.  
  9. <!DOCTYPE window [
  10. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  11. %brandDTD;
  12. <!ENTITY % sourceDTD SYSTEM "chrome://global/locale/viewSource.dtd" >
  13. %sourceDTD;
  14. <!ENTITY % findDTD SYSTEM "chrome://global/locale/finddialog.dtd" >
  15. %findDTD;
  16. ]>
  17.  
  18. <window id="main-window"
  19.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  20.         onload="onLoadViewSource();"
  21.         onunload="onUnloadViewSource();"
  22.         contenttitlesetting="true"
  23.         title="&mainWindow.title;" 
  24.         titlemodifier="&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://global/content/globalOverlay.js"/>
  33.   <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
  34.   <script type="application/x-javascript" src="chrome://global/content/viewSource.js"/>
  35.   <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  36.   <script type="application/x-javascript" src="chrome://global/content/findUtils.js"/>
  37.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
  38.   <script type="application/x-javascript" src="chrome://communicator/content/utilityOverlay.js"/>
  39.   <stringbundle id="viewSourceBundle" src="chrome://global/locale/viewSource.properties"/>
  40.  
  41.   <command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
  42.   <command id="cmd_print" oncommand="PrintUtils.print();"/>
  43.   <command id="cmd_printpreview" oncommand="PrintUtils.printPreview(onEnterPP, onExitPP);"/>
  44.   <command id="cmd_pagesetup" oncommand="PrintUtils.showPageSetup();"/>
  45.   <command id="cmd_close" oncommand="window.close();"/>
  46.   <commandset id="editMenuCommands"/>
  47.   <command id="cmd_find" oncommand="getBrowser().find();"/>
  48.   <command id="cmd_findAgain" oncommand="getBrowser().findAgain()"/>
  49.   <command id="cmd_findPrevious" oncommand="getBrowser().findPrevious()"/>
  50.   <command id="cmd_goToLine" oncommand="ViewSourceGoToLine();" disabled="true"/>
  51.   <command id="cmd_highlightSyntax" oncommand="highlightSyntax();"/>
  52.   <command id="cmd_wrapLongLines" oncommand="wrapLongLines()"/>
  53.   <command id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  54.   <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  55.  
  56.   <keyset id="editMenuKeys"/>
  57.   <keyset id="viewSourceKeys">
  58.     <key id="key_savePage" key="&savePageCmd.commandkey;" modifiers="accel" command="cmd_savePage"/>
  59.     <key id="key_print" key="&printCmd.commandkey;" modifiers="accel" command="cmd_print"/>
  60.     <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel" command="cmd_close"/>
  61.     <key id="key_goToLine"     key="&goToLineCmd.commandkey;"  command="cmd_goToLine"  modifiers="accel"/>
  62.  
  63.     <key id="key_textZoomEnlarge" key="&textEnlarge.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  64.     <key id="key_textZoomEnlarge2" key="&textEnlarge.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  65.     <key id="key_textZoomReduce"  key="&textReduce.commandkey;" command="cmd_textZoomReduce" modifiers="accel"/>
  66.     <key id="key_textZoomReset" key="&textReset.commandkey;" oncommand="ZoomManager.prototype.getInstance().reset();" modifiers="accel"/>
  67.   </keyset>
  68.  
  69.   <popup id="viewSourceContextMenu">
  70.     <menuitem id="cMenu_findAgain"/>
  71.     <menuseparator/>
  72.     <menuitem id="cMenu_copy"/>
  73.     <menuseparator/>
  74.     <menuitem id="cMenu_selectAll"/>
  75.   </popup>
  76.  
  77.   <!-- Menu --> 
  78.   <toolbox id="viewSource-toolbox">
  79.     <menubar id="viewSource-main-menubar">
  80.  
  81.       <menu label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
  82.         <menupopup id="filemenu-popup">
  83.           <menuitem key="key_savePage" command="cmd_savePage"
  84.                     label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
  85.           <menuitem command="cmd_pagesetup"
  86.                     label="&pageSetupCmd.label;" accesskey="&pageSetupCmd.accesskey;"/>
  87.           <menuitem command="cmd_printpreview"
  88.                     label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;"/>
  89.           <menuitem key="key_print" command="cmd_print"
  90.                     label="&printCmd.label;" accesskey="&printCmd.accesskey;"/>
  91.           <menuseparator/>
  92.           <menuitem key="key_close" command="cmd_close"
  93.                     label="&closeCmd.label;" accesskey="&closeCmd.accesskey;"/>
  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"/>
  110.           <menuitem id="menu_findAgain"/>
  111.           <menuseparator/>
  112.           <menuitem id="menu_goToLine" key="key_goToLine" command="cmd_goToLine"
  113.                     label="&goToLineCmd.label;" accesskey="&goToLineCmd.accesskey;"/>
  114.         </menupopup>
  115.       </menu>
  116.  
  117.       <menu label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  118.         <menupopup>
  119.           <menuitem id="menu_textEnlarge" command="cmd_textZoomEnlarge"
  120.                     label="&menu_textEnlarge.label;" accesskey="&menu_textEnlarge.accesskey;"
  121.                     key="key_textZoomEnlarge"/>
  122.           <menuitem id="menu_textReduce" command="cmd_textZoomReduce"
  123.                     label="&menu_textReduce.label;" accesskey="&menu_textReduce.accesskey;"
  124.                     key="key_textZoomReduce"/>
  125.           <menu id="charsetMenu"/>
  126.           <menuseparator/>
  127.           <menuitem id="menu_wrapLongLines" type="checkbox" command="cmd_wrapLongLines"
  128.                     label="&menu_wrapLongLines.title;" accesskey="&menu_wrapLongLines.accesskey;"/>
  129.           <menuitem type="checkbox" id="menu_highlightSyntax" command="cmd_highlightSyntax"
  130.                     label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/>
  131.         </menupopup>
  132.       </menu>
  133.     </menubar>  
  134.   </toolbox>
  135.  
  136.   <vbox id="appcontent" flex="1"
  137.        ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  138.  
  139.     <browser id="content" type="content-primary" name="content" src="about:blank" flex="1"
  140.              context="viewSourceContextMenu"/>
  141.  
  142.   </vbox> 
  143.  
  144. </window>
  145.