home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / mail.jar / content / editor / EdTextAreaProps.xul < prev    next >
Encoding:
Extensible Markup Language  |  2003-05-27  |  6.0 KB  |  136 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License Version
  6.    - 1.1 (the "License"); you may not use this file except in compliance with
  7.    - the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/
  9.    -
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License.
  14.    -
  15.    - The Original Code is Text Area Properties Dialog.
  16.    -
  17.    - The Initial Developer of the Original Code is
  18.    - Neil Rashbrook.
  19.    - Portions created by the Initial Developer are Copyright (C) 2001
  20.    - the Initial Developer. All Rights Reserved.
  21.    -
  22.    - Contributor(s): Neil Rashbrook <neil@parkwaycc.co.uk>
  23.    -
  24.    - Alternatively, the contents of this file may be used under the terms of
  25.    - either the GNU General Public License Version 2 or later (the "GPL"), or
  26.    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.    - in which case the provisions of the GPL or the LGPL are applicable instead
  28.    - of those above. If you wish to allow use of your version of this file only
  29.    - under the terms of either the GPL or the LGPL, and not to allow others to
  30.    - use your version of this file under the terms of the MPL, indicate your
  31.    - decision by deleting the provisions above and replace them with the notice
  32.    - and other provisions required by the LGPL or the GPL. If you do not delete
  33.    - the provisions above, a recipient may use your version of this file under
  34.    - the terms of any one of the MPL, the GPL or the LGPL.
  35.    -
  36.    - ***** END LICENSE BLOCK ***** -->
  37.  
  38. <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
  39. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
  40.  
  41. <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?> 
  42.  
  43. <!DOCTYPE dialog SYSTEM "chrome://editor/locale/EditorTextAreaProperties.dtd">
  44. <dialog title="&windowTitle.label;"
  45.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  46.         onload="Startup();"
  47.         buttons="accept,cancel"
  48.         ondialogaccept="return onAccept();"
  49.         ondialogcancel="return onCancel();">
  50.  
  51.   <!-- Methods common to all editor dialogs -->
  52.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  53.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  54.   <script type="application/x-javascript" src="chrome://editor/content/EdTextAreaProps.js"/>
  55.  
  56.   <broadcaster id="args" value=""/>
  57.   <spacer id="location" offsetY="50" persist="offsetX offsetY"/>
  58.  
  59.   <groupbox><caption label="&Settings.label;"/>
  60.     <grid><columns><column/><column/></columns>
  61.       <rows>
  62.         <row align="center">
  63.           <label control="TextAreaName" value="&TextAreaName.label;" accesskey="&TextAreaName.accessKey;"/>
  64.           <textbox id="TextAreaName" oninput="onInput();"/>
  65.         </row>
  66.         <row align="center">
  67.           <label control="TextAreaRows" value="&TextAreaRows.label;" accesskey="&TextAreaRows.accessKey;"/>
  68.           <hbox>
  69.             <textbox id="TextAreaRows" class="narrow" oninput="forceInteger(this.id);onInput();"/>
  70.           </hbox>
  71.         </row>
  72.         <row align="center">
  73.           <label control="TextAreaCols" value="&TextAreaCols.label;" accesskey="&TextAreaCols.accessKey;"/>
  74.           <hbox>
  75.             <textbox id="TextAreaCols" class="narrow" oninput="forceInteger(this.id);onInput();"/>
  76.           </hbox>
  77.         </row>
  78.       </rows>
  79.     </grid>
  80.     <hbox>
  81.       <button id="MoreFewerButton" oncommand="onMoreFewer();" persist="more"/>
  82.     </hbox>
  83.     <grid id="MoreSection"><columns><column/><column/></columns>
  84.       <rows>
  85.         <row align="center">
  86.           <label control="TextAreaWrap" value="&TextAreaWrap.label;" accesskey="&TextAreaWrap.accessKey;"/>
  87.           <menulist id="TextAreaWrap">
  88.             <menupopup>
  89.               <menuitem label="&WrapDefault.value;"/>
  90.               <menuitem label="&WrapOff.value;" value="off"/>
  91.               <menuseparator/>
  92.               <menuitem label="&WrapSoft.value;" value="soft"/>
  93.               <menuitem label="&WrapHard.value;" value="hard"/>
  94.               <menuseparator/>
  95.               <menuitem label="&WrapPhysical.value;" value="physical"/>
  96.               <menuitem label="&WrapVirtual.value;" value="virtual"/>
  97.               <menuseparator/>
  98.               <menuitem label="normal" value="normal"/>
  99.               <menuitem label="nowrap" value="nowrap"/>
  100.               <menuitem label="pre" value="pre"/>
  101.             </menupopup>
  102.           </menulist>
  103.         </row>
  104.         <row>
  105.           <spacer/>
  106.           <checkbox id="TextAreaReadOnly" label="&TextAreaReadOnly.label;" accesskey="&TextAreaReadOnly.accessKey;"/>
  107.         </row>
  108.         <row>
  109.           <spacer/>
  110.           <checkbox id="TextAreaDisabled" label="&TextAreaDisabled.label;" accesskey="&TextAreaDisabled.accessKey;"/>
  111.         </row>
  112.         <row align="center">
  113.           <label control="TextAreaTabIndex" value="&TextAreaTabIndex.label;" accesskey="&TextAreaTabIndex.accessKey;"/>
  114.           <hbox>
  115.             <textbox id="TextAreaTabIndex" class="narrow" oninput="forceInteger(this.id);"/>
  116.           </hbox>
  117.         </row>
  118.         <row align="center">
  119.           <label control="TextAreaAccessKey" value="&TextAreaAccessKey.label;" accesskey="&TextAreaAccessKey.accessKey;"/>
  120.           <hbox>
  121.             <textbox id="TextAreaAccessKey" class="narrow" maxlength="1"/>
  122.           </hbox>
  123.         </row>
  124.         <row>
  125.           <label control="TextAreaValue" value="&InitialText.label;" accesskey="&InitialText.accessKey;"/>
  126.         </row>
  127.         <textbox id="TextAreaValue" flex="1" multiline="true" rows="5"/>
  128.       </rows>
  129.     </grid>
  130.   </groupbox>
  131.  
  132.   <!-- from EdDialogOverlay -->
  133.   <vbox id="AdvancedEdit"/>
  134.  
  135. </dialog>
  136.