home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <!--
- - The contents of this file are subject to the Netscape Public
- - License Version 1.1 (the "License"); you may not use this file
- - except in compliance with the License. You may obtain a copy of
- - the License at http://www.mozilla.org/NPL/
- -
- - Software distributed under the License is distributed on an "AS
- - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- - implied. See the License for the specific language governing
- - rights and limitations under the License.
- -
- - The Original Code is Mozilla Communicator client code, released
- - March 31, 1998.
- -
- - The Initial Developer of the Original Code is Netscape
- - Communications Corporation. Portions created by Netscape are
- - Copyright (C) 1998-1999 Netscape Communications Corporation. All
- - Rights Reserved.
- -
- - Contributor(s):
- - Ben Goodger
- -->
-
- <?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
- <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
-
- <?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
- <?xul-overlay href="chrome://editor/content/EdDialogOverlay.xul"?>
-
- <!DOCTYPE window SYSTEM "chrome://editor/locale/EditorTableProperties.dtd">
-
- <window class="dialog" title="&tableWindow.title;"
- xmlns:html="http://www.w3.org/1999/xhtml"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- onload="Startup()"
- orient="vertical">
-
- <!-- Methods common to all editor dialogs -->
- <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
- <script type="application/x-javascript" src="chrome://editor/content/EdTableProps.js"/>
- <script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
- <script type="application/x-javascript" src="chrome://help/content/help.js"/>
-
- <spring id="location" offsetY="50" persist="offsetX offsetY"/>
- <broadcaster id="args" value=""/>
- <keyset id="dialogKeys"/>
-
- <tabbox orient="vertical">
- <tabs flex="1">
- <tab id="TableTab" oncommand="SelectTableTab()" label="&tableTab.label;"/>
- <tab id="CellTab" oncommand="SelectCellTab()" label="&cellTab.label;"/>
- </tabs>
- <tabpanels orient="vertical" id="TabPanels">
-
- <!-- TABLE PANEL -->
- <vbox id="TablePanel">
- <groupbox><label value="&size.label;"/>
- <grid>
- <columns><column/><column/></columns>
- <rows>
- <row valign="middle">
- <text class="label" value="&tableRows.label;"/>
- <textbox class="narrow" id="TableRowsInput" oninput="forceInteger(this.id);"/>
- </row>
- <row valign="middle">
- <text class="label" value="&tableColumns.label;"/>
- <textbox class="narrow" id="TableColumnsInput" oninput="forceInteger(this.id);"/>
- </row>
- </rows>
- </grid>
- <spring class="bigspacer"/>
- <grid>
- <columns><column/><column/><column flex="1"/></columns>
- <rows>
- <row valign="middle">
- <text class="label" value="&tableWidth.label;"/>
- <textbox class="narrow" id="TableWidthInput" oninput="forceInteger(this.id);"/>
- <menulist id="TableWidthUnits"/>
- </row>
- </rows>
- </grid>
- </groupbox>
- <groupbox orient="vertical"><label align="left" value="&tableBorderSpacing.label;"/>
- <grid>
- <columns><column/><column/><column/></columns>
- <rows>
- <row valign="middle">
- <text class="label" value="&tableBorderWidth.label;"/>
- <textbox class="narrow" id="BorderWidthInput" oninput="forceInteger(this.id);"/>
- <text class="label" align="left" value="&pixels.label;"/>
- </row>
- <row valign="middle">
- <text class="label" value="&tableSpacing.label;"/>
- <textbox class="narrow" id="SpacingInput" oninput="forceInteger(this.id);"/>
- <text class="label" value="&tablePxBetwCells.label;"/>
- </row>
- <row valign="middle" autostretch="never">
- <text class="label" value="&tablePadding.label;"/>
- <textbox class="narrow" id="PaddingInput" oninput="forceInteger(this.id);"/>
- <text class="label" value="&tablePxBetwBrdrCellContent.label;"/>
- </row>
- </rows>
- </grid>
- </groupbox>
- <!-- Table Alignment and Caption -->
- <hbox flex="1" valign="middle" autostretch="never">
- <text class="label" value="&tableAlignment.label;"/>
- <menulist id="TableAlignList">
- <menupopup>
- <menuitem label="&AlignLeft.label;" value="left"/>
- <menuitem label="&AlignCenter.label;" value="center"/>
- <menuitem label="&AlignRight.label;" value="right"/>
- </menupopup>
- </menulist>
- <spring class="spacer"/>
- <text class="label" value="&tableCaption.label;"/>
- <menulist id="TableCaptionList">
- <menupopup>
- <menuitem label="&tableCaptionNone.label;" value=""/>
- <menuitem label="&tableCaptionAbove.label;" value="top"/>
- <menuitem label="&tableCaptionBelow.label;" value="bottom"/>
- </menupopup>
- </menulist>
- </hbox>
- <separator class="groove"/>
- <hbox valign="middle" autostretch="never">
- <text class="label" value="&backgroundColor.label;"/>
- <stack>
- <button class="dialog color-button" oncommand="GetColorAndUpdate('tableBackgroundCW');"/>
- <hbox autostretch="never" valign="middle" mousethrough="always">
- <spring flex="1"/>
- <spring id="tableBackgroundCW" class="color-well"/>
- <spring flex="1"/>
- </hbox>
- </stack>
- <spring class="spacer"/>
- <text class="label" id="TableInheritColor" value="&tableInheritColor.label;" collapsed="true"/>
- </hbox>
- <separator class="groove"/>
- <hbox flex="1" autostretch="never">
- <spring flex="1"/>
- <!-- From EdDialogOvlerlay.xul -->
- <button class="dialog" id="AdvancedEditButton"/>
- </hbox>
- <spring flex="1"/>
- </vbox><!-- Table Panel -->
-
- <!-- CELL PANEL -->
- <vbox id="CellPanel">
- <groupbox autostretch="never" valign="middle">
- <label value="&cellSelection.label;"/>
- <vbox>
- <menulist id="SelectionList" oncommand="ChangeSelection(event.target.value)" flex="1">
- <menupopup>
- <!-- JS code assumes order is Cell, Row, Column -->
- <menuitem label="&cellSelectCell.label;" value="1"/>
- <menuitem label="&cellSelectRow.label;" value="2"/>
- <menuitem label="&cellSelectColumn.label;" value="3"/>
- </menupopup>
- </menulist>
- <hbox flex="1">
- <button id="PreviousButton" class="dialog" label="&cellSelectPrevious.label;" oncommand="MoveSelection(0)" flex="1"/>
- <button id="NextButton" class="dialog align-right" label="&cellSelectNext.label;" oncommand="MoveSelection(1)" flex="1"/>
- </hbox>
- </vbox>
- <spring class="bigspacer"/>
- <vbox flex="1">
- <text class="label" value="&applyBeforeChange1.label;"/>
- <text class="label" value="&applyBeforeChange2.label;"/>
- </vbox>
- </groupbox>
- <hbox autostretch="never">
- <!-- cell size groupbox -->
- <groupbox><label align="left" value="&size.label;"/>
- <grid>
- <columns><column/><column/><column flex="1"/></columns>
- <rows>
- <row valign="middle" autostretch="never">
- <checkbox id="CellHeightCheckbox" label="&tableHeight.label;"/>
- <textbox class="narrow" id="CellHeightInput"
- oninput="ChangeIntTextbox(this.id,'CellHeightCheckbox');"/>
- <menulist id="CellHeightUnits" oncommand="SetCheckbox('CellHeightCheckbox');"/>
- </row>
- <row valign="middle" autostretch="never">
- <checkbox id="CellWidthCheckbox" label="&tableWidth.label;"/>
- <textbox class="narrow" id="CellWidthInput"
- oninput="ChangeIntTextbox(this.id,'CellWidthCheckbox');"/>
- <menulist id="CellWidthUnits" oncommand="SetCheckbox('CellWidthCheckbox');"/>
- </row>
- </rows>
- </grid>
- <spring class="bigspacer"/>
- </groupbox>
- <!-- Alignment -->
- <groupbox><label value="&cellContentAlignment.label;"/>
- <grid>
- <columns><column/><column flex="1"/><column/></columns>
- <rows>
- <row valign="middle" autostretch="never">
- <checkbox id="CellVAlignCheckbox" label="&cellVertical.label;"/>
- <menulist id="CellVAlignList" oncommand="SetCheckbox('CellVAlignCheckbox');">
- <menupopup>
- <menuitem label="&cellAlignTop.label;" value="top"/>
- <menuitem label="&cellAlignMiddle.label;" value="middle"/>
- <menuitem label="&cellAlignBottom.label;" value="bottom"/>
- </menupopup>
- </menulist>
- </row>
- <row valign="middle" autostretch="never">
- <checkbox id="CellHAlignCheckbox" label="&cellHorizontal.label;"/>
- <menulist id="CellHAlignList" oncommand="SelectCellHAlign()">
- <menupopup>
- <menuitem label="&AlignLeft.label;" value="left"/>
- <menuitem label="&AlignCenter.label;" value="center"/>
- <menuitem label="&AlignRight.label;" value="right"/>
- <menuitem label="&cellAlignJustify.label;" value="justify"/>
- </menupopup>
- </menulist>
- </row>
- </rows>
- </grid>
- </groupbox>
- </hbox>
- <spring class="spacer"/>
- <hbox valign="middle" autostretch="never">
- <checkbox id="CellStyleCheckbox" label="&cellStyle.label;"/>
- <menulist id="CellStyleList" oncommand="SetCheckbox('CellStyleCheckbox');">
- <menupopup>
- <menuitem label="&cellNormal.label;" value="td"/>
- <menuitem label="&cellHeader.label;" value="th"/>
- </menupopup>
- </menulist>
- <spring class="bigspacer"/>
- <checkbox id="TextWrapCheckbox" label="&cellTextWrap.label;"/>
- <menulist id="TextWrapList" oncommand="SetCheckbox('TextWrapCheckbox');">
- <menupopup>
- <menuitem label="&cellWrap.label;" value="wrap"/>
- <menuitem label="&cellNoWrap.label;" value="nowrap"/>
- </menupopup>
- </menulist>
- </hbox>
- <separator class="groove"/>
- <hbox valign="middle" autostretch="never">
- <checkbox id="CellColorCheckbox" label="&backgroundColor.label;"/>
- <stack>
- <button class="dialog color-button" oncommand="GetColorAndUpdate('cellBackgroundCW');" flex="1"/>
- <hbox autostretch="never" valign="middle" mousethrough="always">
- <spring flex="1"/>
- <spring id="cellBackgroundCW" class="color-well"/>
- <spring flex="1"/>
- </hbox>
- </stack>
- <spring class="spacer"/>
- <text class="label" id="CellInheritColor" value="&cellInheritColor.label;" collapsed="true"/>
- </hbox>
- <separator class="groove"/>
- <hbox autostretch="never">
- <html class="wrap" flex="1" style="width: 1em">&cellUseCheckboxHelp.label;</html>
- <!-- From EdDialogOvlerlay.xul -->
- <button class="dialog" id="AdvancedEditButton2"/>
- </hbox>
- <spring flex="1"/>
- </vbox><!-- Cell Panel -->
-
- </tabpanels>
- <spring class="spacer"/>
- <!-- from EdDialogOverlay -->
- <hbox>
- <spring flex="1"/>
- <hbox id="okCancelHelpButtonsRight"/>
- </hbox>
- </tabbox>
- </window>
-