mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
1df3f9eb17
right now, it only works for int prefs. fix #15230, heed and reflect the quoted style and quoted size prefs in the html select widget in pref-mailnews.xul. rewrite the html select elements in the pref xul, to work correctly. remove unused, commented out xul to avoid confusion. add new option for "yesterday" for the news offline download pref. use nsCOMPtr. use PR_snprintf() to avoid potential buffer overruns. use #defines to clean up the code. use PR_sscanf instead of sscanf. r=mscott
154 lines
4.8 KiB
XML
154 lines
4.8 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
The contents of this file are subject to the Netscape 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/NPL/
|
|
|
|
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 Communicator client code, released
|
|
March 31, 1998.
|
|
|
|
The Initial Developer of the Original Code is Netscape
|
|
Communications Corporation. Portions created by Netscape are
|
|
Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
Rights Reserved.
|
|
|
|
Contributor(s):
|
|
-->
|
|
<?xml-stylesheet href="chrome://pref/skin/pref.css" type="text/css"?>
|
|
|
|
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-fonts.dtd" >
|
|
<window xmlns:html="http://www.w3.org/TR/REC-html40"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
onload="StartUp('Fonts')" title="&window.title;">
|
|
|
|
<html:script language="javascript" src="PrefsWindow.js"/>
|
|
<html:div flex="100%">
|
|
<box id="header" align="horizontal">
|
|
<spring style="width:20px"/>
|
|
<html:div style="vertical-align: middle;">
|
|
<html:B>&lHeader;</html:B>
|
|
</html:div>
|
|
<spring flex="100%"/><spring style="width:60px"/>
|
|
<html:div >&rHeader;</html:div><spring style="width:5px"/>
|
|
</box>
|
|
<box align="vertical" style="width: 100%;">
|
|
<html:fieldset style="width: 100%;">
|
|
<html:div>
|
|
&encod.select;
|
|
<html:select>
|
|
<html:option>&encod1.option;</html:option>
|
|
</html:select>
|
|
</html:div>
|
|
<html:div>
|
|
&varFont.select;
|
|
<html:select>
|
|
<html:option>&encod1.option;</html:option>
|
|
</html:select>
|
|
&size.select;
|
|
<html:select>
|
|
<html:option>&varFont.option;</html:option>
|
|
</html:select>
|
|
</html:div>
|
|
<html:div>
|
|
&fixedFont.Select;
|
|
<html:select>
|
|
<html:option>&encod1.option;</html:option>
|
|
</html:select>
|
|
&size.select;
|
|
<html:select>
|
|
<html:option>&varFont.option;</html:option>
|
|
</html:select>
|
|
</html:div>
|
|
<html:br />
|
|
<html:div>
|
|
&header2;
|
|
</html:div>
|
|
<html:div>
|
|
<html:input name="fonts" type="radio" id="pref:0:int:browser.use_document_fonts" val="checked" />
|
|
<html:label for="pref:0:int:browser.use_document_fonts" accesskey="t" tabindex="0">
|
|
&useDefaultFont;
|
|
</html:label>
|
|
</html:div>
|
|
<html:div>
|
|
<html:input name="fonts" type="radio" id="pref:1:int:browser.use_document_fonts" val="checked" />
|
|
<html:label for="pref:1:int:browser.use_document_fonts" accesskey="t" tabindex="0">
|
|
&useDocFontNonDynamic;
|
|
</html:label>
|
|
</html:div>
|
|
<html:div>
|
|
<html:input name="fonts" type="radio" id="pref:2:int:browser.use_document_fonts" val="checked" />
|
|
<html:label for="pref:2:int:browser.use_document_fonts" accesskey="t" tabindex="0">
|
|
&useDocFontDynamic;
|
|
</html:label>
|
|
</html:div>
|
|
</html:fieldset>
|
|
</box>
|
|
|
|
<!--
|
|
<html:table>
|
|
<html:tr>
|
|
<html:td>&encod.select;
|
|
</html:td>
|
|
<html:td>
|
|
<html:select id="pref">
|
|
<html:optgroup>
|
|
<html:option>&encod1.option;</html:option>
|
|
</html:optgroup>
|
|
</html:select>
|
|
</html:td>
|
|
<html:td>&size.select;
|
|
<html:select id="pref">
|
|
<html:optgroup>
|
|
<html:option>&size1.option;</html:option>
|
|
</html:optgroup>
|
|
</html:select>
|
|
</html:td></html:tr>
|
|
<html:tr>
|
|
<html:td>&varFont.select;</html:td>
|
|
<html:td>
|
|
<html:select id="pref">
|
|
<html:optgroup>
|
|
<html:option>Filler</html:option>
|
|
</html:optgroup>
|
|
</html:select>
|
|
</html:td>
|
|
<html:td>&size.select;
|
|
<html:select id="pref">
|
|
<html:optgroup>
|
|
<html:option>&varFont.option;</html:option>
|
|
</html:optgroup>
|
|
</html:select>
|
|
</html:td>
|
|
</html:tr>
|
|
<html:tr>
|
|
<html:td>&fixedFont.Select;
|
|
</html:td>
|
|
<html:td>
|
|
<html:select class="combobox" id="pref">
|
|
<html:optgroup>
|
|
<html:option>&fixedFont.option;</html:option>
|
|
</html:optgroup>
|
|
</html:select>
|
|
</html:td>
|
|
<html:td></html:td>
|
|
</html:tr>
|
|
</html:table>
|
|
<html:br />
|
|
<html:table>
|
|
<html:tr><html:td>&header2;</html:td></html:tr>
|
|
<html:tr><html:td><html:label>
|
|
<html:input name="fonts" type="radio" id="pref:0:int:browser.use_document_fonts" val="checked" />&useDefaultFont;</html:label></html:td></html:tr>
|
|
<html:tr><html:td><html:label><html:input name="fonts" type="radio" id="pref:1:int:browser.use_document_fonts" />&useDocFontNonDynamic;</html:label></html:td></html:tr>
|
|
<html:tr><html:td><html:label><html:input name="fonts" type="radio" id="pref:2:int:browser.use_document_fonts" />&useDocFontDynamic;</html:label></html:td></html:tr>
|
|
</html:table>
|
|
|
|
-->
|
|
</html:div>
|
|
</window>
|