home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / comm.jar / content / editor / EdTableProps.xul < prev    next >
Encoding:
Extensible Markup Language  |  2001-08-06  |  12.4 KB  |  276 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.    - The contents of this file are subject to the Netscape Public
  5.    - License Version 1.1 (the "License"); you may not use this file
  6.    - except in compliance with the License. You may obtain a copy of
  7.    - the License at http://www.mozilla.org/NPL/
  8.    -  
  9.    - Software distributed under the License is distributed on an "AS
  10.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    - implied. See the License for the specific language governing
  12.    - rights and limitations under the License.
  13.    -  
  14.    - The Original Code is Mozilla Communicator client code, released
  15.    - March 31, 1998.
  16.    - 
  17.    - The Initial Developer of the Original Code is Netscape
  18.    - Communications Corporation. Portions created by Netscape are
  19.    - Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20.    - Rights Reserved.
  21.    - 
  22.    - Contributor(s): 
  23.    -    Ben Goodger
  24.   -->
  25.  
  26. <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
  27. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
  28.  
  29. <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?> 
  30. <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?> 
  31.  
  32. <!DOCTYPE window SYSTEM "chrome://editor/locale/EditorTableProperties.dtd">
  33.  
  34. <window class="dialog" title="&tableWindow.title;"
  35.     xmlns:html="http://www.w3.org/1999/xhtml"
  36.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  37.     onload="Startup()"
  38.     orient="vertical">
  39.  
  40.   <!-- Methods common to all editor dialogs -->
  41.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  42.   <script type="application/x-javascript" src="chrome://editor/content/EdTableProps.js"/>
  43.   <script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
  44.   <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  45.  
  46.   <spring id="location" offsetY="50" persist="offsetX offsetY"/>
  47.   <broadcaster id="args" value=""/>
  48.   <keyset id="dialogKeys"/>
  49.  
  50.   <tabbox orient="vertical">
  51.     <tabs flex="1">
  52.       <tab id="TableTab" oncommand="SelectTableTab()" label="&tableTab.label;"/>
  53.       <tab id="CellTab" oncommand="SelectCellTab()" label="&cellTab.label;"/>
  54.     </tabs>
  55.     <tabpanels orient="vertical" id="TabPanels">
  56.  
  57.       <!-- TABLE PANEL -->
  58.       <vbox id="TablePanel">
  59.         <groupbox><label value="&size.label;"/>
  60.           <grid>
  61.             <columns><column/><column/></columns>
  62.             <rows>
  63.               <row valign="middle">
  64.                 <text class="label" value="&tableRows.label;"/>
  65.                 <textbox class="narrow" id="TableRowsInput" oninput="forceInteger(this.id);"/>
  66.               </row>
  67.               <row valign="middle">
  68.                 <text class="label" value="&tableColumns.label;"/>
  69.                 <textbox class="narrow" id="TableColumnsInput" oninput="forceInteger(this.id);"/>
  70.               </row>
  71.             </rows>
  72.           </grid>
  73.           <spring class="bigspacer"/>
  74.           <grid>
  75.             <columns><column/><column/><column flex="1"/></columns>
  76.             <rows>
  77.               <row valign="middle">
  78.                 <text class="label" value="&tableWidth.label;"/>
  79.                 <textbox class="narrow" id="TableWidthInput" oninput="forceInteger(this.id);"/>
  80.                 <menulist id="TableWidthUnits"/>
  81.               </row>
  82.             </rows>
  83.           </grid>
  84.         </groupbox>
  85.         <groupbox orient="vertical"><label align="left" value="&tableBorderSpacing.label;"/>
  86.         <grid>
  87.           <columns><column/><column/><column/></columns>
  88.           <rows>
  89.             <row valign="middle">
  90.               <text class="label" value="&tableBorderWidth.label;"/>
  91.               <textbox class="narrow" id="BorderWidthInput" oninput="forceInteger(this.id);"/>
  92.               <text class="label" align="left" value="&pixels.label;"/>
  93.             </row>
  94.             <row valign="middle">
  95.               <text class="label" value="&tableSpacing.label;"/>
  96.               <textbox class="narrow" id="SpacingInput" oninput="forceInteger(this.id);"/>
  97.               <text class="label" value="&tablePxBetwCells.label;"/>
  98.             </row>
  99.             <row valign="middle" autostretch="never">
  100.               <text class="label" value="&tablePadding.label;"/>
  101.               <textbox class="narrow" id="PaddingInput" oninput="forceInteger(this.id);"/>
  102.               <text class="label" value="&tablePxBetwBrdrCellContent.label;"/>
  103.             </row>
  104.           </rows>
  105.         </grid>
  106.         </groupbox>
  107.         <!-- Table Alignment and Caption -->
  108.         <hbox flex="1" valign="middle" autostretch="never">
  109.           <text class="label" value="&tableAlignment.label;"/>
  110.           <menulist id="TableAlignList">
  111.             <menupopup>
  112.               <menuitem label="&AlignLeft.label;"   value="left"/>
  113.               <menuitem label="&AlignCenter.label;" value="center"/>
  114.               <menuitem label="&AlignRight.label;"  value="right"/>
  115.             </menupopup>
  116.           </menulist>
  117.           <spring class="spacer"/>
  118.           <text class="label" value="&tableCaption.label;"/>
  119.           <menulist id="TableCaptionList">
  120.             <menupopup>
  121.               <menuitem label="&tableCaptionNone.label;"  value=""/>
  122.               <menuitem label="&tableCaptionAbove.label;" value="top"/>
  123.               <menuitem label="&tableCaptionBelow.label;" value="bottom"/>
  124.             </menupopup>
  125.           </menulist>
  126.         </hbox>
  127.         <separator class="groove"/>
  128.         <hbox valign="middle" autostretch="never">
  129.           <text class="label" value="&backgroundColor.label;"/>
  130.           <stack>
  131.             <button class="dialog color-button" oncommand="GetColorAndUpdate('tableBackgroundCW');"/>
  132.             <hbox autostretch="never" valign="middle" mousethrough="always">
  133.               <spring flex="1"/>
  134.               <spring id="tableBackgroundCW" class="color-well"/>
  135.               <spring flex="1"/>
  136.             </hbox>
  137.           </stack>
  138.           <spring class="spacer"/>
  139.           <text class="label" id="TableInheritColor" value="&tableInheritColor.label;" collapsed="true"/>
  140.         </hbox>
  141.         <separator class="groove"/>
  142.         <hbox flex="1" autostretch="never">
  143.           <spring flex="1"/>
  144.           <!-- From EdDialogOvlerlay.xul -->
  145.           <button class="dialog" id="AdvancedEditButton"/>
  146.         </hbox>
  147.         <spring flex="1"/>
  148.       </vbox><!-- Table Panel -->
  149.  
  150.       <!-- CELL PANEL -->
  151.       <vbox id="CellPanel">
  152.         <groupbox autostretch="never" valign="middle">
  153.           <label value="&cellSelection.label;"/>
  154.           <vbox>
  155.             <menulist id="SelectionList" oncommand="ChangeSelection(event.target.value)" flex="1">
  156.               <menupopup>
  157.                 <!-- JS code assumes order is Cell, Row, Column -->
  158.                 <menuitem label="&cellSelectCell.label;"   value="1"/>
  159.                 <menuitem label="&cellSelectRow.label;"    value="2"/>
  160.                 <menuitem label="&cellSelectColumn.label;" value="3"/>
  161.               </menupopup>
  162.             </menulist>
  163.             <hbox flex="1">
  164.               <button id="PreviousButton" class="dialog"             label="&cellSelectPrevious.label;" oncommand="MoveSelection(0)" flex="1"/>
  165.               <button id="NextButton"     class="dialog align-right" label="&cellSelectNext.label;"     oncommand="MoveSelection(1)" flex="1"/>
  166.             </hbox>
  167.           </vbox>
  168.           <spring class="bigspacer"/>
  169.           <vbox flex="1">
  170.             <text class="label" value="&applyBeforeChange1.label;"/>
  171.             <text class="label" value="&applyBeforeChange2.label;"/>
  172.           </vbox>
  173.         </groupbox>
  174.         <hbox autostretch="never">
  175.           <!-- cell size groupbox -->
  176.           <groupbox><label align="left" value="&size.label;"/>
  177.             <grid>
  178.               <columns><column/><column/><column flex="1"/></columns>
  179.               <rows>
  180.                 <row valign="middle" autostretch="never">
  181.                   <checkbox id="CellHeightCheckbox" label="&tableHeight.label;"/>
  182.                   <textbox class="narrow" id="CellHeightInput"
  183.                            oninput="ChangeIntTextbox(this.id,'CellHeightCheckbox');"/>
  184.                   <menulist id="CellHeightUnits" oncommand="SetCheckbox('CellHeightCheckbox');"/>
  185.                 </row>
  186.                 <row valign="middle" autostretch="never">
  187.                   <checkbox id="CellWidthCheckbox" label="&tableWidth.label;"/>
  188.                   <textbox class="narrow" id="CellWidthInput"
  189.                            oninput="ChangeIntTextbox(this.id,'CellWidthCheckbox');"/>
  190.                   <menulist id="CellWidthUnits" oncommand="SetCheckbox('CellWidthCheckbox');"/>
  191.                 </row>
  192.               </rows>
  193.             </grid>
  194.             <spring class="bigspacer"/>
  195.           </groupbox>
  196.           <!-- Alignment -->
  197.           <groupbox><label value="&cellContentAlignment.label;"/>
  198.             <grid>
  199.               <columns><column/><column flex="1"/><column/></columns>
  200.               <rows>
  201.                 <row valign="middle" autostretch="never">
  202.                   <checkbox id="CellVAlignCheckbox" label="&cellVertical.label;"/>
  203.                   <menulist id="CellVAlignList" oncommand="SetCheckbox('CellVAlignCheckbox');">
  204.                     <menupopup>
  205.                       <menuitem label="&cellAlignTop.label;"    value="top"/>
  206.                       <menuitem label="&cellAlignMiddle.label;" value="middle"/>
  207.                       <menuitem label="&cellAlignBottom.label;" value="bottom"/>
  208.                     </menupopup>
  209.                   </menulist>
  210.                 </row>
  211.                 <row valign="middle" autostretch="never">
  212.                   <checkbox id="CellHAlignCheckbox" label="&cellHorizontal.label;"/>
  213.                   <menulist id="CellHAlignList"  oncommand="SelectCellHAlign()">
  214.                     <menupopup>
  215.                       <menuitem label="&AlignLeft.label;"        value="left"/>
  216.                       <menuitem label="&AlignCenter.label;"      value="center"/>
  217.                       <menuitem label="&AlignRight.label;"       value="right"/>
  218.                       <menuitem label="&cellAlignJustify.label;" value="justify"/>
  219.                     </menupopup>
  220.                   </menulist>
  221.                 </row>
  222.               </rows>
  223.             </grid>
  224.           </groupbox>
  225.         </hbox>
  226.         <spring class="spacer"/>
  227.         <hbox valign="middle" autostretch="never">
  228.           <checkbox id="CellStyleCheckbox" label="&cellStyle.label;"/>
  229.           <menulist id="CellStyleList" oncommand="SetCheckbox('CellStyleCheckbox');">
  230.             <menupopup>
  231.               <menuitem label="&cellNormal.label;" value="td"/>
  232.               <menuitem label="&cellHeader.label;" value="th"/>
  233.             </menupopup>
  234.           </menulist>
  235.           <spring class="bigspacer"/>
  236.           <checkbox id="TextWrapCheckbox" label="&cellTextWrap.label;"/>
  237.           <menulist id="TextWrapList" oncommand="SetCheckbox('TextWrapCheckbox');">
  238.             <menupopup>
  239.               <menuitem label="&cellWrap.label;" value="wrap"/>
  240.               <menuitem label="&cellNoWrap.label;" value="nowrap"/>
  241.             </menupopup>
  242.           </menulist>
  243.         </hbox>
  244.         <separator class="groove"/>
  245.         <hbox valign="middle" autostretch="never">
  246.           <checkbox id="CellColorCheckbox" label="&backgroundColor.label;"/>
  247.           <stack>
  248.             <button class="dialog color-button" oncommand="GetColorAndUpdate('cellBackgroundCW');" flex="1"/>
  249.             <hbox autostretch="never" valign="middle" mousethrough="always">
  250.               <spring flex="1"/>
  251.               <spring id="cellBackgroundCW" class="color-well"/>
  252.               <spring flex="1"/>
  253.             </hbox>
  254.           </stack>
  255.           <spring class="spacer"/>
  256.           <text class="label" id="CellInheritColor" value="&cellInheritColor.label;" collapsed="true"/>
  257.         </hbox>
  258.         <separator class="groove"/>
  259.         <hbox autostretch="never">
  260.           <html  class="wrap" flex="1" style="width: 1em">&cellUseCheckboxHelp.label;</html>
  261.           <!-- From EdDialogOvlerlay.xul -->
  262.           <button class="dialog" id="AdvancedEditButton2"/>
  263.         </hbox>
  264.         <spring flex="1"/>
  265.       </vbox><!-- Cell Panel -->
  266.  
  267.     </tabpanels> 
  268.     <spring class="spacer"/>
  269.     <!-- from EdDialogOverlay -->
  270.     <hbox>
  271.       <spring flex="1"/>
  272.       <hbox id="okCancelHelpButtonsRight"/> 
  273.     </hbox>
  274.   </tabbox>
  275. </window>
  276.