gecko-dev/browser/components/preferences/content.xul

207 lines
10 KiB
XML

<?xml version="1.0"?>
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# 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 the Firefox Preferences System.
#
# The Initial Developer of the Original Code is Ben Goodger.
# Portions created by the Initial Developer are Copyright (C) 2005
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Ben Goodger <ben@mozilla.org>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
<!DOCTYPE overlay SYSTEM "chrome://browser/locale/preferences/content.dtd">
<overlay id="ContentPaneOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<prefpane id="paneContent" onpaneload="gContentPane.init();"
helpTopic="prefs-content" helpURI="chrome://browser/locale/help/help.rdf">
<preferences id="contentPreferences">
<preference id="dom.disable_open_during_load" name="dom.disable_open_during_load" type="bool"/>
<preference id="xpinstall.enabled" name="xpinstall.enabled" type="bool"/>
<preference id="permissions.default.image" name="permissions.default.image" type="int"/>
<preference id="security.enable_java" name="security.enable_java" type="bool"/>
<preference id="javascript.enabled" name="javascript.enabled" type="bool"/>
<preference id="browser.jsannoyances.disabled" name="browser.jsannoyances.disabled" type="bool"/>
<preference id="dom.event.contextmenu.enabled" name="dom.event.contextmenu.enabled" type="bool"
onchange="gContentPane.annoyancesPrefChanged();"/>
<preference id="dom.disable_window_move_resize" name="dom.disable_window_move_resize" type="bool"
onchange="gContentPane.annoyancesPrefChanged();"/>
<preference id="dom.disable_window_flip" name="dom.disable_window_flip" type="bool"
onchange="gContentPane.annoyancesPrefChanged();"/>
<preference id="dom.disable_window_open_feature.status"
name="dom.disable_window_open_feature.status"
type="bool" onchange="gContentPane.annoyancesPrefChanged();"/>
<preference id="dom.disable_window_status_change"
name="dom.disable_window_status_change"
type="bool" onchange="gContentPane.annoyancesPrefChanged();"/>
<preference id="font.language.group" name="font.language.group" type="wstring" onchange="gContentPane._rebuildFonts();"/>
<preference id="pref.advanced.images.disable_button.view_image"
name="pref.advanced.images.disable_button.view_image"
type="bool"/>
</preferences>
<script type="application/x-javascript" src="chrome://mozapps/content/preferences/fontbuilder.js"/>
<script type="application/x-javascript" src="chrome://browser/content/preferences/content.js"/>
<groupbox id="contentGroupbox">
<grid id="contentGrid">
<columns>
<column flex="1"/>
<column/>
</columns>
<rows id="contentRows-1">
<row id="popupPolicyRow">
<vbox align="start">
<checkbox id="popupPolicy" preference="dom.disable_open_during_load"
label="&popupReject.label;" accesskey="&popupReject.accesskey;"
onsyncfrompreference="return gContentPane.updateButtons('popupPolicyButton',
'dom.disable_open_during_load');"/>
</vbox>
<button id="popupPolicyButton" label="&allowedSites.label;"
oncommand="gContentPane.showExceptions('popup');"/>
</row>
<row id="enableSoftwareInstallRow">
<vbox align="start">
<checkbox id="enableSoftwareInstall" preference="xpinstall.enabled"
label="&enableXPInstall.label;" accesskey="&enableXPInstall.accesskey;"
onsyncfrompreference="return gContentPane.updateButtons('enableSoftwareInstallButton',
'xpinstall.enabled');"/>
</vbox>
<button id="enableSoftwareInstallButton" label="&allowedSites.label;"
oncommand="gContentPane.showExceptions('install');"/>
</row>
<row id="enableImagesRow">
<vbox align="start">
<checkbox id="enableImages"
label="&enableImages.label;"
accesskey="&enableImages.accesskey;"
preference="permissions.default.image"
onsyncfrompreference="return gContentPane.readEnableImagesPref();"
onsynctopreference="return gContentPane.writeEnableImagesPref();"/>
<checkbox id="enableRestricted" class="indent"
label="&forOriginatingSiteOnly.label;"
accesskey="&forOriginatingSiteOnly.accesskey;"
preference="permissions.default.image"
onsyncfrompreference="return gContentPane.readEnableRestrictedPref();"
onsynctopreference="return gContentPane.writeEnableImagesPref();"/>
</vbox>
<vbox>
<button id="manageImages" label="&exceptions.label;"
oncommand="gContentPane.showExceptions('image');"
preference="pref.advanced.images.disable_button.view_image"/>
</vbox>
</row>
<separator class="thin"/>
<row id="advancedJavaAllowRow">
<vbox align="start">
<checkbox id="advancedJavaAllow" label="&enbJavaCheck.label;" accesskey="&enbJavaCheck.accesskey;"
preference="security.enable_java"/>
</vbox>
</row>
<row id="enableJavaScriptRow">
<vbox align="start">
<checkbox id="enableJavaScript" preference="javascript.enabled"
label="&enableJavaScript.label;" accesskey="&enableJavaScript.accesskey;"
onsyncfrompreference="return gContentPane.updateButtons('disableAnnoyances',
'javascript.enabled');"/>
<checkbox id="disableAnnoyances" class="indent"
preference="browser.jsannoyances.disabled"
label="&disableAnnoyances.label;" accesskey="&disableAnnoyances.accesskey;"
onsyncfrompreference="return gContentPane.readAnnoyancesEnabled();"
onsynctopreference="return gContentPane.writeAnnoyancesEnabled();"/>
</vbox>
</row>
</rows>
</grid>
</groupbox>
<groupbox>
<caption label="&fonts.caption;"/>
<grid>
<columns>
<column flex="1"/>
<column/>
</columns>
<rows id="contentRows-2">
<row id="fontRow">
<hbox align="center">
<label control="defaultFont" accesskey="&defaultFont.accesskey;">&defaultFont.label;</label>
<menulist id="defaultFont" flex="1"/>
<label control="defaultFontSize" accesskey="&defaultFontSize.accesskey;">&defaultFontSize.label;</label>
<menulist id="defaultFontSize">
<menupopup>
<menuitem value="9" label="9"/>
<menuitem value="10" label="10"/>
<menuitem value="11" label="11"/>
<menuitem value="12" label="12"/>
<menuitem value="13" label="13"/>
<menuitem value="14" label="14"/>
<menuitem value="15" label="15"/>
<menuitem value="16" label="16"/>
<menuitem value="17" label="17"/>
<menuitem value="18" label="18"/>
<menuitem value="20" label="20"/>
<menuitem value="22" label="22"/>
<menuitem value="24" label="24"/>
<menuitem value="26" label="26"/>
<menuitem value="28" label="28"/>
<menuitem value="30" label="30"/>
<menuitem value="32" label="32"/>
<menuitem value="34" label="34"/>
<menuitem value="36" label="36"/>
<menuitem value="40" label="40"/>
<menuitem value="44" label="44"/>
<menuitem value="48" label="48"/>
<menuitem value="56" label="56"/>
<menuitem value="64" label="64"/>
<menuitem value="72" label="72"/>
</menupopup>
</menulist>
</hbox>
<button icon="select-font" label="&advancedFonts.label;"
accesskey="&advancedFonts.accesskey;"
oncommand="gContentPane.showFonts();"/>
</row>
<row id="selectColorRow">
<hbox/>
<button icon="select-color" label="&colors.label;"
accesskey="&colors.accesskey;"
oncommand="gContentPane.showColors();"/>
</row>
</rows>
</grid>
</groupbox>
</prefpane>
</overlay>