151 lines
6.2 KiB
XML
151 lines
6.2 KiB
XML
<?xml version="1.0"?>
|
|
# -*- Mode: HTML -*-
|
|
#
|
|
# The contents of this file are subject to the Mozilla Public
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
# except in compliance with the License. You may obtain a copy of
|
|
# the License at http://www.mozilla.org/MPL/
|
|
#
|
|
# Software distributed under the License is distributed on an "AS
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
# implied. See the License for the specific language governing
|
|
# rights and limitations under the License.
|
|
#
|
|
# The Original Code is mozilla.org viewsource frontend.
|
|
#
|
|
# The Initial Developer of the Original Code is Netscape
|
|
# Communications Corporation. Portions created by Netscape are
|
|
# Copyright (C) 2000 Netscape Communications Corporation. All
|
|
# Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
# Doron Rosenberg (doronr@naboonline.com)
|
|
# Roger B. Sidje (rbs@maths.uq.edu.au)
|
|
# Pierre Chanial (p_ch@verizon.net)
|
|
#
|
|
# Alternatively, the contents of this file may be used under the
|
|
# terms of the GNU General Public License Version 2 or later (the
|
|
# "GPL"), in which case the provisions of the GPL are applicable
|
|
# instead of those above. If you wish to allow use of your
|
|
# version of this file only under the terms of the GPL and not to
|
|
# allow others to use your version of this file under the MPL,
|
|
# indicate your decision by deleting the provisions above and
|
|
# replace them with the notice and other provisions required by
|
|
# the GPL. If you do not delete the provisions above, a recipient
|
|
# may use your version of this file under either the MPL or the
|
|
# GPL.
|
|
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
<?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
|
|
<?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
|
|
|
|
<!DOCTYPE window [
|
|
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
|
|
%brandDTD;
|
|
<!ENTITY % sourceDTD SYSTEM "chrome://global/locale/viewSource.dtd" >
|
|
%sourceDTD;
|
|
]>
|
|
|
|
<window id="main-window"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
onload="onLoadViewSource();"
|
|
contenttitlesetting="true"
|
|
title="&mainWindow.title;"
|
|
titlemodifier="&mainWindow.titlemodifier;"
|
|
titlepreface="&mainWindow.preface;"
|
|
titlemenuseparator ="&mainWindow.titlemodifierseparator;"
|
|
windowtype="navigator:view-source"
|
|
width="640" height="480"
|
|
screenX="10" screenY="10"
|
|
persist="screenX screenY width height sizemode">
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
|
|
<script type="application/x-javascript" src="chrome://global/content/findUtils.js"/>
|
|
<script type="application/x-javascript" src="chrome://global/content/viewSource.js"/>
|
|
|
|
<stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
|
|
<stringbundle id="viewSourceBundle" src="chrome://navigator/locale/viewSource.properties"/>
|
|
|
|
<commandset id="editMenuCommands"/>
|
|
<command id="cmd_goToLine" oncommand="ViewSourceGoToLine();" disabled="true"/>
|
|
<command id="cmd_print" disabled="true"/>
|
|
<command id="cmd_savePage" disabled="true" oncommand="ViewSourceSavePage();"/>
|
|
<command id="cmd_close" oncommand="window.close();"/>
|
|
<command id="cmd_highlightSyntax" oncommand="highlightSyntax();"/>
|
|
<command id="cmd_wrapLongLines" oncommand="wrapLongLines()"/>
|
|
|
|
<keyset id="editMenuKeys"/>
|
|
<keyset id="viewSourceKeys">
|
|
<key id="key_savePage" key="&savePageCmd.commandkey;" modifiers="accel" command="cmd_savePage"/>
|
|
<key id="key_print" key="&printCmd.commandkey;" modifiers="accel" command="cmd_print"/>
|
|
<key id="key_close" key="&closeCmd.commandkey;" modifiers="accel" command="cmd_close"/>
|
|
<key keycode="VK_ESCAPE" command="cmd_close"/>
|
|
<key id="key_goToLine" key="&goToLineCmd.commandkey;" command="cmd_goToLine" modifiers="accel"/>
|
|
</keyset>
|
|
|
|
<popup id="viewSourceContextMenu">
|
|
<menuitem id="cMenu_findAgain"/>
|
|
<menuseparator/>
|
|
<menuitem id="cMenu_copy"/>
|
|
<menuseparator/>
|
|
<menuitem id="cMenu_selectAll"/>
|
|
</popup>
|
|
|
|
<!-- Menu -->
|
|
<toolbox id="viewSource-toolbox">
|
|
<menubar id="viewSource-main-menubar">
|
|
|
|
<menu label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
|
|
<menupopup id="filemenu-popup">
|
|
<menuitem key="key_savePage" command="cmd_savePage"
|
|
label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
|
|
<menuitem key="key_print" command="cmd_print"
|
|
label="&printCmd.label;" accesskey="&printCmd.accesskey;"/>
|
|
<menuseparator/>
|
|
<menuitem key="key_close" command="cmd_close"
|
|
label="&closeCmd.label;" accesskey="&closeCmd.accesskey;"/>
|
|
</menupopup>
|
|
</menu>
|
|
|
|
<menu id="menu_edit">
|
|
<menupopup>
|
|
<menuitem id="menu_undo"/>
|
|
<menuitem id="menu_redo"/>
|
|
<menuseparator/>
|
|
<menuitem id="menu_cut"/>
|
|
<menuitem id="menu_copy"/>
|
|
<menuitem id="menu_paste"/>
|
|
<menuitem id="menu_delete"/>
|
|
<menuseparator/>
|
|
<menuitem id="menu_selectAll"/>
|
|
<menuseparator/>
|
|
<menuitem id="menu_find"/>
|
|
<menuitem id="menu_findAgain"/>
|
|
<menuseparator/>
|
|
<menuitem id="menu_goToLine" key="key_goToLine" command="cmd_goToLine"
|
|
label="&goToLineCmd.label;" accesskey="&goToLineCmd.accesskey;"/>
|
|
</menupopup>
|
|
</menu>
|
|
|
|
<menu label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
|
|
<menupopup>
|
|
<menu id="charsetMenu"/>
|
|
<menuitem id="menu_wrapLongLines" type="checkbox" command="cmd_wrapLongLines"
|
|
label="&menu_wrapLongLines.title;" accesskey="&menu_wrapLongLines.accesskey;"/>
|
|
<menuitem type="checkbox" id="menu_highlightSyntax" command="cmd_highlightSyntax"
|
|
label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/>
|
|
</menupopup>
|
|
</menu>
|
|
</menubar>
|
|
</toolbox>
|
|
|
|
<vbox id="appcontent" flex="1"
|
|
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
|
|
|
|
<browser id="content" type="content-primary" name="content" src="about:blank" flex="1"
|
|
context="viewSourceContextMenu"/>
|
|
|
|
</vbox>
|
|
|
|
</window>
|