|
1 <?xml version="1.0"?> |
|
2 |
|
3 <!-- -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- --> |
|
4 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
5 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
6 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
7 |
|
8 <!DOCTYPE overlay [ |
|
9 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> |
|
10 <!ENTITY % contentDTD SYSTEM "chrome://browser/locale/preferences/content.dtd"> |
|
11 %brandDTD; |
|
12 %contentDTD; |
|
13 ]> |
|
14 |
|
15 <overlay id="ContentPaneOverlay" |
|
16 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
|
17 |
|
18 <prefpane id="paneContent" |
|
19 onpaneload="gContentPane.init();" |
|
20 helpTopic="prefs-content"> |
|
21 |
|
22 <preferences id="contentPreferences"> |
|
23 <!--XXX buttons prefs --> |
|
24 |
|
25 <!-- POPUPS --> |
|
26 <preference id="dom.disable_open_during_load" name="dom.disable_open_during_load" type="bool"/> |
|
27 |
|
28 <!-- FONTS --> |
|
29 <preference id="font.language.group" |
|
30 name="font.language.group" |
|
31 type="wstring" |
|
32 onchange="gContentPane._rebuildFonts();"/> |
|
33 </preferences> |
|
34 |
|
35 <script type="application/javascript" src="chrome://mozapps/content/preferences/fontbuilder.js"/> |
|
36 <script type="application/javascript" src="chrome://browser/content/preferences/content.js"/> |
|
37 |
|
38 <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/> |
|
39 |
|
40 <!-- various checkboxes, font-fu --> |
|
41 <groupbox id="miscGroup"> |
|
42 <grid id="contentGrid"> |
|
43 <columns> |
|
44 <column flex="1"/> |
|
45 <column/> |
|
46 </columns> |
|
47 <rows id="contentRows-1"> |
|
48 <row id="popupPolicyRow"> |
|
49 <vbox align="start"> |
|
50 <checkbox id="popupPolicy" preference="dom.disable_open_during_load" |
|
51 label="&blockPopups.label;" accesskey="&blockPopups.accesskey;" |
|
52 onsyncfrompreference="return gContentPane.updateButtons('popupPolicyButton', |
|
53 'dom.disable_open_during_load');"/> |
|
54 </vbox> |
|
55 <button id="popupPolicyButton" label="&popupExceptions.label;" |
|
56 oncommand="gContentPane.showPopupExceptions();" |
|
57 accesskey="&popupExceptions.accesskey;"/> |
|
58 </row> |
|
59 </rows> |
|
60 </grid> |
|
61 </groupbox> |
|
62 |
|
63 <!-- Fonts and Colors --> |
|
64 <groupbox id="fontsGroup"> |
|
65 <caption label="&fontsAndColors.label;"/> |
|
66 |
|
67 <grid id="fontsGrid"> |
|
68 <columns> |
|
69 <column flex="1"/> |
|
70 <column/> |
|
71 </columns> |
|
72 <rows id="fontsRows"> |
|
73 <row id="fontRow"> |
|
74 <hbox align="center"> |
|
75 <label control="defaultFont" accesskey="&defaultFont.accesskey;">&defaultFont.label;</label> |
|
76 <menulist id="defaultFont" flex="1"/> |
|
77 <label control="defaultFontSize" accesskey="&defaultSize.accesskey;">&defaultSize.label;</label> |
|
78 <menulist id="defaultFontSize"> |
|
79 <menupopup> |
|
80 <menuitem value="9" label="9"/> |
|
81 <menuitem value="10" label="10"/> |
|
82 <menuitem value="11" label="11"/> |
|
83 <menuitem value="12" label="12"/> |
|
84 <menuitem value="13" label="13"/> |
|
85 <menuitem value="14" label="14"/> |
|
86 <menuitem value="15" label="15"/> |
|
87 <menuitem value="16" label="16"/> |
|
88 <menuitem value="17" label="17"/> |
|
89 <menuitem value="18" label="18"/> |
|
90 <menuitem value="20" label="20"/> |
|
91 <menuitem value="22" label="22"/> |
|
92 <menuitem value="24" label="24"/> |
|
93 <menuitem value="26" label="26"/> |
|
94 <menuitem value="28" label="28"/> |
|
95 <menuitem value="30" label="30"/> |
|
96 <menuitem value="32" label="32"/> |
|
97 <menuitem value="34" label="34"/> |
|
98 <menuitem value="36" label="36"/> |
|
99 <menuitem value="40" label="40"/> |
|
100 <menuitem value="44" label="44"/> |
|
101 <menuitem value="48" label="48"/> |
|
102 <menuitem value="56" label="56"/> |
|
103 <menuitem value="64" label="64"/> |
|
104 <menuitem value="72" label="72"/> |
|
105 </menupopup> |
|
106 </menulist> |
|
107 </hbox> |
|
108 <button id="advancedFonts" icon="select-font" |
|
109 label="&advancedFonts.label;" |
|
110 accesskey="&advancedFonts.accesskey;" |
|
111 oncommand="gContentPane.configureFonts();"/> |
|
112 </row> |
|
113 <row id="colorsRow"> |
|
114 <hbox/> |
|
115 <button id="colors" icon="select-color" |
|
116 label="&colors.label;" |
|
117 accesskey="&colors.accesskey;" |
|
118 oncommand="gContentPane.configureColors();"/> |
|
119 </row> |
|
120 </rows> |
|
121 </grid> |
|
122 </groupbox> |
|
123 |
|
124 <!-- Languages --> |
|
125 <groupbox id="languagesGroup"> |
|
126 <caption label="&languages.label;"/> |
|
127 |
|
128 <hbox id="languagesBox" align="center"> |
|
129 <description flex="1" control="chooseLanguage">&chooseLanguage.label;</description> |
|
130 <button id="chooseLanguage" |
|
131 label="&chooseButton.label;" |
|
132 accesskey="&chooseButton.accesskey;" |
|
133 oncommand="gContentPane.showLanguages();"/> |
|
134 </hbox> |
|
135 </groupbox> |
|
136 |
|
137 </prefpane> |
|
138 |
|
139 </overlay> |