175 lines
7.5 KiB
XML
175 lines
7.5 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 Mozilla.org Code.
|
|
#
|
|
# The Initial Developer of the Original Code is
|
|
# Doron Rosenberg.
|
|
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
# the Initial Developer. All Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
# Ben Goodger <ben@bengoodger.com>
|
|
#
|
|
# 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 *****
|
|
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://browser/skin/pref/pref.css" type="text/css"?>
|
|
|
|
<!DOCTYPE window SYSTEM "chrome://browser/locale/pref/pref-downloads.dtd" >
|
|
|
|
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
onload="parent.initPanel('chrome://browser/content/pref/pref-downloads.xul');"
|
|
headertitle="&lHeader;" onunload="uninit();">
|
|
|
|
<script type="application/x-javascript" src="chrome://browser/content/downloads/helperApps.js"/>
|
|
<script type="application/x-javascript" src="chrome://browser/content/pref/pref-downloads.js"/>
|
|
|
|
<groupbox>
|
|
<caption label="&askOnSave.label;"/>
|
|
|
|
<radiogroup id="askOnSave" onselect="doEnabling(this.selectedItem);" flex="1"
|
|
preftype="bool" prefstring="browser.download.useDownloadDir">
|
|
<radio id="alwaysAsk" label="&alwaysAsk.label;" value="false"/>
|
|
<hbox flex="1">
|
|
<radio id="neverAsk" label="&neverAsk.label;" value="true"/>
|
|
<button id="showFolder" label="&showFolder.label;" oncommand="showFolder();"/>
|
|
</hbox>
|
|
</radiogroup>
|
|
</groupbox>
|
|
|
|
#if 0
|
|
<groupbox>
|
|
<caption label="&downloadManagerWindow.label;"/>
|
|
|
|
<checkbox id="showWhenStarting" label="&showWhenStarting.label;"
|
|
prefstring="browser.download.showWhenStarting"/>
|
|
<checkbox id="closeWhenDone" label="&closeWhenDone.label;" class="indent"
|
|
prefstring="browser.download.closeWhenDone"/>
|
|
</groupbox>
|
|
#endif
|
|
|
|
<groupbox flex="1">
|
|
<caption label="&fileTypes.label;"/>
|
|
|
|
<description>&fileTypesDescription.label;</description>
|
|
<separator class="thin"/>
|
|
|
|
<!-- XXX it's really lame that I'm using a content backed tree here rather
|
|
than one built with treebuilder but for some reason treebuilder is
|
|
throwing "can't do open ended queries like that!" assertions for
|
|
no discernible reason -->
|
|
<vbox class="indent" flex="1">
|
|
<tree id="fileHandlersList" flex="1" hidecolumnpicker="true"
|
|
datasources="rdf:null"
|
|
onselect="fileHandlerListSelectionChanged();"
|
|
ondblclick="editFileHandler();">
|
|
|
|
<template>
|
|
<rule>
|
|
<conditions>
|
|
<content uri="?uri"/>
|
|
<triple subject="?uri"
|
|
predicate="http://home.netscape.com/NC-rdf#MIME-types"
|
|
object="?MIME-types"/>
|
|
<member container="?MIME-types" child="?type"/>
|
|
<triple subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileType"
|
|
object="?file-type"/>
|
|
<triple subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileHandler"
|
|
object="?file-handler"/>
|
|
<triple subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileIcon"
|
|
object="?file-icon"/>
|
|
<triple subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileHandleAuto"
|
|
object="true"/>
|
|
</conditions>
|
|
<bindings>
|
|
<binding subject="?type"
|
|
predicate="http://home.netscape.com/NC-rdf#FileExtension"
|
|
object="?file-extension"/>
|
|
</bindings>
|
|
<action>
|
|
<treechildren class="extensionChildren">
|
|
<treeitem uri="?type">
|
|
<treerow>
|
|
<treecell label="?file-extension" src="?file-icon"/>
|
|
<treecell label="?file-type"/>
|
|
<treecell label="?file-handler"/>
|
|
</treerow>
|
|
</treeitem>
|
|
</treechildren>
|
|
</action>
|
|
</rule>
|
|
</template>
|
|
|
|
<treecols>
|
|
<treecol id="fileExtension"
|
|
class="sortDirectionIndicator" persist="width"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#FileExtension"
|
|
sortActive="true" sortDirection="none" hideheader="true"/>
|
|
<treecol id="fileType" flex="1"
|
|
class="sortDirectionIndicator" persist="width"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#FileType"
|
|
sortActive="false" sortDirection="none" hideheader="true"/>
|
|
<splitter class="tree-splitter" />
|
|
<treecol id="fileHandler" flex="1"
|
|
class="sortDirectionIndicator" persist="width"
|
|
sort="rdf:http://home.netscape.com/NC-rdf#FileHandler"
|
|
sortActive="false" sortDirection="none" hideheader="true"/>
|
|
</treecols> <!-- label="&fileHandlerColName.label;" label="&fileTypeColName.label;" -->
|
|
</tree>
|
|
|
|
<separator class="thin"/>
|
|
<hbox>
|
|
<button label="&editFileHandler.label;" accesskey="&editFileHandler.accesskey;"
|
|
id="editFileHandler" oncommand="editFileHandler();"/>
|
|
<button label="&removeFileHandler.label;" accesskey="&removeFileHandler.accesskey;"
|
|
id="removeFileHandler" oncommand="removeFileHandler();"/>
|
|
<spring flex="1"/>
|
|
<button label="&plugins.label;" accesskey="&plugins.accesskey;"
|
|
id="plugins" oncommand="showPlugins();"/>
|
|
</hbox>
|
|
</vbox>
|
|
|
|
</groupbox>
|
|
|
|
<menulist id="downloadFolderList" flex="1" hidden="true"
|
|
preftype="int" prefstring="browser.download.folderList" prefdefval="0"
|
|
oncommand="folderListCommand();">
|
|
<menupopup>
|
|
<menuitem value="0" label="&desktop.label;"/>
|
|
<menuitem value="1" label="&downloads.label;"/>
|
|
<menuitem value="2" label="" hidden="true" id="downloadFolder" crop="center" flex="1"/>
|
|
<menuitem value="9" label="&choose.label;"/>
|
|
</menupopup>
|
|
</menulist>
|
|
|
|
</page>
|
|
|