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 / EdTextAreaProps.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  7KB  |  148 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 window 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.   <keyset>
  57.     <key key="&Settings.accessKey;" modifiers="alt" oncommand="SetTextboxFocus(gDialog.textareaName);"/>
  58.     <key key="&TextAreaName.accessKey;" modifiers="alt" oncommand="SetTextboxFocus(gDialog.textareaName);"/>
  59.     <key key="&TextAreaRows.accessKey;" modifiers="alt" oncommand="SetTextboxFocus(gDialog.textareaRows);"/>
  60.     <key key="&TextAreaCols.accessKey;" modifiers="alt" oncommand="SetTextboxFocus(gDialog.textareaCols);"/>
  61.     <key key="&TextAreaWrap.accessKey;" modifiers="alt" oncommand="gDialog.textareaWrap.focus();"/>
  62.     <key key="&TextAreaReadOnly.accessKey;" modifiers="alt" oncommand="gDialog.textareaReadOnly.focus();gDialog.textareaReadOnly.checked = !gDialog.textareaReadOnly.checked;"/>
  63.     <key key="&TextAreaDisabled.accessKey;" modifiers="alt" oncommand="gDialog.textareaDisabled.focus();gDialog.textareaDisabled.checked = !gDialog.textareaDisabled.checked;"/>
  64.     <key key="&TextAreaTabIndex.accessKey;" modifiers="alt" oncommand="SetTextboxFocus(gDialog.textareaTabIndex);"/>
  65.     <key key="&TextAreaAccessKey.accessKey;" modifiers="alt" oncommand="SetTextboxFocus(gDialog.textareaAccessKey);"/>
  66.     <key key="&InitialText.accessKey;" modifiers="alt" oncommand="gDialog.textareaValue.focus();"/>
  67.   </keyset>
  68.   <broadcaster id="args" value=""/>
  69.   <spacer id="location" offsetY="50" persist="offsetX offsetY"/>
  70.  
  71.   <groupbox orient="vertical"><caption label="&Settings.label;" accesskey="&Settings.accessKey;"/>
  72.     <grid><columns><column/><column/></columns>
  73.       <rows>
  74.         <row align="center">
  75.           <label value="&TextAreaName.label;" accesskey="&TextAreaName.accessKey;"/>
  76.           <textbox id="TextAreaName" oninput="onInput();"/>
  77.         </row>
  78.         <row align="center">
  79.           <label value="&TextAreaRows.label;" accesskey="&TextAreaRows.accessKey;"/>
  80.           <hbox>
  81.             <textbox id="TextAreaRows" class="narrow" oninput="forceInteger(this.id);onInput();"/>
  82.           </hbox>
  83.         </row>
  84.         <row align="center">
  85.           <label value="&TextAreaCols.label;" accesskey="&TextAreaCols.accessKey;"/>
  86.           <hbox>
  87.             <textbox id="TextAreaCols" class="narrow" oninput="forceInteger(this.id);onInput();"/>
  88.           </hbox>
  89.         </row>
  90.       </rows>
  91.     </grid>
  92.     <hbox>
  93.       <button id="MoreFewerButton" oncommand="onMoreFewer();" persist="more"/>
  94.     </hbox>
  95.     <grid id="MoreSection"><columns><column/><column/></columns>
  96.       <rows>
  97.         <row align="center">
  98.           <label value="&TextAreaWrap.label;" accesskey="&TextAreaWrap.accessKey;"/>
  99.           <menulist id="TextAreaWrap">
  100.             <menupopup>
  101.               <menuitem label="&WrapDefault.value;"/>
  102.               <menuitem label="&WrapOff.value;" value="off"/>
  103.               <menuseparator/>
  104.               <menuitem label="&WrapSoft.value;" value="soft"/>
  105.               <menuitem label="&WrapHard.value;" value="hard"/>
  106.               <menuseparator/>
  107.               <menuitem label="&WrapPhysical.value;" value="physical"/>
  108.               <menuitem label="&WrapVirtual.value;" value="virtual"/>
  109.               <menuseparator/>
  110.               <menuitem label="normal" value="normal"/>
  111.               <menuitem label="nowrap" value="nowrap"/>
  112.               <menuitem label="pre" value="pre"/>
  113.             </menupopup>
  114.           </menulist>
  115.         </row>
  116.         <row>
  117.           <spacer/>
  118.           <checkbox id="TextAreaReadOnly" label="&TextAreaReadOnly.label;" accesskey="&TextAreaReadOnly.accessKey;"/>
  119.         </row>
  120.         <row>
  121.           <spacer/>
  122.           <checkbox id="TextAreaDisabled" label="&TextAreaDisabled.label;" accesskey="&TextAreaDisabled.accessKey;"/>
  123.         </row>
  124.         <row align="center">
  125.           <label value="&TextAreaTabIndex.label;" accesskey="&TextAreaTabIndex.accessKey;"/>
  126.           <hbox>
  127.             <textbox id="TextAreaTabIndex" class="narrow" oninput="forceInteger(this.id);"/>
  128.           </hbox>
  129.         </row>
  130.         <row align="center">
  131.           <label value="&TextAreaAccessKey.label;" accesskey="&TextAreaAccessKey.accessKey;"/>
  132.           <hbox>
  133.             <textbox id="TextAreaAccessKey" class="narrow" maxlength="1"/>
  134.           </hbox>
  135.         </row>
  136.         <row>
  137.           <label value="&InitialText.label;" accesskey="&InitialText.accessKey;"/>
  138.         </row>
  139.         <textbox id="TextAreaValue" flex="1" multiline="true" rows="5"/>
  140.       </rows>
  141.     </grid>
  142.   </groupbox>
  143.  
  144.   <!-- from EdDialogOverlay -->
  145.   <vbox id="AdvancedEdit"/>
  146.  
  147. </dialog>
  148.