home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 July & August / PCWorld_2005-07-08_cd.bin / komunikace / netscape / nsb-install-8-0.exe / chrome / toolkit.jar / content / global / viewPartialSource.xul < prev    next >
Extensible Markup Language  |  2004-11-25  |  8KB  |  173 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 % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  15. %browserDTD;
  16. <!ENTITY % findDTD SYSTEM "chrome://global/locale/finddialog.dtd" >
  17. %findDTD;
  18.  
  19. ]>
  20.  
  21. <window id="main-window"
  22.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  23.         onload="onLoadViewPartialSource();"
  24.         onunload="onUnloadViewPartialSource();"
  25.         contenttitlesetting="false"
  26.         title="&mainWindow.title;" 
  27.         titlemodifier="&mainWindow.titlemodifier;" 
  28.         titlepreface=""
  29.         titlemenuseparator ="&mainWindow.titlemodifierseparator;"  
  30.         windowtype="navigator:view-source"
  31.         width="500" height="300"
  32.         screenX="10" screenY="10"
  33.         persist="screenX screenY width height sizemode">
  34.  
  35.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  36.   <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  37.   <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
  38.   <script type="application/x-javascript" src="chrome://global/content/viewSource.js"/>
  39.   <script type="application/x-javascript" src="chrome://global/content/viewPartialSource.js"/>
  40.   <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  41.  
  42.   <stringbundle id="bundle_findBar" src="chrome://browser/locale/browser.properties"/>
  43.  
  44.   <command id="cmd_savePage" disabled="true" oncommand="ViewSourceSavePage();"/>
  45.   <command id="cmd_print" oncommand="PrintUtils.print();"/>
  46.   <command id="cmd_printpreview" oncommand="PrintUtils.printPreview(onEnterPP, onExitPP);"/>
  47.   <command id="cmd_pagesetup" oncommand="PrintUtils.showPageSetup();"/>
  48.   <command id="cmd_close" oncommand="window.close();"/>
  49.   <commandset id="editMenuCommands"/>
  50.   <command id="cmd_find" oncommand="onFindCmd();"/>
  51.   <command id="cmd_findAgain" oncommand="onFindAgainCmd();"/>
  52.   <command id="cmd_findPrevious" oncommand="onFindPreviousCmd();"/>    
  53.   <command id="cmd_goToLine" oncommand="ViewSourceGoToLine();" disabled="true"/>
  54.   <command id="cmd_highlightSyntax" oncommand="highlightSyntax();"/>
  55.   <command id="cmd_wrapLongLines" oncommand="wrapLongLines()"/>
  56.   <command id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  57.   <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  58.  
  59.   <keyset id="editMenuKeys"/>
  60.   <keyset id="viewSourceKeys">
  61.     <key id="key_savePage" key="&savePageCmd.commandkey;" modifiers="accel" command="cmd_savePage"/>
  62.     <key id="key_print" key="&printCmd.commandkey;" modifiers="accel" command="cmd_print"/>
  63.     <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel" command="cmd_close"/>
  64.     <key keycode="VK_ESCAPE" command="cmd_close"/>
  65.  
  66.     <key id="key_textZoomEnlarge" key="&textEnlarge.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  67.     <key id="key_textZoomEnlarge2" key="&textEnlarge.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  68.     <key id="key_textZoomReduce"  key="&textReduce.commandkey;" command="cmd_textZoomReduce" modifiers="accel"/>
  69.     <key id="key_textZoomReset" key="&textReset.commandkey;" oncommand="ZoomManager.prototype.getInstance().reset();" modifiers="accel"/>
  70.   </keyset>
  71.  
  72.   <popup id="viewSourceContextMenu">
  73.     <menuitem id="cMenu_findAgain"/>
  74.     <menuseparator/>
  75.     <menuitem id="cMenu_copy"/>
  76.     <menuseparator/>
  77.     <menuitem id="cMenu_selectAll"/>
  78.   </popup>
  79.  
  80.   <!-- Menu --> 
  81.   <toolbox id="viewSource-toolbox">
  82.     <menubar id="viewSource-main-menubar">
  83.  
  84.       <menu label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
  85.         <menupopup id="filemenu-popup">
  86.           <menuitem key="key_savePage" command="cmd_savePage"
  87.                     label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
  88.           <menuitem command="cmd_pagesetup"
  89.                     label="&pageSetupCmd.label;" accesskey="&pageSetupCmd.accesskey;"/>
  90.           <menuitem command="cmd_printpreview"
  91.                     label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;"/>
  92.           <menuitem key="key_print" command="cmd_print"
  93.                     label="&printCmd.label;" accesskey="&printCmd.accesskey;"/>
  94.           <menuseparator/>
  95.           <menuitem key="key_close" command="cmd_close"
  96.                     label="&closeCmd.label;" accesskey="&closeCmd.accesskey;"/>
  97.         </menupopup>
  98.       </menu>
  99.  
  100.       <menu id="menu_edit">
  101.         <menupopup>
  102.           <menuitem id="menu_undo"/>
  103.           <menuitem id="menu_redo"/>
  104.           <menuseparator/>
  105.           <menuitem id="menu_cut"/>
  106.           <menuitem id="menu_copy"/>
  107.           <menuitem id="menu_paste"/>
  108.           <menuitem id="menu_delete"/>
  109.           <menuseparator/>
  110.           <menuitem id="menu_selectAll"/>
  111.           <menuseparator/>
  112.           <menuitem id="menu_find"/>
  113.           <menuitem id="menu_findAgain"/>
  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.     <toolbar id="FindToolbar" hidden="true" align="center" fullscreentoolbar="true">
  143.  
  144.       <toolbarbutton id="find-closebutton" class="tabs-closebutton" tooltiptext="&findCloseButton.tooltip;"
  145.                      oncommand="closeFindBar();"/>
  146.  
  147.       <label value="&find.label;"/>
  148.       <hbox id="find-field-container">
  149.         <textbox id="find-field" oninput="find(this.value);" onfocus="onFindBarFocus();"
  150.                 onkeypress="onFindBarKeyPress(event);" onblur="onFindBarBlur();"/>
  151.       </hbox>
  152.       <toolbarbutton id="find-next" class="toolbarbutton-1" label="&findNext.label;" tooltiptext="&findNext.tooltip;"
  153.                      command="cmd_findAgain" disabled="true"/>
  154.  
  155.       <toolbarbutton id="find-previous" class="toolbarbutton-1" label="&findPrevious.label;" tooltiptext="&findPrevious.tooltip;"
  156.                      command="cmd_findPrevious" disabled="true"/>
  157.  
  158.       <toolbarbutton id="highlight" class="toolbarbutton-1" label="&highlight.label;" tooltiptext="&highlight.tooltip;"
  159.                      oncommand="toggleHighlight(!this.checked);
  160.                                 if (gFindMode != FIND_NORMAL) setFindCloseTimeout();"
  161.                      type="checkbox" disabled="true"/>
  162.  
  163.       <checkbox id="find-case-sensitive" oncommand="toggleCaseSensitivity(this.checked);"
  164.                 label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
  165.       <image id="find-status-icon"/>
  166.       <label id="find-status"/>
  167.     </toolbar>
  168.  
  169.  
  170.   </vbox>
  171.  
  172. </window>
  173.