3 # -*- Mode: Java; tab-width:
4; indent-tabs-mode: nil; c-basic-offset:
4 -*-
4 # ***** BEGIN LICENSE BLOCK *****
5 # Version: MPL
1.1/GPL
2.0/LGPL
2.1
7 # The contents of this file are subject to the Mozilla Public License Version
8 #
1.1 (the
"License"); you may not use this file except in compliance with
9 # the License. You may obtain a copy of the License at
10 # http://www.mozilla.org/MPL/
12 # Software distributed under the License is distributed on an
"AS IS" basis,
13 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14 # for the specific language governing rights and limitations under the
17 # The Original Code is the Firefox Preferences System.
19 # The Initial Developer of the Original Code is
21 # Portions created by the Initial Developer are Copyright (C)
2005
22 # the Initial Developer. All Rights Reserved.
25 # Ben Goodger
<ben@mozilla.org
>
26 # Jeff Walden
<jwalden+code@mit.edu
>
27 # Myk Melez
<myk@mozilla.org
>
29 # Alternatively, the contents of this file may be used under the terms of
30 # either the GNU General Public License Version
2 or later (the
"GPL"), or
31 # the GNU Lesser General Public License Version
2.1 or later (the
"LGPL"),
32 # in which case the provisions of the GPL or the LGPL are applicable instead
33 # of those above. If you wish to allow use of your version of this file only
34 # under the terms of either the GPL or the LGPL, and not to allow others to
35 # use your version of this file under the terms of the MPL, indicate your
36 # decision by deleting the provisions above and replace them with the notice
37 # and other provisions required by the GPL or the LGPL. If you do not delete
38 # the provisions above, a recipient may use your version of this file under
39 # the terms of any one of the MPL, the GPL or the LGPL.
41 # ***** END LICENSE BLOCK *****
44 <!ENTITY % brandDTD SYSTEM
"chrome://branding/locale/brand.dtd">
45 <!ENTITY % mainDTD SYSTEM
"chrome://browser/locale/preferences/main.dtd">
46 <!ENTITY % aboutHomeDTD SYSTEM
"chrome://browser/locale/aboutHome.dtd">
52 <overlay id=
"MainPaneOverlay"
53 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
55 <prefpane id=
"paneMain"
56 onpaneload=
"gMainPane.init();"
57 helpTopic=
"prefs-main">
59 <script type=
"application/javascript" src=
"chrome://browser/content/preferences/main.js"/>
61 <preferences id=
"mainPreferences">
62 <!-- XXX Button preferences -->
65 <preference id=
"browser.startup.page"
66 name=
"browser.startup.page"
68 <preference id=
"browser.startup.homepage"
69 name=
"browser.startup.homepage"
72 <preference id=
"pref.browser.homepage.disable_button.current_page"
73 name=
"pref.browser.homepage.disable_button.current_page"
75 <preference id=
"pref.browser.homepage.disable_button.bookmark_page"
76 name=
"pref.browser.homepage.disable_button.bookmark_page"
78 <preference id=
"pref.browser.homepage.disable_button.restore_default"
79 name=
"pref.browser.homepage.disable_button.restore_default"
82 <preference id=
"browser.privatebrowsing.autostart"
83 name=
"browser.privatebrowsing.autostart"
85 onchange=
"gMainPane.updateBrowserStartupLastSession();"/>
88 <preference id=
"browser.download.manager.showWhenStarting"
89 name=
"browser.download.manager.showWhenStarting"
91 onchange=
"gMainPane.showDownloadsWhenStartingPrefChanged();"/>
92 <preference id=
"browser.download.manager.closeWhenDone"
93 name=
"browser.download.manager.closeWhenDone"
95 <preference id=
"browser.download.useDownloadDir"
96 name=
"browser.download.useDownloadDir"
98 <preference id=
"browser.download.dir"
99 name=
"browser.download.dir"
101 onchange=
"gMainPane.displayDownloadDirPref();"/>
102 <preference id=
"browser.download.folderList" name=
"browser.download.folderList" type=
"int"/>
106 <stringbundle id=
"bundlePreferences" src=
"chrome://browser/locale/preferences/preferences.properties"/>
109 <groupbox id=
"startupGroup">
110 <caption label=
"&startup.label;"/>
112 <hbox align=
"center">
113 <label value=
"&startupPage.label;" accesskey=
"&startupPage.accesskey;"
114 control=
"browserStartupPage"/>
115 <menulist id=
"browserStartupPage" preference=
"browser.startup.page">
117 <menuitem label=
"&startupHomePage.label;" value=
"1" id=
"browserStartupHomePage"/>
118 <menuitem label=
"&startupBlankPage.label;" value=
"0" id=
"browserStartupBlank"/>
119 <menuitem label=
"&startupLastSession.label;" value=
"3" id=
"browserStartupLastSession"/>
123 <separator class=
"thin"/>
124 <hbox align=
"center">
125 <label value=
"&homepage.label;" accesskey=
"&homepage.accesskey;" control=
"browserHomePage"/>
126 <textbox id=
"browserHomePage" class=
"padded uri-element" flex=
"1"
127 type=
"autocomplete" autocompletesearch=
"history"
128 onsyncfrompreference=
"return gMainPane.syncFromHomePref();"
129 onsynctopreference=
"return gMainPane.syncToHomePref(this.value);"
130 placeholder=
"&abouthome.pageTitle;"
131 preference=
"browser.startup.homepage"/>
133 <hbox align=
"center" pack=
"end">
134 <button label=
"" accesskey=
"&useCurrentPage.accesskey;"
135 label1=
"&useCurrentPage.label;"
136 label2=
"&useMultiple.label;"
137 oncommand=
"gMainPane.setHomePageToCurrent();"
139 preference=
"pref.browser.homepage.disable_button.current_page"/>
140 <button label=
"&useBookmark.label;" accesskey=
"&useBookmark.accesskey;"
141 oncommand=
"gMainPane.setHomePageToBookmark();"
143 preference=
"pref.browser.homepage.disable_button.bookmark_page"/>
144 <button label=
"&restoreDefault.label;" accesskey=
"&restoreDefault.accesskey;"
145 oncommand=
"gMainPane.restoreDefaultHomePage();"
146 id=
"restoreDefaultHomePage"
147 preference=
"pref.browser.homepage.disable_button.restore_default"/>
152 <groupbox id=
"downloadsGroup">
153 <caption label=
"&downloads.label;"/>
155 <checkbox id=
"showWhenDownloading" label=
"&showWhenDownloading.label;"
156 accesskey=
"&showWhenDownloading.accesskey;"
157 preference=
"browser.download.manager.showWhenStarting"
158 onsyncfrompreference=
"return gMainPane.readShowDownloadsWhenStarting();"/>
159 <checkbox id=
"closeWhenDone" label=
"&closeWhenDone.label;"
160 accesskey=
"&closeWhenDone.accesskey;" class=
"indent"
161 preference=
"browser.download.manager.closeWhenDone"/>
163 <separator class=
"thin"/>
165 <radiogroup id=
"saveWhere"
166 preference=
"browser.download.useDownloadDir"
167 onsyncfrompreference=
"return gMainPane.readUseDownloadDir();">
168 <hbox id=
"saveToRow">
169 <radio id=
"saveTo" value=
"true"
170 label=
"&saveTo.label;"
171 accesskey=
"&saveTo.accesskey;"
172 aria-labelledby=
"saveTo downloadFolder"/>
173 <filefield id=
"downloadFolder" flex=
"1"
174 preference=
"browser.download.folderList"
175 preference-editable=
"true"
176 aria-labelledby=
"saveTo"
177 onsyncfrompreference=
"return gMainPane.displayDownloadDirPref();"
178 onsynctopreference=
"return gMainPane.getFolderListPref()"/>
179 <button id=
"chooseFolder" oncommand=
"gMainPane.chooseFolder();"
181 accesskey=
"&chooseFolderMac.accesskey;"
182 label=
"&chooseFolderMac.label;"
184 accesskey=
"&chooseFolderWin.accesskey;"
185 label=
"&chooseFolderWin.label;"
187 preference=
"browser.download.folderList"
188 onsynctopreference=
"return gMainPane.getFolderListPref();"/>
190 <radio id=
"alwaysAsk" value=
"false"
191 label=
"&alwaysAsk.label;"
192 accesskey=
"&alwaysAsk.accesskey;"/>
196 <hbox class=
"bottomBox">
197 <groupbox id=
"addonsMgrGroup" orient=
"horizontal" flex=
"1">
198 <caption label=
"&addonsMgr.label;"/>
200 <description control=
"manageAddons"
202 flex=
"1">&manageAddonsDescWin.label;
</description>
204 flex=
"1">&manageAddonsDescUnix2.label;
</description>
206 <button id=
"manageAddons" label=
"&manageAddons.label;"
207 accesskey=
"&manageAddons.accesskey;"
208 oncommand=
"gMainPane.showAddonsMgr();"/>