Bug 187455 Table properties dialog doesn't support left or right caption side r=brade sr=sfraser

This commit is contained in:
neil%parkwaycc.co.uk 2003-01-17 13:37:20 +00:00
parent 6d048dee59
commit 5670060205
3 changed files with 8 additions and 6 deletions

View File

@ -311,12 +311,10 @@ function InitDialog()
gTableCaptionElement = gTableElement.caption;
if (gTableCaptionElement)
{
// Note: Other possible values are "left" and "right",
// but "align" is deprecated, so should we even support "botton"?
if (GetHTMLOrCSSStyleValue(gTableCaptionElement, "align", "caption-side") == "bottom")
gDialog.TableCaptionList.value = "bottom";
else
gDialog.TableCaptionList.value = "top";
var align = GetHTMLOrCSSStyleValue(gTableCaptionElement, "align", "caption-side");
if (align != "bottom" && align != "left" && align != "right")
align = "top";
gDialog.TableCaptionList.value = align;
}
gTableColor = GetHTMLOrCSSStyleValue(globalTableElement, bgcolor, cssBackgroundColorStr);

View File

@ -131,6 +131,8 @@
<menuitem label="&tableCaptionNone.label;" value=""/>
<menuitem label="&tableCaptionAbove.label;" value="top"/>
<menuitem label="&tableCaptionBelow.label;" value="bottom"/>
<menuitem label="&tableCaptionLeft.label;" value="left"/>
<menuitem label="&tableCaptionRight.label;" value="right"/>
</menupopup>
</menulist>
</hbox>

View File

@ -46,6 +46,8 @@
<!ENTITY tableCaption.accessKey "N">
<!ENTITY tableCaptionAbove.label "Above Table">
<!ENTITY tableCaptionBelow.label "Below Table">
<!ENTITY tableCaptionLeft.label "Left of Table">
<!ENTITY tableCaptionRight.label "Right of table">
<!ENTITY tableCaptionNone.label "None">
<!ENTITY tableInheritColor.label "(Let page color show through)">