gecko-dev/mailnews/compose/prefs/resources/content/pref-composing_messages.xul

148 строки
5.8 KiB
Plaintext
Исходник Обычный вид История

2000-04-25 07:09:02 +04:00
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>
2000-05-11 06:52:07 +04:00
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
2000-04-25 07:09:02 +04:00
<!DOCTYPE window SYSTEM "chrome://messenger/locale/messengercompose/pref-composing_messages.dtd">
<window xmlns:html="http://www.w3.org/1999/xhtml"
2000-04-25 07:09:02 +04:00
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="parent.initPanel('chrome://messenger/content/messengercompose/pref-composing_messages.xul');"
orient="vertical"
class="color-dialog">
2000-05-11 06:52:07 +04:00
<popupset id="aTooltipSet"/>
2000-04-25 07:09:02 +04:00
<script type="application/x-javascript">
2000-04-25 07:09:02 +04:00
<![CDATA[
var _elementIDs = ["forwardMessageMode", "autoQuote", "replyOnTop", "spellCheckBeforeSend", "strictlyMime", "wrapLength", "sendDefaultCharsetList"];
2000-04-25 07:09:02 +04:00
function Startup()
{
doEnabling();
}
function doEnabling()
{
var quotebox = document.getElementById("thenBox");
var quotecheck = document.getElementById("autoQuote");
if( quotecheck.checked ) {
quotebox.firstChild.removeAttribute("disabled");
quotebox.lastChild.removeAttribute("disabled");
}
else {
quotebox.firstChild.setAttribute("disabled","true");
quotebox.lastChild.setAttribute("disabled","true");
}
var spellChecker;
try {
spellChecker = Components.classes["@mozilla.org/spellchecker;1"];
//switch to this when nsISpellChecker becomes scriptable
//spellChecker = Components.classes["@mozilla.org/spellchecker;1"].createInstance(Components.interfaces.nsISpellChecker);
}
catch (ex) {
spellChecker = null;
}
if (spellChecker) {
var spellCheckerCheckbox = document.getElementById("spellCheckBeforeSend");
spellCheckerCheckbox.removeAttribute("disabled");
}
2000-04-25 07:09:02 +04:00
}
]]>
</script>
<box class="box-smallheader" title="&pane.title;"/>
2000-04-25 07:09:02 +04:00
<titledbox orient="vertical">
<label value="&forwardReply.label;"/>
2000-04-25 07:09:02 +04:00
<box autostretch="never">
<text class="label" value="&forwardMsg.label;" accesskey="&forwardMsg.accesskey;"/>
<menulist id="forwardMessageMode"
pref="true" preftype="int" prefstring="mail.forward_message_mode"
prefattribute="value">
2000-04-25 07:09:02 +04:00
<menupopup>
<menuitem value="0" label="&asAttachment.label;" accesskey="&asAttachment.accesskey;"/>
<menuitem value="2" label="&inline.label;" accesskey="&inline.accesskey;"/>
2000-04-25 07:09:02 +04:00
</menupopup>
</menulist>
</box>
<box autostretch="never">
<checkbox id="autoQuote" label="&autoQuote.label;"
pref="true" preftype="bool" prefstring="mail.auto_quote"
prefattribute="checked" oncommand="doEnabling();"/>
</box>
2000-04-25 07:09:02 +04:00
<box class="indent" autostretch="never" id="thenBox">
<text class="label" value="&then.label;" accesskey="&then.accesskey;" for="replyOnTop"/>
<menulist id="replyOnTop" pref="true" preftype="int" prefstring="mailnews.reply_on_top"
prefattribute="value">
2000-04-25 07:09:02 +04:00
<menupopup>
<menuitem value="1" label="&aboveQuote.label;" accesskey="&aboveQuote.accesskey;"/>
<menuitem value="0" label="&belowQuote.label;" accesskey="&belowQuote.accesskey;"/>
<menuitem value="2" label="&selectAndAboveQuote.label;" accesskey="&selectAndAboveQuote.accesskey;"/>
<menuitem value="3" label="&selectAndBelowQuote.label;" accesskey="&selectAndBelowQuote.accesskey;"/>
2000-04-25 07:09:02 +04:00
</menupopup>
</menulist>
</box>
</titledbox>
<!-- Composing Mail -->
<titledbox orient="vertical" autostretch="never">
<label value="&sendingMessagesHeader.label;"/>
2000-04-25 07:09:02 +04:00
<checkbox id="spellCheckBeforeSend" label="&spellCheck.label;"
2000-04-25 07:09:02 +04:00
pref="true" preftype="bool" prefstring="mail.SpellCheckBeforeSend"
prefattribute="checked" disabled="true"/>
<checkbox id="strictlyMime" label="&useMIME.label;"
pref="true" preftype="bool" prefstring="mail.strictly_mime"
prefattribute="checked"/>
<box autostretch="never">
<text class="label" value="&wrapOutMsg.label;" accesskey="&wrapOutMsg.accesskey;" for="wrapLength"/>
<textbox id="wrapLength" size="3" pref="true" preftype="int"
prefstring="mailnews.wraplength" prefattribute="value"/>
<text class="label" value="&char.label;"/>
</box>
<box autostretch="never">
<text class="label" value="&sendDefaultCharset.label;" accesskey="&sendDefaultCharset.accesskey;" for="sendDefaultCharsetList"/>
<menulist id="sendDefaultCharsetList" ref="NC:MaileditCharsetMenuRoot" datasources="rdf:charset-menu"
pref="true" preftype="string" prefstring="mailnews.send_default_charset"
prefattribute="value">
<template>
2001-02-09 09:33:32 +03:00
<menupopup>
<menuitem label="rdf:http://home.netscape.com/NC-rdf#Name" value="..." uri="..."/>
</menupopup>
</template>
</menulist>
</box>
</titledbox>
<!--
<titledbox orient="vertical" autostretch="never">
<label value="&languages.label;"/>
<box autostretch="never">
<text class="label" value="&sendDefaultCharset.label;" for="sendDefaultCharsetList"/>
<menulist id="sendDefaultCharsetList" ref="NC:MaileditCharsetMenuRoot" datasources="rdf:charset-menu"
pref="true" preftype="string" prefstring="mailnews.send_default_charset"
prefattribute="value">
<template>
<menupopup>
<menuitem label="rdf:http://home.netscape.com/NC-rdf#Name" value="..." uri="..."/>
</menupopup>
</template>
</menulist>
</box>
2000-04-25 07:09:02 +04:00
</titledbox>
-->
2000-04-25 07:09:02 +04:00
2000-04-25 07:09:02 +04:00
2000-04-25 07:09:02 +04:00
</window>