home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / aim.jar / content / aim / pref-IM_style.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-07-29  |  6.6 KB  |  148 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://editor/skin/editorFormatToolbar.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  5. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://aim/skin/prefPanels.css" type="text/css"?>
  7. <?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
  8. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  9.  
  10. <!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-IM_style.dtd">
  11.  
  12. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  13.       onload="aimPreferenceOnload(); parent.initPanel('chrome://aim/content/pref-IM_style.xul'); PrefIMStyleOnload();"
  14.       headertitle="&stylePanel.title;">
  15.  
  16.   <script language="JavaScript">
  17.   <![CDATA[
  18.     _elementIDs = ["FontFaceSelectStyle", "fontsize", "textstyles", "bold", "italics", "underline", "textColorData", "backgroundColorData"];
  19.   ]]>
  20.   </script>
  21.         
  22.   <script language="JavaScript" src="chrome://aim/content/aimHelpers.js" />
  23.   <script language="javascript" src="chrome://aim/content/prefIM.js"/>
  24.   <script language="JavaScript" src="chrome://aim/content/AimSession.js" />
  25.  
  26. <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  27.  
  28.   <!-- Color pickers from the editorOverlay.xul -->
  29.   <popupset id="popup_set">
  30.     <popup id="TextColorPopup"/>
  31.     <popup id="BackColorPopup"/>
  32.   </popupset>
  33.  
  34.   <!-- No "oncommand", use EditorSelectColor() to bring up color dialog -->
  35.   <command id="cmd_fontColor"       state=""/>
  36.   <command id="cmd_backgroundColor" state=""/>
  37.  
  38.   
  39.   <vbox>
  40.     <groupbox>
  41.       <caption label="&header1.label;"/>
  42.       <grid>
  43.       
  44.         <columns>
  45.           <column />
  46.           <column />
  47.         </columns>
  48.       
  49.         <rows>
  50.           <row id="stylealignment">
  51.             <label value="&font.label;" control="FontFaceSelectStyle"/>
  52.               <hbox orient="vertical">
  53.                 <menulist prefscope="0" pref="true" preftype="string" prefstring="aim.style.fontface" id="FontFaceSelectStyle" crop="right">
  54.                 <menupopup id="FontFacePopupStyle">
  55.                   <menuitem label="&fontHelveticaFont.label;" value="Helvetica, foo, sans-serif"/>
  56.                   <menuitem label="&fontTimes.label;"         value="Times New Roman, Times, serif"/>
  57.                   <menuitem label="&fontCourier.label;"       value="Courier New, Courier, monospace"/>
  58.                 </menupopup>
  59.                 </menulist> 
  60.               </hbox>
  61.             <spacer flex="1"/>
  62.           <label value="&fontsize.label;" control="fontsize"/>
  63.           <radiogroup id="fontsize" pref="true" preftype="string" prefscope="0" prefstring="aim.style.fontsize">
  64.             <radio id="small" class="small-margin" group="fontsize" value="small" label="&radioSmall.label;" />
  65.             <radio id="medium" class="small-margin" group="fontsize" value="" label="&radioMedium.label;" />
  66.             <radio id="large"  class="small-margin" group="fontsize" value="big" label="&radioLarge.label;" />
  67.           </radiogroup>
  68.         
  69.           </row>
  70.         </rows>
  71.         
  72.       </grid>
  73.       
  74.      </groupbox> 
  75.  
  76.       <hbox id="topTextBox">
  77.       
  78.         <groupbox flex="1">
  79.           <caption label="&header2.label;"/>
  80.           <grid>
  81.             <columns>
  82.               <column/>
  83.               <column flex="1"/>
  84.             </columns>
  85.             <rows>
  86.               <row>
  87.                  <radiogroup id="textstyles" prefscope="0" pref="true" preftype="string" prefstring="aim.style.textstyles" oncommand="SwapSpecialStyles()">
  88.                     <radio id="none" class="small-margin" group="textstyles" value="" label="&radioNone.label;" />
  89.                     <radio id="some" class="small-margin" group="textstyles" value="1" label="&radioSome.label;" />
  90.                   </radiogroup>
  91.               </row>
  92.               <row>       
  93.                 <vbox class="indent">
  94.                     <checkbox id="bold" style="font-weight: bold;" label="&bold.label;" prefscope="0" pref="true" preftype="bool" prefstring="aim.style.bold"/>
  95.                     <checkbox id="italics" pref="true" preftype="bool" style="font-style: italic;" label="&italic.label;" prefscope="0" prefstring="aim.style.italics"/>
  96.                     <checkbox id="underline" pref="true" preftype="bool" style="text-decoration: underline;" label="&underline.label;" prefscope="0" prefstring="aim.style.underline"/>
  97.                 </vbox>
  98.               </row>
  99.             </rows>
  100.           </grid>
  101.         </groupbox> 
  102.  
  103.         <!-- Protocol -->
  104.         <groupbox flex="1" orient="horizontal">
  105.           <caption label="&header3.label;"/>
  106.             <observes element="cmd_fontColor"       attribute="state" onbroadcast="onFontColorChange()"/>
  107.             <observes element="cmd_backgroundColor" attribute="state" onbroadcast="onBackgroundColorChange()"/>
  108.             <grid>
  109.               <columns>
  110.                 <column align="center" flex="1"/>
  111.                 <column align="center" flex="1"/>
  112.                 
  113.               </columns>
  114.  
  115.               <rows>
  116.                 <row align="center" id="stylealignment">
  117.                   <label value="&text.label;" control="TextColorButton"/>
  118.                   
  119.                   <hbox>
  120.                     <spacer flex="3"/>
  121.                     <button id="imTextColorButton" flex="1" oncommand="GetColorAndUpdate('textCW');">
  122.                       <spacer id="textCW" class="color-well"/>
  123.                     </button>
  124.                     <data id="textColorData" prefscope="0" pref="true" preftype="color" prefstring="aim.style.forecolor" prefattribute="value" wsm_attributes="value"/>
  125.                     <spacer flex="3"/>
  126.                   </hbox>
  127.                   
  128.                 </row>
  129.  
  130.                 <row align="center" id="stylealignment">
  131.                   <label value="&background.label;" control="BackgroundColorButton"/>
  132.                   <hbox>
  133.                     <spacer flex="3"/>
  134.                     <button id="imBackgroundColorButton" flex="1" oncommand="GetColorAndUpdate('backgroundCW');">
  135.                       <spacer id="backgroundCW" class="color-well"/>
  136.                     </button>
  137.                     <data id="backgroundColorData" prefscope="0" pref="true" preftype="color" prefstring="aim.style.backcolor" prefattribute="value" wsm_attributes="value"/>
  138.                     <spacer flex="3"/>
  139.                   </hbox>
  140.                 </row>
  141.               </rows>
  142.             </grid>
  143.         </groupbox> 
  144.       </hbox>
  145.   </vbox>
  146.  
  147. </page>
  148.