toolkit/components/viewsource/content/viewPartialSource.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0"?>
     2 # -*- Mode: HTML -*-
     3 # This Source Code Form is subject to the terms of the Mozilla Public
     4 # License, v. 2.0. If a copy of the MPL was not distributed with this
     5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
     8 <?xml-stylesheet href="chrome://global/content/viewSource.css" type="text/css"?> 
     9 <?xml-stylesheet href="chrome://mozapps/skin/viewsource/viewsource.css" type="text/css"?>
    10 <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
    12 <!DOCTYPE window [
    13 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
    14 %brandDTD;
    15 <!ENTITY % sourceDTD SYSTEM "chrome://global/locale/viewSource.dtd" >
    16 %sourceDTD;
    17 ]>
    19 <window id="viewSource"
    20         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    21         onload="onLoadViewPartialSource();"
    22         contenttitlesetting="true"
    23         title="&mainWindow.title;" 
    24         titlemodifier="&mainWindow.titlemodifier;" 
    25         titlepreface=""
    26         titlemenuseparator ="&mainWindow.titlemodifierseparator;"  
    27         windowtype="navigator:view-source"
    28         width="500" height="300"
    29         screenX="10" screenY="10"
    30         persist="screenX screenY width height sizemode">
    32   <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
    33   <script type="application/javascript" src="chrome://global/content/printUtils.js"/>
    34   <script type="application/javascript" src="chrome://global/content/viewSource.js"/>
    35   <script type="application/javascript" src="chrome://global/content/viewPartialSource.js"/>
    36   <script type="application/javascript" src="chrome://global/content/viewZoomOverlay.js"/>
    37   <script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
    39   <stringbundle id="viewSourceBundle" src="chrome://global/locale/viewSource.properties"/>
    41   <command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
    42   <command id="cmd_print" oncommand="PrintUtils.print();"/>
    43   <command id="cmd_printpreview" oncommand="PrintUtils.printPreview(PrintPreviewListener);"/>
    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"
    48            oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
    49   <command id="cmd_findAgain"
    50            oncommand="document.getElementById('FindToolbar').onFindAgainCommand(false);"/>
    51   <command id="cmd_findPrevious"
    52            oncommand="document.getElementById('FindToolbar').onFindAgainCommand(true);"/>
    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.reduce();"/>
    57   <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.enlarge();"/>
    58   <command id="cmd_textZoomReset" oncommand="ZoomManager.reset();"/>
    60   <keyset id="editMenuKeys"/>
    61   <keyset id="viewSourceKeys">
    62     <key id="key_savePage" key="&savePageCmd.commandkey;" modifiers="accel" command="cmd_savePage"/>
    63     <key id="key_print" key="&printCmd.commandkey;" modifiers="accel" command="cmd_print"/>
    64     <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel" command="cmd_close"/>
    65     <key keycode="VK_ESCAPE" command="cmd_close"/>
    67     <key id="key_textZoomEnlarge" key="&textEnlarge.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel"/>
    68     <key id="key_textZoomEnlarge2" key="&textEnlarge.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
    69     <key id="key_textZoomEnlarge3" key="&textEnlarge.commandkey3;" command="cmd_textZoomEnlarge" modifiers="accel"/>
    70     <key id="key_textZoomReduce"  key="&textReduce.commandkey;" command="cmd_textZoomReduce" modifiers="accel"/>
    71     <key id="key_textZoomReduce2"  key="&textReduce.commandkey2;" command="cmd_textZoomReduce" modifiers="accel"/>
    72     <key id="key_textZoomReset" key="&textReset.commandkey;" command="cmd_textZoomReset" modifiers="accel"/>
    73     <key id="key_textZoomReset2" key="&textReset.commandkey2;" command="cmd_textZoomReset" modifiers="accel"/>
    74   </keyset>
    76   <menupopup id="viewSourceContextMenu"
    77              onpopupshowing="contextMenuShowing();">
    78     <menuitem id="cMenu_findAgain"/>
    79     <menuseparator/>
    80     <menuitem id="cMenu_copy"/>
    81     <menuitem id="context-copyLink"
    82               label="&copyLinkCmd.label;"
    83               accesskey="&copyLinkCmd.accesskey;"
    84               oncommand="contextMenuCopyLinkOrEmail();"/>
    85     <menuitem id="context-copyEmail"
    86               label="&copyEmailCmd.label;"
    87               accesskey="&copyEmailCmd.accesskey;"
    88               oncommand="contextMenuCopyLinkOrEmail();"/>
    89     <menuseparator/>
    90     <menuitem id="cMenu_selectAll"/>
    91   </menupopup>
    93   <!-- Menu --> 
    94   <toolbox id="viewSource-toolbox">
    95     <menubar id="viewSource-main-menubar">
    97       <menu id="menu_file" label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
    98         <menupopup id="menu_FilePopup">
    99           <menuitem key="key_savePage" command="cmd_savePage" id="menu_savePage"
   100                     label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
   101           <menuitem command="cmd_pagesetup" id="menu_pageSetup"
   102                     label="&pageSetupCmd.label;" accesskey="&pageSetupCmd.accesskey;"/>
   103 #ifndef XP_MACOSX
   104           <menuitem command="cmd_printpreview" id="menu_printPreview"
   105                     label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;"/>
   106 #endif
   107           <menuitem key="key_print" command="cmd_print" id="menu_print"
   108                     label="&printCmd.label;" accesskey="&printCmd.accesskey;"/>
   109           <menuseparator/>
   110           <menuitem key="key_close" command="cmd_close" id="menu_close"
   111                     label="&closeCmd.label;" accesskey="&closeCmd.accesskey;"/>
   112         </menupopup>
   113       </menu>
   115       <menu id="menu_edit">
   116         <menupopup id="editmenu-popup">
   117           <menuitem id="menu_undo"/>
   118           <menuitem id="menu_redo"/>
   119           <menuseparator/>
   120           <menuitem id="menu_cut"/>
   121           <menuitem id="menu_copy"/>
   122           <menuitem id="menu_paste"/>
   123           <menuitem id="menu_delete"/>
   124           <menuseparator/>
   125           <menuitem id="menu_selectAll"/>
   126           <menuseparator/>
   127           <menuitem id="menu_find"/>
   128           <menuitem id="menu_findAgain"/>
   129         </menupopup>
   130       </menu>
   132       <menu id="menu_view" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
   133         <menupopup id="viewmenu-popup">
   134           <menu id="viewTextZoomMenu" label="&menu_textSize.label;" accesskey="&menu_textSize.accesskey;">
   135             <menupopup>                    
   136               <menuitem id="menu_textEnlarge" command="cmd_textZoomEnlarge" 
   137                         label="&menu_textEnlarge.label;" accesskey="&menu_textEnlarge.accesskey;"
   138                         key="key_textZoomEnlarge"/>
   139               <menuitem id="menu_textReduce" command="cmd_textZoomReduce" 
   140                         label="&menu_textReduce.label;" accesskey="&menu_textReduce.accesskey;"
   141                         key="key_textZoomReduce"/>
   142               <menuseparator/>
   143               <menuitem id="menu_textReset" command="cmd_textZoomReset"
   144                         label="&menu_textReset.label;" accesskey="&menu_textReset.accesskey;"
   145                         key="key_textZoomReset"/>
   146             </menupopup>
   147           </menu>
   148           <menuseparator/>
   149           <menuitem id="menu_wrapLongLines" type="checkbox" command="cmd_wrapLongLines"
   150                     label="&menu_wrapLongLines.title;" accesskey="&menu_wrapLongLines.accesskey;"/>
   151           <menuitem type="checkbox" id="menu_highlightSyntax" command="cmd_highlightSyntax"
   152                     label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/>
   153         </menupopup>
   154       </menu>
   155     </menubar>  
   156   </toolbox>
   158   <vbox id="appcontent" flex="1">
   159     <browser id="content" type="content-primary" name="content" src="about:blank" flex="1"
   160              disablehistory="true" context="viewSourceContextMenu"/>
   161     <findbar id="FindToolbar" browserid="content"/>
   162   </vbox>
   164 </window>

mercurial