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

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

2000-04-25 07:09:02 +04:00
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://messenger/skin/prefPanels.css" type="text/css"?>
<?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">
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="parent.initPanel('chrome://messenger/content/messengercompose/pref-composing_messages.xul');">
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"];
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
observerService.notifyObservers(null, "charsetmenu-selected", "mailedit");
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 && !quotecheck.disabled ) {
2000-04-25 07:09:02 +04:00
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.setAttribute("disabled","true");
}
2000-04-25 07:09:02 +04:00
}
]]>
</script>
<hbox class="box-smallheader" title="&pane.title;"/>
2000-04-25 07:09:02 +04:00
<groupbox>
<caption label="&forwardReply.label;"/>
<hbox align="center">
<label value="&forwardMsg.label;" accesskey="&forwardMsg.accesskey;"/>
2000-04-25 07:09:02 +04:00
<menulist id="forwardMessageMode"
prefstring="mail.forward_message_mode">
2000-04-25 07:09:02 +04:00
<menupopup>
<menuitem value="2" label="&inline.label;" accesskey="&inline.accesskey;"/>
<menuitem value="0" label="&asAttachment.label;" accesskey="&asAttachment.accesskey;"/>
2000-04-25 07:09:02 +04:00
</menupopup>
</menulist>
</hbox>
<hbox align="center">
<checkbox id="autoQuote" label="&autoQuote.label;"
prefstring="mail.auto_quote"
oncommand="doEnabling();"/>
</hbox>
<hbox class="indent" align="center" id="thenBox">
<label value="&then.label;" accesskey="&then.accesskey;" control="replyOnTop"/>
<menulist id="replyOnTop" preftype="int" prefstring="mailnews.reply_on_top">
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="&selectAndQuote.label;" accesskey="&selectAndQuote.accesskey;"/>
2000-04-25 07:09:02 +04:00
</menupopup>
</menulist>
</hbox>
</groupbox>
2000-04-25 07:09:02 +04:00
<!-- Composing Mail -->
<groupbox align="start">
<caption label="&sendingMessagesHeader.label;"/>
2000-04-25 07:09:02 +04:00
<checkbox id="spellCheckBeforeSend" label="&spellCheck.label;"
prefstring="mail.SpellCheckBeforeSend"/>
<checkbox id="strictlyMime" label="&useMIME.label;"
prefstring="mail.strictly_mime"/>
<hbox align="center">
<label value="&wrapOutMsg.label;" accesskey="&wrapOutMsg.accesskey;" control="wrapLength"/>
<textbox id="wrapLength" size="3" preftype="int"
prefstring="mailnews.wraplength" prefattribute="value"/>
<label value="&char.label;"/>
</hbox>
<hbox align="center">
<label value="&sendDefaultCharset.label;" accesskey="&sendDefaultCharset.accesskey;" page="sendDefaultCharsetList"/>
<menulist id="sendDefaultCharsetList" ref="NC:MaileditCharsetMenuRoot" datasources="rdf:charset-menu"
preftype="localizedstring" prefstring="mailnews.send_default_charset">
<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>
</hbox>
</groupbox>
<!--
<groupbox align="start">
<caption label="&languages.label;"/>
<hbox align="center">
<label value="&sendDefaultCharset.label;" control="sendDefaultCharsetList"/>
<menulist id="sendDefaultCharsetList" ref="NC:MaileditCharsetMenuRoot" datasources="rdf:charset-menu"
preftype="localizedstring" prefstring="mailnews.send_default_charset">
<template>
<menupopup>
<menuitem label="rdf:http://home.netscape.com/NC-rdf#Name" value="..." uri="..."/>
</menupopup>
</template>
</menulist>
</hbox>
</groupbox>
-->
</page>