home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / comm.jar / content / editor / pref-editing.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-07-09  |  8.0 KB  |  166 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. <?xml-stylesheet href="chrome://communicator/skin/dialogOverlay.css" type="text/css"?>
  27.  
  28. <!DOCTYPE window SYSTEM "chrome://editor/locale/pref-editing.dtd">
  29.  
  30. <window xmlns:html="http://www.w3.org/1999/xhtml"
  31.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  32.         class="color-dialog"
  33.         orient="vertical" 
  34.         onload="parent.initPanel('chrome://editor/content/pref-editing.xul');">
  35.  
  36.   <script lanugage="JavaScript">
  37.   <![CDATA[
  38.    var _elementIDs = ["editorAuthor", "useCustomColors", "textData", "linkData", "aLinkData", "fLinkData", "backgroundColorData", "backgroundImageData"];
  39.   ]]>
  40.   </script>
  41.  
  42.   <script type="application/x-javascript" src="chrome://editor/content/pref-composer.js"/>
  43.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  44.   <script type="application/x-javascript" src="chrome://global/content/strres.js" />
  45.  
  46.   <hbox class="box-smallheader" title="&lHeader;"/>
  47.  
  48.   <vbox>
  49.     <text class="label small-margin" value="&authorName.label;"/>
  50.     <hbox>
  51.       <textbox id="editorAuthor" flex="1"
  52.                  pref="true" preftype="string" prefstring="editor.author"
  53.                  prefattribute="value"/>
  54.       <spring flex="1"/>
  55.     </hbox>
  56.   </vbox>
  57.   <spring class="smallspacer"/>
  58.   <groupbox orient="vertical" autostretch="never">
  59.     <label value="&pageColorHeader;"/> 
  60.     <radiogroup id="useCustomColors" orient="vertical" autostretch="never"  
  61.                 pref="true" preftype="bool" prefstring="editor.use_custom_colors"
  62.                 prefattribute="value">
  63.       <radio class="small-margin" group="useCustomColors" id="DefaultColorsRadio"
  64.           value="false" 
  65.           label="&defaultColorsRadio.label;" 
  66.           accesskey="&defaultColors.accesskey;"
  67.           oncommand="UseDefaultColors();"/>
  68.       <radio class="small-margin" group="useCustomColors" id="CustomColorsRadio" 
  69.           value="true" label="&customColorsRadio.label;"
  70.           accesskey="&customColors.accesskey;" 
  71.           oncommand="UseCustomColors()"/>
  72.     </radiogroup>
  73.     <hbox class="big-left-margin">
  74.       <grid>
  75.         <columns><column/><column/></columns>
  76.         <rows>
  77.           <row valign="middle" autostretch="never">
  78.             <text class="label" id="Text" value="&normalText.label;&colon.character;" />
  79.             <stack>
  80.               <button id="TextButton" class="dialog color-button" oncommand="GetColorAndUpdate('textCW');"/>
  81.               <hbox autostretch="never" valign="middle" mousethrough="always">
  82.                 <spring flex="1"/>
  83.                 <spring id="textCW" class="color-well"/>
  84.                 <spring flex="1"/>
  85.               </hbox>
  86.             </stack>
  87.             <data id="textData" pref="true" preftype="color" prefstring="editor.text_color" prefattribute="value" wsm_attributes="value"/>
  88.           </row>
  89.           <row valign="middle" autostretch="never">
  90.             <text class="label" id="Link" value="&linkText.label;&colon.character;" />
  91.             <stack>
  92.               <button id="LinkButton" class="dialog color-button" oncommand="GetColorAndUpdate('linkCW');"/>
  93.               <hbox autostretch="never" valign="middle" mousethrough="always">
  94.                 <spring flex="1"/>
  95.                 <spring id="linkCW" class="color-well"/>
  96.                 <spring flex="1"/>
  97.               </hbox>
  98.             </stack>
  99.             <data id="linkData" pref="true" preftype="color" prefstring="editor.link_color" prefattribute="value" wsm_attributes="value"/>
  100.           </row>
  101.           <row valign="middle" autostretch="never">
  102.             <text class="label" id="Active" value="&activeLinkText.label;&colon.character;" />
  103.             <stack>
  104.               <button id="ActiveLinkButton" class="dialog color-button" oncommand="GetColorAndUpdate('activeCW');"/>
  105.               <hbox autostretch="never" valign="middle" mousethrough="always">
  106.                 <spring flex="1"/>
  107.                 <spring id="activeCW" class="color-well"/>
  108.                 <spring flex="1"/>
  109.               </hbox>
  110.             </stack>
  111.             <data id="aLinkData" pref="true" preftype="color" prefstring="editor.active_link_color" prefattribute="value" wsm_attributes="value"/>
  112.           </row>
  113.           <row valign="middle" autostretch="never">
  114.             <text class="label" id="Visited" value ="&visitedLinkText.label;&colon.character;" />
  115.             <stack>
  116.               <button id="VisitedLinkButton" class="dialog color-button" oncommand="GetColorAndUpdate('visitedCW');"/>
  117.               <hbox autostretch="never" valign="middle" mousethrough="always">
  118.                 <spring flex="1"/>
  119.                 <spring id="visitedCW" class="color-well"/>
  120.                 <spring flex="1"/>
  121.               </hbox>
  122.               <data id="fLinkData" pref="true" preftype="color" prefstring="editor.followed_link_color" prefattribute="value" wsm_attributes="value"/>
  123.             </stack>
  124.           </row>
  125.           <row valign="middle" autostretch="never">
  126.             <text class="label" id="Background" value="&background.label;" />
  127.             <stack>
  128.               <button id="BackgroundButton" class="dialog color-button" oncommand="GetColorAndUpdate('backgroundCW');"/>
  129.               <hbox autostretch="never" valign="middle" mousethrough="always">
  130.                 <spring flex="1"/>
  131.                 <spring id="backgroundCW" class="color-well"/>
  132.                 <spring flex="1"/>
  133.               </hbox>
  134.             </stack>
  135.             <data id="backgroundColorData" pref="true" preftype="color" prefstring="editor.background_color" prefattribute="value" wsm_attributes="value"/>
  136.           </row>
  137.         </rows>
  138.       </grid>
  139.       <vbox id="ColorPreview" flex="1">
  140.         <spring flex="1"/>
  141.         <text class="label larger" id="NormalText"      value="&normalText.label;"/>
  142.         <spring flex="1"/>
  143.         <text class="label larger" id="LinkText"        value="&linkText.label;"/>
  144.         <spring flex="1"/>
  145.         <text class="label larger" id="ActiveLinkText"  value="&activeLinkText.label;"/>
  146.         <spring flex="1"/>
  147.         <text class="label larger" id="VisitedLinkText" value="&visitedLinkText.label;"/>
  148.         <spring flex="1"/>
  149.       </vbox>
  150.       <spring flex="1"/>
  151.     </hbox>
  152.     <spring class="spacer"/>
  153.     <text class="label small-margin" value="&backgroundImage.label;" accesskey="&backgroundImage.accesskey;"/>
  154.     <hbox valign="middle" autostretch="never">
  155.       <textbox id="BackgroundImageInput" oninput="ChangeBackgroundImage();" style="min-width: 23em" flex="1">
  156.         <observes element="backgroundImageData" attribute="disabled"/>
  157.       </textbox>
  158.       <button class="dialog" label="&chooseFile.label;" accesskey="&chooseFile.accesskey;"
  159.               oncommand="ChooseImageFile()">
  160.         <observes element="backgroundImageData" attribute="disabled"/>
  161.       </button>
  162.       <data id="backgroundImageData" pref="true" preftype="string" prefstring="editor.default_background_image" prefattribute="value"/>
  163.     </hbox>
  164.   </groupbox>
  165. </window>
  166.