|
1 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
2 - License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
3 - You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
4 |
|
5 <preferences id="contentPreferences"> |
|
6 |
|
7 <!-- Popups --> |
|
8 <preference id="dom.disable_open_during_load" |
|
9 name="dom.disable_open_during_load" |
|
10 type="bool"/> |
|
11 |
|
12 <!-- Fonts --> |
|
13 <preference id="font.language.group" |
|
14 name="font.language.group" |
|
15 type="wstring" |
|
16 onchange="gContentPane._rebuildFonts();"/> |
|
17 </preferences> |
|
18 |
|
19 <script type="application/javascript" |
|
20 src="chrome://mozapps/content/preferences/fontbuilder.js"/> |
|
21 <script type="application/javascript" |
|
22 src="chrome://browser/content/preferences/in-content/content.js"/> |
|
23 |
|
24 <hbox id="header-content" |
|
25 class="header" |
|
26 hidden="true" |
|
27 data-category="paneContent"> |
|
28 <image class="header-icon"/> |
|
29 <label class="header-name" |
|
30 value="&paneContent.title;"/> |
|
31 </hbox> |
|
32 |
|
33 <groupbox id="miscGroup" data-category="paneContent" hidden="true"> |
|
34 <caption label="&popups.label;"/> |
|
35 |
|
36 <grid id="contentGrid"> |
|
37 <columns> |
|
38 <column flex="1"/> |
|
39 <column/> |
|
40 </columns> |
|
41 <rows id="contentRows-1"> |
|
42 <row id="popupPolicyRow"> |
|
43 <vbox align="start"> |
|
44 <checkbox id="popupPolicy" preference="dom.disable_open_during_load" |
|
45 label="&blockPopups.label;" accesskey="&blockPopups.accesskey;" |
|
46 onsyncfrompreference="return gContentPane.updateButtons('popupPolicyButton', |
|
47 'dom.disable_open_during_load');"/> |
|
48 </vbox> |
|
49 <button id="popupPolicyButton" label="&popupExceptions.label;" |
|
50 oncommand="gContentPane.showPopupExceptions();" |
|
51 accesskey="&popupExceptions.accesskey;"/> |
|
52 </row> |
|
53 </rows> |
|
54 </grid> |
|
55 </groupbox> |
|
56 |
|
57 <!-- Fonts and Colors --> |
|
58 <groupbox id="fontsGroup" data-category="paneContent" hidden="true"> |
|
59 <caption label="&fontsAndColors.label;"/> |
|
60 |
|
61 <grid id="fontsGrid"> |
|
62 <columns> |
|
63 <column flex="1"/> |
|
64 <column/> |
|
65 </columns> |
|
66 <rows id="fontsRows"> |
|
67 <row id="fontRow"> |
|
68 <hbox align="center"> |
|
69 <label control="defaultFont" accesskey="&defaultFont.accesskey;">&defaultFont.label;</label> |
|
70 <menulist id="defaultFont" /> |
|
71 <label control="defaultFontSize" accesskey="&defaultSize.accesskey;">&defaultSize.label;</label> |
|
72 <menulist id="defaultFontSize"> |
|
73 <menupopup> |
|
74 <menuitem value="9" label="9"/> |
|
75 <menuitem value="10" label="10"/> |
|
76 <menuitem value="11" label="11"/> |
|
77 <menuitem value="12" label="12"/> |
|
78 <menuitem value="13" label="13"/> |
|
79 <menuitem value="14" label="14"/> |
|
80 <menuitem value="15" label="15"/> |
|
81 <menuitem value="16" label="16"/> |
|
82 <menuitem value="17" label="17"/> |
|
83 <menuitem value="18" label="18"/> |
|
84 <menuitem value="20" label="20"/> |
|
85 <menuitem value="22" label="22"/> |
|
86 <menuitem value="24" label="24"/> |
|
87 <menuitem value="26" label="26"/> |
|
88 <menuitem value="28" label="28"/> |
|
89 <menuitem value="30" label="30"/> |
|
90 <menuitem value="32" label="32"/> |
|
91 <menuitem value="34" label="34"/> |
|
92 <menuitem value="36" label="36"/> |
|
93 <menuitem value="40" label="40"/> |
|
94 <menuitem value="44" label="44"/> |
|
95 <menuitem value="48" label="48"/> |
|
96 <menuitem value="56" label="56"/> |
|
97 <menuitem value="64" label="64"/> |
|
98 <menuitem value="72" label="72"/> |
|
99 </menupopup> |
|
100 </menulist> |
|
101 </hbox> |
|
102 <button id="advancedFonts" icon="select-font" |
|
103 label="&advancedFonts.label;" |
|
104 accesskey="&advancedFonts.accesskey;" |
|
105 oncommand="gContentPane.configureFonts();"/> |
|
106 </row> |
|
107 <row id="colorsRow"> |
|
108 <hbox/> |
|
109 <button id="colors" icon="select-color" |
|
110 label="&colors.label;" |
|
111 accesskey="&colors.accesskey;" |
|
112 oncommand="gContentPane.configureColors();"/> |
|
113 </row> |
|
114 </rows> |
|
115 </grid> |
|
116 </groupbox> |
|
117 |
|
118 <!-- Languages --> |
|
119 <groupbox id="languagesGroup" data-category="paneContent" hidden="true"> |
|
120 <caption label="&languages.label;"/> |
|
121 |
|
122 <hbox id="languagesBox" align="center"> |
|
123 <description flex="1" control="chooseLanguage">&chooseLanguage.label;</description> |
|
124 <button id="chooseLanguage" |
|
125 label="&chooseButton.label;" |
|
126 accesskey="&chooseButton.accesskey;" |
|
127 oncommand="gContentPane.showLanguages();"/> |
|
128 </hbox> |
|
129 </groupbox> |