home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <?xml-stylesheet href="chrome://editor/skin/editorFormatToolbar.css" type="text/css"?>
- <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
- <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
- <?xml-stylesheet href="chrome://aim/skin/prefPanels.css" type="text/css"?>
- <?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
- <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
-
- <!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-IM_style.dtd">
-
- <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- onload="aimPreferenceOnload(); parent.initPanel('chrome://aim/content/pref-IM_style.xul'); PrefIMStyleOnload();"
- headertitle="&stylePanel.title;">
-
- <script language="JavaScript">
- <![CDATA[
- _elementIDs = ["FontFaceSelectStyle", "fontsize", "textstyles", "bold", "italics", "underline", "textColorData", "backgroundColorData"];
- ]]>
- </script>
-
- <script language="JavaScript" src="chrome://aim/content/aimHelpers.js" />
- <script language="javascript" src="chrome://aim/content/prefIM.js"/>
- <script language="JavaScript" src="chrome://aim/content/AimSession.js" />
-
- <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
-
- <!-- Color pickers from the editorOverlay.xul -->
- <popupset id="popup_set">
- <popup id="TextColorPopup"/>
- <popup id="BackColorPopup"/>
- </popupset>
-
- <!-- No "oncommand", use EditorSelectColor() to bring up color dialog -->
- <command id="cmd_fontColor" state=""/>
- <command id="cmd_backgroundColor" state=""/>
-
-
- <vbox>
- <groupbox>
- <caption label="&header1.label;"/>
- <grid>
-
- <columns>
- <column />
- <column />
- </columns>
-
- <rows>
- <row id="stylealignment">
- <label value="&font.label;" control="FontFaceSelectStyle"/>
- <hbox orient="vertical">
- <menulist prefscope="0" pref="true" preftype="string" prefstring="aim.style.fontface" id="FontFaceSelectStyle" crop="right">
- <menupopup id="FontFacePopupStyle">
- <menuitem label="&fontHelveticaFont.label;" value="Helvetica, foo, sans-serif"/>
- <menuitem label="&fontTimes.label;" value="Times New Roman, Times, serif"/>
- <menuitem label="&fontCourier.label;" value="Courier New, Courier, monospace"/>
- </menupopup>
- </menulist>
- </hbox>
- <spacer flex="1"/>
- <label value="&fontsize.label;" control="fontsize"/>
- <radiogroup id="fontsize" pref="true" preftype="string" prefscope="0" prefstring="aim.style.fontsize">
- <radio id="small" class="small-margin" group="fontsize" value="small" label="&radioSmall.label;" />
- <radio id="medium" class="small-margin" group="fontsize" value="" label="&radioMedium.label;" />
- <radio id="large" class="small-margin" group="fontsize" value="big" label="&radioLarge.label;" />
- </radiogroup>
-
- </row>
- </rows>
-
- </grid>
-
- </groupbox>
-
- <hbox id="topTextBox">
-
- <groupbox flex="1">
- <caption label="&header2.label;"/>
- <grid>
- <columns>
- <column/>
- <column flex="1"/>
- </columns>
- <rows>
- <row>
- <radiogroup id="textstyles" prefscope="0" pref="true" preftype="string" prefstring="aim.style.textstyles" oncommand="SwapSpecialStyles()">
- <radio id="none" class="small-margin" group="textstyles" value="" label="&radioNone.label;" />
- <radio id="some" class="small-margin" group="textstyles" value="1" label="&radioSome.label;" />
- </radiogroup>
- </row>
- <row>
- <vbox class="indent">
- <checkbox id="bold" style="font-weight: bold;" label="&bold.label;" prefscope="0" pref="true" preftype="bool" prefstring="aim.style.bold"/>
- <checkbox id="italics" pref="true" preftype="bool" style="font-style: italic;" label="&italic.label;" prefscope="0" prefstring="aim.style.italics"/>
- <checkbox id="underline" pref="true" preftype="bool" style="text-decoration: underline;" label="&underline.label;" prefscope="0" prefstring="aim.style.underline"/>
- </vbox>
- </row>
- </rows>
- </grid>
- </groupbox>
-
- <!-- Protocol -->
- <groupbox flex="1" orient="horizontal">
- <caption label="&header3.label;"/>
- <observes element="cmd_fontColor" attribute="state" onbroadcast="onFontColorChange()"/>
- <observes element="cmd_backgroundColor" attribute="state" onbroadcast="onBackgroundColorChange()"/>
- <grid>
- <columns>
- <column align="center" flex="1"/>
- <column align="center" flex="1"/>
-
- </columns>
-
- <rows>
- <row align="center" id="stylealignment">
- <label value="&text.label;" control="TextColorButton"/>
-
- <hbox>
- <spacer flex="3"/>
- <button id="imTextColorButton" flex="1" oncommand="GetColorAndUpdate('textCW');">
- <spacer id="textCW" class="color-well"/>
- </button>
- <data id="textColorData" prefscope="0" pref="true" preftype="color" prefstring="aim.style.forecolor" prefattribute="value" wsm_attributes="value"/>
- <spacer flex="3"/>
- </hbox>
-
- </row>
-
- <row align="center" id="stylealignment">
- <label value="&background.label;" control="BackgroundColorButton"/>
- <hbox>
- <spacer flex="3"/>
- <button id="imBackgroundColorButton" flex="1" oncommand="GetColorAndUpdate('backgroundCW');">
- <spacer id="backgroundCW" class="color-well"/>
- </button>
- <data id="backgroundColorData" prefscope="0" pref="true" preftype="color" prefstring="aim.style.backcolor" prefattribute="value" wsm_attributes="value"/>
- <spacer flex="3"/>
- </hbox>
- </row>
- </rows>
- </grid>
- </groupbox>
- </hbox>
- </vbox>
-
- </page>
-