home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / editor / pref-editing.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  6KB  |  134 lines

  1. <?xml version="1.0"?> 
  2. <!--
  3.    The contents of this file are subject to the Netscape Public
  4.    License Version 1.1 (the "License"); you may not use this file
  5.    except in compliance with the License. You may obtain a copy of
  6.    the License at http://www.mozilla.org/NPL/
  7.     
  8.    Software distributed under the License is distributed on an "AS
  9.    IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10.    implied. See the License for the specific language governing
  11.    rights and limitations under the License.
  12.     
  13.    The Original Code is Mozilla Communicator client code, released
  14.    March 31, 1998.
  15.    
  16.    The Initial Developer of the Original Code is Netscape
  17.    Communications Corporation. Portions created by Netscape are
  18.    Copyright (C) 1998-2000 Netscape Communications Corporation. All
  19.    Rights Reserved.
  20.    
  21.    Contributor(s): 
  22.   -->
  23.  
  24. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  25. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
  26.  
  27. <!DOCTYPE window SYSTEM "chrome://editor/locale/pref-editing.dtd">
  28.  
  29. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  30.       onload="parent.initPanel('chrome://editor/content/pref-editing.xul');"
  31.       headertitle="&lHeader;">
  32.  
  33.   <script lanugage="JavaScript">
  34.   <![CDATA[
  35.    var _elementIDs = ["editorAuthor", "useCustomColors", "textData", "linkData", "aLinkData", "fLinkData", "backgroundColorData", "backgroundImageData"];
  36.   ]]>
  37.   </script>
  38.  
  39.   <script type="application/x-javascript" src="chrome://editor/content/pref-composer.js"/>
  40.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  41.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  42.  
  43.   <vbox>
  44.     <label value="&authorName.label;"/>
  45.     <hbox>
  46.       <textbox id="editorAuthor" flex="1"
  47.                prefstring="editor.author"/>
  48.       <spacer flex="1"/>
  49.     </hbox>
  50.   </vbox>
  51.   <spacer class="smallspacer"/>
  52.   <groupbox align="start">
  53.     <caption label="&pageColorHeader;"/> 
  54.     <radiogroup id="useCustomColors"
  55.                 preftype="bool" prefstring="editor.use_custom_colors">
  56.       <radio id="DefaultColorsRadio"
  57.           value="false" 
  58.           label="&defaultColorsRadio.label;" 
  59.           accesskey="&defaultColors.accesskey;"
  60.           oncommand="UseDefaultColors();"/>
  61.       <radio id="CustomColorsRadio" 
  62.           value="true" label="&customColorsRadio.label;"
  63.           accesskey="&customColors.accesskey;" 
  64.           oncommand="UseCustomColors()"/>
  65.     </radiogroup>
  66.     <hbox class="indent">
  67.       <grid>
  68.         <columns><column/><column/></columns>
  69.         <rows>
  70.           <row align="center">
  71.             <label id="Text" value="&normalText.label;&colon.character;" />
  72.             <button id="TextButton" class="color-button" oncommand="GetColorAndUpdate('textCW');">
  73.               <spacer id="textCW" class="color-well"/>
  74.             </button>
  75.             <data id="textData" pref="true" preftype="color" prefstring="editor.text_color" prefattribute="value" wsm_attributes="value"/>
  76.           </row>
  77.           <row align="center">
  78.             <label id="Link" value="&linkText.label;&colon.character;" />
  79.             <button id="LinkButton" class="color-button" oncommand="GetColorAndUpdate('linkCW');">
  80.               <spacer id="linkCW" class="color-well"/>
  81.             </button>
  82.             <data id="linkData" pref="true" preftype="color" prefstring="editor.link_color" prefattribute="value" wsm_attributes="value"/>
  83.           </row>
  84.           <row align="center">
  85.             <label id="Active" value="&activeLinkText.label;&colon.character;" />
  86.             <button id="ActiveLinkButton" class="color-button" oncommand="GetColorAndUpdate('activeCW');">
  87.               <spacer id="activeCW" class="color-well"/>
  88.             </button>
  89.             <data id="aLinkData" pref="true" preftype="color" prefstring="editor.active_link_color" prefattribute="value" wsm_attributes="value"/>
  90.           </row>
  91.           <row align="center">
  92.             <label id="Visited" value ="&visitedLinkText.label;&colon.character;" />
  93.             <button id="VisitedLinkButton" class="color-button" oncommand="GetColorAndUpdate('visitedCW');">
  94.               <spacer id="visitedCW" class="color-well"/>
  95.             </button>
  96.             <data id="fLinkData" pref="true" preftype="color" prefstring="editor.followed_link_color" prefattribute="value" wsm_attributes="value"/>
  97.           </row>
  98.           <row align="center">
  99.             <label id="Background" value="&background.label;" />
  100.             <button id="BackgroundButton" class="color-button" oncommand="GetColorAndUpdate('backgroundCW');">
  101.               <spacer id="backgroundCW" class="color-well"/>
  102.             </button>
  103.             <data id="backgroundColorData" pref="true" preftype="color" prefstring="editor.background_color" prefattribute="value" wsm_attributes="value"/>
  104.           </row>
  105.         </rows>
  106.       </grid>
  107.       <vbox id="ColorPreview" flex="1">
  108.         <spacer flex="1"/>
  109.         <label class="larger" id="NormalText"      value="&normalText.label;"/>
  110.         <spacer flex="1"/>
  111.         <label class="larger" id="LinkText"        value="&linkText.label;"/>
  112.         <spacer flex="1"/>
  113.         <label class="larger" id="ActiveLinkText"  value="&activeLinkText.label;"/>
  114.         <spacer flex="1"/>
  115.         <label class="larger" id="VisitedLinkText" value="&visitedLinkText.label;"/>
  116.         <spacer flex="1"/>
  117.       </vbox>
  118.       <spacer flex="1"/>
  119.     </hbox>
  120.     <spacer class="spacer"/>
  121.     <label value="&backgroundImage.label;" accesskey="&backgroundImage.accesskey;"/>
  122.     <hbox align="center">
  123.       <textbox id="BackgroundImageInput" oninput="ChangeBackgroundImage();" style="min-width: 23em" flex="1" class="uri-element">
  124.         <observes element="backgroundImageData" attribute="disabled"/>
  125.       </textbox>
  126.       <button label="&chooseFile.label;" accesskey="&chooseFile.accesskey;"
  127.               oncommand="ChooseImageFile()">
  128.         <observes element="backgroundImageData" attribute="disabled"/>
  129.       </button>
  130.       <data id="backgroundImageData" preftype="string" prefstring="editor.default_background_image" prefattribute="value"/>
  131.     </hbox>
  132.   </groupbox>
  133. </page>
  134.