home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / messenger.jar / content / messenger / pref-viewing_messages.xul < prev    next >
Extensible Markup Language  |  2001-02-14  |  6KB  |  132 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  3. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
  4. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  5. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  6.  
  7. <!DOCTYPE window SYSTEM "chrome://messenger/locale/pref-viewing_messages.dtd">
  8.  
  9. <window xmlns:html="http://www.w3.org/1999/xhtml"
  10.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.         class="color-dialog"
  12.         onload="parent.initPanel('chrome://messenger/content/pref-viewing_messages.xul');"
  13.         orient="vertical">
  14.   <popupset id="aTooltipSet"/>
  15.  
  16.   <script language="javascript">
  17.   <![CDATA[
  18.     _elementIDs = ["mailFixedWidthMessages", "mailQuotedStyle", "mailQuotedSize", "wrapLongLines", "displayGlyph", "mailCitationColor", "sendDefaultCharsetList", "forceCharsetOverride"];
  19.  
  20.     function Startup()
  21.     {
  22.       getColorFromPickerAndSetWell('citationmenu', 'mailCitationColor');
  23.     }
  24.  
  25.     function getColorFromPickerAndSetWell(menuID, colorfield)
  26.     {
  27.       var picker = document.getElementById( menuID );
  28.       var colorValue = document.getElementById( colorfield );
  29.       if (picker) {
  30.         picker.color = colorValue.getAttribute("value");
  31.       }
  32.     }
  33.     
  34.     function setColorWell(aPicker) 
  35.     {
  36.       var colorRef = aPicker.nextSibling; 
  37.       colorRef.setAttribute("value", aPicker.color );
  38.     }
  39.  
  40.     dump("*** foopy noopy\n");
  41.  
  42.   ]]>
  43.   </script>
  44.         
  45.   <script language="javascript" src="chrome://global/content/strres.js"/>
  46.   <script language="javascript" src="chrome://communicator/content/pref/prefutilities.js"/>
  47.  
  48.   <box class="box-smallheader" title="&pane.title;"/>
  49.  
  50.   <titledbox orient="vertical">
  51.     <title><text value="&displayWidth.label;"/></title>
  52.  
  53.       <html>&plainText.label;</html>
  54.     
  55.     <box orient="horizontal" class="indent">
  56.       <radiogroup id="mailFixedWidthMessages" orient="vertical" autostretch="never"
  57.                   pref="true" preftype="bool" prefstring="mail.fixed_width_messages"
  58.                   prefattribute="data">
  59.         <radio group="mailFixedWidthMessages" data="true" value="&fixedWidth.label;"/>
  60.         <radio group="mailFixedWidthMessages" data="false" value="&variableWidth.label;"/>                
  61.       </radiogroup>
  62.     </box>
  63.  
  64.     <separator class="thin"/>
  65.     <html>&displayText.label;</html>
  66.     <box class="indent" autostretch="never">
  67.       <text class="label" value="&style.label;" accesskey="&style.accesskey;" for="mailQuotedStyle"/>
  68.       <menulist id="mailQuotedStyle" pref="true" preftype="int" prefstring="mail.quoted_style"
  69.                 prefattribute="data">
  70.         <menupopup>
  71.           <menuitem data="0" value="®ular.label;"/>
  72.           <menuitem data="1" value="&bold.label;"/>
  73.           <menuitem data="2" value="&italic.label;"/>
  74.           <menuitem data="3" value="&boldItalic.label;"/>
  75.         </menupopup>
  76.       </menulist>
  77.  
  78.       <text class="label" value="&size.label;" accesskey="&size.accesskey;" for="mailQuotedSize"/>
  79.       <menulist id="mailQuotedSize" pref="true" preftype="int" prefstring="mail.quoted_size"
  80.                 prefattribute="data">
  81.         <menupopup>
  82.           <menuitem data="0" value="®ular.label;"/>
  83.           <menuitem data="1" value="&bigger.label;"/>
  84.           <menuitem data="2" value="&smaller.label;"/>
  85.         </menupopup>
  86.       </menulist>
  87.       
  88.       <text class="label" value="&color.label;" accesskey="&color.accesskey;"/>
  89.       <colorpicker type="button" id="citationmenu" palettename="standard" onclick="setColorWell(this)"/>
  90.       <broadcaster id="mailCitationColor" pref="true" preftype="color" prefstring="mail.citation_color" prefattribute="value" wsm_attributes="value"/>
  91.     </box>        
  92.  
  93.     <separator class="thin"/>
  94.     <html>&viewingPlainText.label;</html>
  95.     <box orient="vertical" class="indent">
  96.       <checkbox id="wrapLongLines" value="&wrapInMsg.label;"
  97.                 pref="true" preftype="bool" prefstring="mail.wrap_long_lines" 
  98.                 prefattribute="checked"/>
  99.       <checkbox class="iconic" id="displayGlyph" value="&convertEmoticons.label;"
  100.                 pref="true" preftype="bool" prefstring="mail.display_glyph"
  101.                 prefattribute="checked" tooltip="aTooltip" tooltiptext="&convertEmoticons.tooltip;"/>        
  102.       <box orient="horizontal" autostretch="never" class="indent">
  103.            <text value="&example1.label;" class="label"/>
  104.            <image class="smileface"/>
  105.            <text value="&example2.label;"/>
  106.       </box>
  107.     
  108.     </box>
  109.   </titledbox>
  110.  
  111.     <titledbox orient="vertical" autostretch="never">
  112.     <title><text value="&languagesTitle.label;"/></title>
  113.     <html>&coding.label;</html>
  114.     <box autostretch="never" class="indent">
  115.     <text class="label" value="&sendDefaultCharset.label;" accesskey="&sendDefaultCharset.accesskey;" for="sendDefaultCharsetList"/>
  116.     <menulist id="sendDefaultCharsetList" ref="NC:MaileditCharsetMenuRoot" datasources="rdf:charset-menu"
  117.               pref="true" preftype="string" prefstring="mailnews.view_default_charset"
  118.               prefattribute="data">
  119.       <template>
  120.         <menupopup>
  121.           <menuitem value="rdf:http://home.netscape.com/NC-rdf#Name" data="..." uri="..."/>
  122.         </menupopup>
  123.       </template>
  124.     </menulist>       
  125.     </box>    
  126.   <checkbox id="forceCharsetOverride" value="&forceCharsetOverride.label;"
  127.             pref="true" preftype="bool" prefstring="mailnews.force_charset_override" 
  128.             prefattribute="checked"/>
  129.     </titledbox>
  130.       
  131. </window>
  132.