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 / EdTableProps.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  13KB  |  272 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://editor/content/EdDialogOverlay.xul"?> 
  30.  
  31. <!DOCTYPE dialog SYSTEM "chrome://editor/locale/EditorTableProperties.dtd">
  32.  
  33. <dialog title="&tableWindow.title;"
  34.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  35.     onload="Startup()"
  36.     buttons="accept,extra1,cancel,help"
  37.     ondialogaccept="return onAccept();"
  38.     ondialogextra1="return Apply();"
  39.     ondialogcancel="return onCancel();"
  40.     ondialoghelp="return doHelpButton();">
  41.  
  42.   <!-- Methods common to all editor dialogs -->
  43.   <script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
  44.   <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  45.   <script type="application/x-javascript" src="chrome://editor/content/EdTableProps.js"/>
  46.   <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  47.  
  48.   <spacer id="location" offsetY="50" persist="offsetX offsetY"/>
  49.   <broadcaster id="args" value=""/>
  50.  
  51.   <tabbox id="TabBox">
  52.     <tabs flex="1">
  53.       <tab id="TableTab" label="&tableTab.label;"/>
  54.       <tab id="CellTab" label="&cellTab.label;"/>
  55.     </tabs>
  56.     <tabpanels>
  57.  
  58.       <!-- TABLE PANEL -->
  59.       <vbox>
  60.         <groupbox orient="horizontal"><caption label="&size.label;"/>
  61.           <grid>
  62.             <columns><column/><column/><column/><column/><column/></columns>
  63.               <rows>
  64.                 <row align="center">
  65.                   <label value="&tableRows.label;" accesskey="&tableRows.accessKey;" control="TableRowsInput"/>
  66.                   <textbox class="narrow" id="TableRowsInput" oninput="forceInteger(this.id);"/>
  67.                   <spring class="bigspacer"/>
  68.                   <label value="&tableHeight.label;" accesskey="&tableHeight.accessKey;"
  69.                          id="TableHeightLabel" control="TableHeightInput"/>
  70.                   <textbox class="narrow" id="TableHeightInput" oninput="forceInteger(this.id);"/>
  71.                   <menulist id="TableHeightUnits"/>
  72.                 </row>
  73.               <row align="center">
  74.                 <label value="&tableColumns.label;" accesskey="&tableColumns.accessKey;" control="TableColumnsInput"/>
  75.                 <textbox class="narrow" id="TableColumnsInput" oninput="forceInteger(this.id);"/>
  76.                 <spring class="bigspacer"/>
  77.                 <label value="&tableWidth.label;" accesskey="&tableWidth.accessKey;" control="TableWidthInput"/>
  78.                 <textbox class="narrow" id="TableWidthInput" oninput="forceInteger(this.id);"/>
  79.                 <menulist id="TableWidthUnits"/>
  80.               </row>
  81.             </rows>
  82.             <!-- KEEP GRID LAYOUT here since we will be adding back support for table HEIGHT via CSS -->
  83.           </grid>
  84.         </groupbox>
  85.         <groupbox><caption label="&tableBorderSpacing.label;"/>
  86.         <grid>
  87.           <columns><column/><column/><column/></columns>
  88.           <rows>
  89.             <row align="center">
  90.               <label control="BorderWidthInput"
  91.                      value="&tableBorderWidth.label;"
  92.                      accesskey="&tableBorderWidth.accessKey;"/>
  93.               <textbox class="narrow" id="BorderWidthInput" oninput="forceInteger(this.id);"/>
  94.               <label align="left" value="&pixels.label;"/>
  95.             </row>
  96.             <row align="center">
  97.               <label control="SpacingInput"
  98.                      value="&tableSpacing.label;"
  99.                      accesskey="&tableSpacing.accessKey;"/>
  100.               <textbox class="narrow" id="SpacingInput" oninput="forceInteger(this.id);"/>
  101.               <label value="&tablePxBetwCells.label;"/>
  102.             </row>
  103.             <row align="center">
  104.               <label control="PaddingInput"
  105.                      value="&tablePadding.label;"
  106.                      accesskey="&tablePadding.accessKey;"/>
  107.               <textbox class="narrow" id="PaddingInput" oninput="forceInteger(this.id);"/>
  108.               <label value="&tablePxBetwBrdrCellContent.label;"/>
  109.             </row>
  110.           </rows>
  111.         </grid>
  112.         </groupbox>
  113.         <!-- Table Alignment and Caption -->
  114.         <hbox flex="1" align="center">
  115.           <label control="TableAlignList"
  116.                  value="&tableAlignment.label;"
  117.                  accesskey="&tableAlignment.accessKey;"/>
  118.           <menulist id="TableAlignList">
  119.             <menupopup>
  120.               <menuitem label="&AlignLeft.label;"   value="left"/>
  121.               <menuitem label="&AlignCenter.label;" value="center"/>
  122.               <menuitem label="&AlignRight.label;"  value="right"/>
  123.             </menupopup>
  124.           </menulist>
  125.           <spacer class="spacer"/>
  126.           <label control="TableCaptionList"
  127.                  value="&tableCaption.label;"
  128.                  accesskey="&tableCaption.accessKey;"/>
  129.           <menulist id="TableCaptionList">
  130.             <menupopup>
  131.               <menuitem label="&tableCaptionNone.label;"  value=""/>
  132.               <menuitem label="&tableCaptionAbove.label;" value="top"/>
  133.               <menuitem label="&tableCaptionBelow.label;" value="bottom"/>
  134.               <menuitem label="&tableCaptionLeft.label;"  value="left"/>
  135.               <menuitem label="&tableCaptionRight.label;" value="right"/>
  136.             </menupopup>
  137.           </menulist>
  138.         </hbox>
  139.         <separator class="groove"/>
  140.         <hbox align="center">
  141.           <label value="&backgroundColor.label;"/>
  142.           <button id="tableBackground" class="color-button" oncommand="GetColorAndUpdate('tableBackgroundCW');">
  143.             <spacer id="tableBackgroundCW" class="color-well"/>
  144.           </button>
  145.           <spacer class="spacer"/>
  146.           <label id="TableInheritColor" value="&tableInheritColor.label;" collapsed="true"/>
  147.         </hbox>
  148.         <separator class="groove"/>
  149.         <hbox flex="1" align="center">
  150.           <spacer flex="1"/>
  151.           <!-- From EdDialogOvlerlay.xul -->
  152.           <button id="AdvancedEditButton"/>
  153.         </hbox>
  154.         <spacer flex="1"/>
  155.       </vbox><!-- Table Panel -->
  156.  
  157.       <!-- CELL PANEL -->
  158.       <vbox>
  159.         <groupbox orient="horizontal" align="center">
  160.           <caption label="&cellSelection.label;"/>
  161.           <vbox>
  162.             <menulist id="SelectionList" oncommand="ChangeSelection(event.target.value)" flex="1">
  163.               <menupopup>
  164.                 <!-- JS code assumes order is Cell, Row, Column -->
  165.                 <menuitem label="&cellSelectCell.label;"   value="1"/>
  166.                 <menuitem label="&cellSelectRow.label;"    value="2"/>
  167.                 <menuitem label="&cellSelectColumn.label;" value="3"/>
  168.               </menupopup>
  169.             </menulist>
  170.             <hbox flex="1">
  171.               <button id="PreviousButton" label="&cellSelectPrevious.label;" accesskey="&cellSelectPrevious.accessKey;" oncommand="MoveSelection(0)" flex="1"/>
  172.               <button id="NextButton" class="align-right" label="&cellSelectNext.label;" accesskey="&cellSelectNext.accessKey;" oncommand="MoveSelection(1)" flex="1"/>
  173.             </hbox>
  174.           </vbox>
  175.           <spacer class="bigspacer"/>
  176.           <vbox flex="1">
  177.             <label value="&applyBeforeChange1.label;"/>
  178.             <label value="&applyBeforeChange2.label;"/>
  179.           </vbox>
  180.         </groupbox>
  181.         <hbox align="center">
  182.           <!-- cell size groupbox -->
  183.           <groupbox><caption label="&size.label;"/>
  184.             <grid>
  185.               <columns><column/><column/><column flex="1"/></columns>
  186.               <rows>
  187.                 <row align="center">
  188.                   <checkbox id="CellHeightCheckbox" label="&tableHeight.label;" accesskey="&tableHeight.accessKey;"/>
  189.                   <textbox class="narrow" id="CellHeightInput"
  190.                            oninput="ChangeIntTextbox(this.id,'CellHeightCheckbox');"/>
  191.                   <menulist id="CellHeightUnits" oncommand="SetCheckbox('CellHeightCheckbox');"/>
  192.                 </row>
  193.                 <row align="center">
  194.                   <checkbox id="CellWidthCheckbox" label="&tableWidth.label;" accesskey="&tableWidth.accessKey;"/>
  195.                   <textbox class="narrow" id="CellWidthInput"
  196.                            oninput="ChangeIntTextbox(this.id,'CellWidthCheckbox');"/>
  197.                   <menulist id="CellWidthUnits" oncommand="SetCheckbox('CellWidthCheckbox');"/>
  198.                 </row>
  199.               </rows>
  200.             </grid>
  201.             <spacer class="bigspacer"/>
  202.           </groupbox>
  203.           <!-- Alignment -->
  204.           <groupbox><caption label="&cellContentAlignment.label;"/>
  205.             <grid>
  206.               <columns><column/><column flex="1"/><column/></columns>
  207.               <rows>
  208.                 <row align="center">
  209.                   <checkbox id="CellVAlignCheckbox" label="&cellVertical.label;" accesskey="&cellVertical.accessKey;"/>
  210.                   <menulist id="CellVAlignList" oncommand="SetCheckbox('CellVAlignCheckbox');">
  211.                     <menupopup>
  212.                       <menuitem label="&cellAlignTop.label;"    value="top"/>
  213.                       <menuitem label="&cellAlignMiddle.label;" value="middle"/>
  214.                       <menuitem label="&cellAlignBottom.label;" value="bottom"/>
  215.                     </menupopup>
  216.                   </menulist>
  217.                 </row>
  218.                 <row align="center">
  219.                   <checkbox id="CellHAlignCheckbox" label="&cellHorizontal.label;" accesskey="&cellHorizontal.accessKey;"/>
  220.                   <menulist id="CellHAlignList"  oncommand="SelectCellHAlign()">
  221.                     <menupopup>
  222.                       <menuitem label="&AlignLeft.label;"        value="left"/>
  223.                       <menuitem label="&AlignCenter.label;"      value="center"/>
  224.                       <menuitem label="&AlignRight.label;"       value="right"/>
  225.                       <menuitem label="&cellAlignJustify.label;" value="justify"/>
  226.                     </menupopup>
  227.                   </menulist>
  228.                 </row>
  229.               </rows>
  230.             </grid>
  231.           </groupbox>
  232.         </hbox>
  233.         <spacer class="spacer"/>
  234.         <hbox align="center">
  235.           <checkbox id="CellStyleCheckbox" label="&cellStyle.label;" accesskey="&cellStyle.accessKey;"/>
  236.           <menulist id="CellStyleList" oncommand="SetCheckbox('CellStyleCheckbox');">
  237.             <menupopup>
  238.               <menuitem label="&cellNormal.label;" value="td"/>
  239.               <menuitem label="&cellHeader.label;" value="th"/>
  240.             </menupopup>
  241.           </menulist>
  242.           <spacer class="bigspacer"/>
  243.           <checkbox id="TextWrapCheckbox" label="&cellTextWrap.label;" accesskey="&cellTextWrap.accessKey;"/>
  244.           <menulist id="TextWrapList" oncommand="SetCheckbox('TextWrapCheckbox');">
  245.             <menupopup>
  246.               <menuitem label="&cellWrap.label;" value="wrap"/>
  247.               <menuitem label="&cellNoWrap.label;" value="nowrap"/>
  248.             </menupopup>
  249.           </menulist>
  250.         </hbox>
  251.         <separator class="groove"/>
  252.         <hbox align="center">
  253.           <checkbox id="CellColorCheckbox" label="&backgroundColor.label;" accesskey="&backgroundColor.accessKey;"/>
  254.           <button class="color-button" oncommand="GetColorAndUpdate('cellBackgroundCW');">
  255.             <spacer id="cellBackgroundCW" class="color-well"/>
  256.           </button>
  257.           <spacer class="spacer"/>
  258.           <label id="CellInheritColor" value="&cellInheritColor.label;" collapsed="true"/>
  259.         </hbox>
  260.         <separator class="groove"/>
  261.         <hbox align="center">
  262.           <description class="wrap" flex="1" style="width: 1em">&cellUseCheckboxHelp.label;</description>
  263.           <!-- From EdDialogOvlerlay.xul -->
  264.           <button id="AdvancedEditButton2"/>
  265.         </hbox>
  266.         <spacer flex="1"/>
  267.       </vbox><!-- Cell Panel -->
  268.     </tabpanels> 
  269.   </tabbox>
  270.   <spacer class="spacer"/>
  271. </dialog>
  272.