зеркало из https://github.com/mozilla/gecko-dev.git
localization
This commit is contained in:
Родитель
8c39c81e8c
Коммит
db566ab1bf
|
@ -1,14 +1,40 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
||||||
<?xml-stylesheet href="chrome://editordlgs/skin/EditorDialog.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://editordlgs/skin/EditorDialog.css" type="text/css"?>
|
||||||
<!DOCTYPE window>
|
<!DOCTYPE window
|
||||||
|
[
|
||||||
|
|
||||||
|
<!-- These entity declarations will go into a separate, locale file at some point -->
|
||||||
|
<!-- Window title -->
|
||||||
|
<!ENTITY windowTitle.label "Horizontal Line Properties">
|
||||||
|
|
||||||
|
<!ENTITY dimensionsFieldset.label "Dimensions">
|
||||||
|
<!ENTITY heightEditField.label "Height">
|
||||||
|
<!ENTITY widthEditField.label "Width">
|
||||||
|
<!ENTITY pixelsPopup.value "pixels">
|
||||||
|
<!ENTITY percentPopup.value "percent">
|
||||||
|
|
||||||
|
<!ENTITY alignmentFieldset.label "Alignment">
|
||||||
|
<!ENTITY leftPopup.value "Left">
|
||||||
|
<!ENTITY centerPopup.value "Center">
|
||||||
|
<!ENTITY rightPopup.value "Right">
|
||||||
|
|
||||||
|
<!ENTITY threeDShading.label "3-D Shading">
|
||||||
|
<!ENTITY saveSettings.label "Save Settings">
|
||||||
|
<!ENTITY OKButton.label "OK">
|
||||||
|
<!ENTITY CancelButton.label "Cancel">
|
||||||
|
<!ENTITY advancedEditingButton.label "More Attributes...">
|
||||||
|
|
||||||
|
]>
|
||||||
|
|
||||||
<!-- dialog containing a control requiring initial setup -->
|
<!-- dialog containing a control requiring initial setup -->
|
||||||
<xul:window class="dialog" title="Horizontal Line Properties"
|
<xul:window class="dialog" title="&windowTitle.label;"
|
||||||
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
xmlns="http://www.w3.org/TR/REC-html40"
|
xmlns="http://www.w3.org/TR/REC-html40"
|
||||||
onload = "Startup()"
|
onload = "Startup()"
|
||||||
align="vertical">
|
align="vertical">
|
||||||
|
|
||||||
|
|
||||||
<!-- Methods common to all editor dialogs -->
|
<!-- Methods common to all editor dialogs -->
|
||||||
<script language="JavaScript" src="chrome://editordlgs/content/EdDialogCommon.js">
|
<script language="JavaScript" src="chrome://editordlgs/content/EdDialogCommon.js">
|
||||||
</script>
|
</script>
|
||||||
|
@ -18,25 +44,26 @@
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<fieldset><legend align="left">Dimensions</legend>
|
<fieldset><legend align="left">&dimensionsFieldset.label;</legend>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
Height:
|
<label for="height">&heightEditField.label;</label>
|
||||||
</td>
|
</td>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<input type="text" id="height" size="4" maxlength="4"/>
|
<input type="text" id="height" size="4" maxlength="4"/>
|
||||||
|
<label> &pixelsPopup.value; </label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
Width:
|
<label for="height">&widthEditField.label;</label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="width" size="4" maxlength="4"/>
|
<input type="text" id="width" size="4" maxlength="4"/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<xul:titledbutton class="popup PixelOrPercent" id="pixelOrPercentButton" value="percent" align="left" popup="PixelOrPercentMenu" popupanchor="bottomleft"/>
|
<xul:titledbutton class="popup PixelOrPercent" id="pixelOrPercentButton" value="&percentPopup.value;" align="left" popup="PixelOrPercentMenu" popupanchor="bottomleft"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -45,34 +72,34 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<fieldset><legend align="left">Alignment</legend>
|
<fieldset><legend align="left">&alignmentFieldset.label;</legend>
|
||||||
<label><input type="radio" name="HRuleAlign" id="leftAlign"/>Left</label>
|
<label><input type="radio" name="HRuleAlign" id="leftAlign"/>&leftPopup.value;</label>
|
||||||
<label><input type="radio" name="HRuleAlign" id="centerAlign"/>Center</label>
|
<label><input type="radio" name="HRuleAlign" id="centerAlign"/>¢erPopup.value;</label>
|
||||||
<label><input type="radio" name="HRuleAlign" id="rightAlign"/>Right</label>
|
<label><input type="radio" name="HRuleAlign" id="rightAlign"/>&rightPopup.value;</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<label><input type="checkbox" id="3dShading"/>3-D Shading</label>
|
<label><input type="checkbox" id="3dShading"/>&threeDShading.label;</label>
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<xul:titledbutton class="spaced" id="SaveDefault" onclick="onSaveDefault()" value="Save settings"/>
|
<xul:titledbutton class="spaced" id="SaveDefault" onclick="onSaveDefault()" value="&saveSettings.label;"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<hr width="100%"/>
|
<hr width="100%"/>
|
||||||
<xul:box>
|
<xul:box>
|
||||||
<xul:titledbutton class="spaced" id="Advanced" onclick="onAdvanced()" value="More Attributes..."/>
|
<xul:titledbutton class="spaced" id="Advanced" onclick="onAdvanced()" value="&advancedEditingButton.label;"/>
|
||||||
<xul:spring flex="100%"/>
|
<xul:spring flex="100%"/>
|
||||||
<xul:titledbutton class="spaced" id="OK" onclick="onOK()" value="OK"/>
|
<xul:titledbutton class="spaced" id="OK" onclick="onOK()" value="&OKButton.label;"/>
|
||||||
<xul:titledbutton class="spaced" id="Cancel" onclick="onCancel()" value="Cancel"/>
|
<xul:titledbutton class="spaced" id="Cancel" onclick="onCancel()" value="&CancelButton.label;"/>
|
||||||
</xul:box>
|
</xul:box>
|
||||||
|
|
||||||
<xul:popup id="PixelOrPercentMenu">
|
<xul:popup id="PixelOrPercentMenu">
|
||||||
<xul:menu>
|
<xul:menu>
|
||||||
<xul:menuitem name="pixels" onclick="SetPixelOrPercentByID('pixelOrPercentButton', '')"/>
|
<xul:menuitem name="&pixelsPopup.value;" onclick="SetPixelOrPercentByID('pixelOrPercentButton', '')"/>
|
||||||
<xul:menuitem name="percent" onclick="SetPixelOrPercentByID('pixelOrPercentButton', '%')"/>
|
<xul:menuitem name="&percentPopup.value;" onclick="SetPixelOrPercentByID('pixelOrPercentButton', '%')"/>
|
||||||
</xul:menu>
|
</xul:menu>
|
||||||
</xul:popup>
|
</xul:popup>
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,49 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
||||||
<?xml-stylesheet href="chrome://editordlgs/skin/EditorDialog.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://editordlgs/skin/EditorDialog.css" type="text/css"?>
|
||||||
<!DOCTYPE window>
|
<!DOCTYPE window
|
||||||
|
[
|
||||||
|
|
||||||
|
<!-- These entity declarations will go into a separate, locale file at some point -->
|
||||||
|
<!-- Window title -->
|
||||||
|
<!ENTITY windowTitle.label "Image Properties">
|
||||||
|
|
||||||
|
<!ENTITY locationFieldset.label "Image Location">
|
||||||
|
<!ENTITY locationEditField.label "Image URL">
|
||||||
|
<!ENTITY altTextEditField.label "Alternative Text">
|
||||||
|
<!ENTITY chooseButton.label "Choose File...">
|
||||||
|
|
||||||
|
<!ENTITY pixelsPopup.value "pixels">
|
||||||
|
<!ENTITY percentPopup.value "percent">
|
||||||
|
|
||||||
|
<!ENTITY dimensionsFieldset.label "Dimensions">
|
||||||
|
<!ENTITY originalSizeRadio.label "Original Size">
|
||||||
|
<!ENTITY customSizeRadio.label "Custom Size">
|
||||||
|
<!ENTITY heightEditField.label "Height">
|
||||||
|
<!ENTITY widthEditField.label "Width">
|
||||||
|
<!ENTITY constrainCheckbox.label "Constrain">
|
||||||
|
|
||||||
|
<!ENTITY alignment.label "Align Text to Image">
|
||||||
|
<!ENTITY bottomPopup.value "at the bottom">
|
||||||
|
<!ENTITY topPopup.value "at the top">
|
||||||
|
<!ENTITY centerPopup.value "in the center">
|
||||||
|
<!ENTITY wrapRightPopup.value "wrap around right side">
|
||||||
|
<!ENTITY wrapLeftPopup.value "wrap around left side">
|
||||||
|
|
||||||
|
<!ENTITY spacingFieldset.label "Spacing">
|
||||||
|
<!ENTITY leftrightEditField.label "Left and Right">
|
||||||
|
<!ENTITY topBottomEditField.label "Top and Bottom">
|
||||||
|
<!ENTITY borderEditField.label "Solid Border">
|
||||||
|
|
||||||
|
<!ENTITY OKButton.label "OK">
|
||||||
|
<!ENTITY CancelButton.label "Cancel">
|
||||||
|
<!ENTITY advancedButton.label "Advanced">
|
||||||
|
|
||||||
|
]>
|
||||||
|
|
||||||
|
|
||||||
<!-- dialog containing a control requiring initial setup -->
|
<!-- dialog containing a control requiring initial setup -->
|
||||||
<xul:window class="dialog" title="Image Properties"
|
<xul:window class="dialog" title="&windowTitle.label;"
|
||||||
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
xmlns="http://www.w3.org/TR/REC-html40"
|
xmlns="http://www.w3.org/TR/REC-html40"
|
||||||
onload = "Startup()"
|
onload = "Startup()"
|
||||||
|
@ -21,21 +60,21 @@
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<fieldset id="imageInfo.fieldset" ><legend align="left"> Image Information </legend>
|
<fieldset id="imageInfo.fieldset" ><legend align="left"> &locationFieldset.label; </legend>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right" valign="middle">
|
<td align="right" valign="middle">
|
||||||
<label class="enabled"> Image URL </label>
|
<label class="enabled" for="image.srcInput"> &locationEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td valign="middle">
|
<td valign="middle">
|
||||||
<input type="text" size="30" length="30" id="image.srcInput" onkeypress="OnChangeSrc()" onchange="OnChangeSrc()"/>
|
<input type="text" size="30" length="30" id="image.srcInput" onkeypress="OnChangeSrc()" onchange="OnChangeSrc()"/>
|
||||||
<button class="ChooseFile" id="ChooseFile" onclick="chooseFile()"> Choose File... </button>
|
<button class="ChooseFile" id="ChooseFile" onclick="chooseFile()"> &chooseButton.label; </button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right" valign="middle">
|
<td align="right" valign="middle">
|
||||||
<label class="enabled"> Alternative Text </label>
|
<label class="enabled" for="image.altTextInput"> &altTextEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" size="30" id="image.altTextInput" onchange="doValueChanged()"/>
|
<input type="text" size="30" id="image.altTextInput" onchange="doValueChanged()"/>
|
||||||
|
@ -48,13 +87,13 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<button class="spaced" id="AdvancedButton" onclick="onAdvanced()" width="50">Advanced</button>
|
<button class="spaced" id="AdvancedButton" onclick="onAdvanced()" width="50"> &advancedButton.label; </button>
|
||||||
</td>
|
</td>
|
||||||
<td/>
|
<td/>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="AdvancedRow">
|
<tr id="AdvancedRow">
|
||||||
<td>
|
<td>
|
||||||
<fieldset id="imagedimensionsFieldset" ><legend align="left">Dimensions </legend>
|
<fieldset id="imagedimensionsFieldset" ><legend align="left"> &dimensionsFieldset.label; </legend>
|
||||||
<table cellspacing="0" cellpadding="0">
|
<table cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
@ -62,7 +101,7 @@
|
||||||
<input type="radio" name="image.dimensionType" id="originalsizeRadio" onclick="doValueChanged()" checked="true" />
|
<input type="radio" name="image.dimensionType" id="originalsizeRadio" onclick="doValueChanged()" checked="true" />
|
||||||
</td>
|
</td>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<label class="disabled" for="originalsizeRadio" id="originalsizeLabel" > Original Size </label>
|
<label class="disabled" for="originalsizeRadio" id="originalsizeLabel" > &originalSizeRadio.label; </label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -71,7 +110,7 @@
|
||||||
<input type="radio" name="image.dimensionType" id="customsizeRadio" onclick="doValueChanged()" />
|
<input type="radio" name="image.dimensionType" id="customsizeRadio" onclick="doValueChanged()" />
|
||||||
</td>
|
</td>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<label class="disabled" for="customsizeRadio" id="customsizeLabel" > Custom Size </label>
|
<label class="disabled" for="customsizeRadio" id="customsizeLabel" > &customSizeRadio.label; </label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -79,13 +118,13 @@
|
||||||
<tr valign="middle">
|
<tr valign="middle">
|
||||||
<td/>
|
<td/>
|
||||||
<td>
|
<td>
|
||||||
<label class="disabled" for="imagewidthInput" id="imagewidthLabel"> Width </label>
|
<label class="disabled" for="imagewidthInput" id="imagewidthLabel"> &widthEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" size="4" length="4" id="imagewidthInput" onchange="doValueChanged()" />
|
<input type="text" size="4" length="4" id="imagewidthInput" onchange="doValueChanged()" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<xul:titledbutton class="popup PixelOrPercent" id="widthunitSelect" value="pixels"
|
<xul:titledbutton class="popup PixelOrPercent" id="widthunitSelect" value="&pixelsPopup.value;"
|
||||||
align="left" popup="PixelOrPercentMenu1" onchange="doValueChanged()" />
|
align="left" popup="PixelOrPercentMenu1" onchange="doValueChanged()" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -94,13 +133,13 @@
|
||||||
<tr valign="middle">
|
<tr valign="middle">
|
||||||
<td/>
|
<td/>
|
||||||
<td>
|
<td>
|
||||||
<label class="disabled" for="imageheightInput" id="imageheightLabel"> Height </label>
|
<label class="disabled" for="imageheightInput" id="imageheightLabel"> &heightEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" size="4" length="4" id="imageheightInput" onchange="doValueChanged()" />
|
<input type="text" size="4" length="4" id="imageheightInput" onchange="doValueChanged()" />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<xul:titledbutton class="popup PixelOrPercent" id="heightunitSelect" value="pixels"
|
<xul:titledbutton class="popup PixelOrPercent" id="heightunitSelect" value="&pixelsPopup.value;"
|
||||||
align="left" popup="PixelOrPercentMenu2" onchange="doValueChanged()" />
|
align="left" popup="PixelOrPercentMenu2" onchange="doValueChanged()" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -108,9 +147,10 @@
|
||||||
<!-- CONSTRAIN DIMENSIONS -->
|
<!-- CONSTRAIN DIMENSIONS -->
|
||||||
<tr valign="middle">
|
<tr valign="middle">
|
||||||
<td/>
|
<td/>
|
||||||
<td colspan="3">
|
<td/>
|
||||||
|
<td colspan="2">
|
||||||
<input type="checkbox" id="constrainCheckbox"></input>
|
<input type="checkbox" id="constrainCheckbox"></input>
|
||||||
<label class="disabled" id="constrainLabel" for="constrainCheckbox"> Constrain </label>
|
<label class="disabled" id="constrainLabel" for="constrainCheckbox"> &constrainCheckbox.label; </label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -119,47 +159,47 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- IMAGE ALIGNMENT -->
|
<!-- IMAGE ALIGNMENT -->
|
||||||
<label class="disabled" for="image.alignType" id="imagealignmentLabel"> Align Text to Image </label>
|
<label class="disabled" for="image.alignType" id="imagealignmentLabel"> &alignment.label; </label>
|
||||||
<xul:titledbutton class="popup PixelOrPercent" id="image.alignType" value="at the bottom" align="left"
|
<xul:titledbutton class="popup PixelOrPercent" id="image.alignType" value="&bottomPopup.value;" align="left"
|
||||||
popup="ImageTextAlignment" onchange="doValueChanged()"/>
|
popup="ImageTextAlignment" onchange="doValueChanged()"/>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
<p/>
|
<p/>
|
||||||
<fieldset id="spacing.fieldset"><legend align="left">Spacing </legend>
|
<fieldset id="spacing.fieldset"><legend align="left"> &spacingFieldset.label; </legend>
|
||||||
<table cellspacing="0" cellpadding="0">
|
<table cellspacing="0" cellpadding="0">
|
||||||
<tr valign="middle">
|
<tr valign="middle">
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<label class="disabled" for="imageleftrightInput" id="leftrightLabel"> Left and Right </label>
|
<label class="disabled" for="imageleftrightInput" id="leftrightLabel"> &leftrightEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" size="4" length="4" maxlength="4" id="imageleftrightInput" onchange="doValueChanged()"/>
|
<input type="text" size="4" length="4" maxlength="4" id="imageleftrightInput" onchange="doValueChanged()"/>
|
||||||
</td>
|
</td>
|
||||||
<td valign="middle">
|
<td valign="middle">
|
||||||
<label class="disabled" for="imageleftrightInput" id="leftrighttypeLabel"> pixels </label>
|
<label class="disabled" for="imageleftrightInput" id="leftrighttypeLabel"> &pixelsPopup.value; </label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign="middle">
|
<tr valign="middle">
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<label class="disabled" for="imagetopbottomInput" id="topbottomLabel"> Top and Bottom </label>
|
<label class="disabled" for="imagetopbottomInput" id="topbottomLabel"> &topBottomEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" size="4" length="4" maxlength="4" id="imagetopbottomInput" onchange="doValueChanged()"/>
|
<input type="text" size="4" length="4" maxlength="4" id="imagetopbottomInput" onchange="doValueChanged()"/>
|
||||||
</td>
|
</td>
|
||||||
<td valign="middle">
|
<td valign="middle">
|
||||||
<label class="disabled" for="imagetopbottomInput" id="topbottomtypeLabel"> pixels </label>
|
<label class="disabled" for="imagetopbottomInput" id="topbottomtypeLabel"> &pixelsPopup.value; </label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr valign="middle">
|
<tr valign="middle">
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<label class="disabled" for="imageborderInput" id="borderLabel"> Solid Border </label>
|
<label class="disabled" for="imageborderInput" id="borderLabel"> &borderEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" size="4" length="4" maxlength="4" id="imageborderInput" onchange="doValueChanged()" />
|
<input type="text" size="4" length="4" maxlength="4" id="imageborderInput" onchange="doValueChanged()" />
|
||||||
</td>
|
</td>
|
||||||
<td valign="middle">
|
<td valign="middle">
|
||||||
<label class="disabled" for="imageborderInput" id="bordertypeLabel"> pixels </label>
|
<label class="disabled" for="imageborderInput" id="bordertypeLabel"> &pixelsPopup.value; </label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -168,8 +208,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" align="right">
|
<td colspan="2" align="right">
|
||||||
<button class="spaced" id="OK" onclick="onOK()" width="50">OK</button>
|
<button class="spaced" id="OK" onclick="onOK()" width="50"> &OKButton.label; </button>
|
||||||
<button class="spaced" id="Cancel" onclick="onCancel()" width="50">Cancel</button>
|
<button class="spaced" id="Cancel" onclick="onCancel()" width="50"> &CancelButton.label; </button>
|
||||||
</td>
|
</td>
|
||||||
<td/>
|
<td/>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -177,25 +217,25 @@
|
||||||
|
|
||||||
<xul:popup id="PixelOrPercentMenu1">
|
<xul:popup id="PixelOrPercentMenu1">
|
||||||
<xul:menu>
|
<xul:menu>
|
||||||
<xul:menuitem name="pixels" onclick="SetPixelOrPercentByID('widthunitSelect', '')"/>
|
<xul:menuitem name="&pixelsPopup.value;" onclick="SetPixelOrPercentByID('widthunitSelect', '')"/>
|
||||||
<xul:menuitem name="percent" onclick="SetPixelOrPercentByID('widthunitSelect', '%')"/>
|
<xul:menuitem name="&percentPopup.value;" onclick="SetPixelOrPercentByID('widthunitSelect', '%')"/>
|
||||||
</xul:menu>
|
</xul:menu>
|
||||||
</xul:popup>
|
</xul:popup>
|
||||||
|
|
||||||
<xul:popup id="PixelOrPercentMenu2">
|
<xul:popup id="PixelOrPercentMenu2">
|
||||||
<xul:menu>
|
<xul:menu>
|
||||||
<xul:menuitem name="pixels" onclick="SetPixelOrPercentByID('heightunitSelect', '')"/>
|
<xul:menuitem name="&pixelsPopup.value;" onclick="SetPixelOrPercentByID('heightunitSelect', '')"/>
|
||||||
<xul:menuitem name="percent" onclick="SetPixelOrPercentByID('heightunitSelect', '%')"/>
|
<xul:menuitem name="&percentPopup.value;" onclick="SetPixelOrPercentByID('heightunitSelect', '%')"/>
|
||||||
</xul:menu>
|
</xul:menu>
|
||||||
</xul:popup>
|
</xul:popup>
|
||||||
|
|
||||||
<xul:popup id="ImageTextAlignment">
|
<xul:popup id="ImageTextAlignment">
|
||||||
<xul:menu>
|
<xul:menu>
|
||||||
<xul:menuitem name="at the top" onclick="SetImageAlignment('^')"/>
|
<xul:menuitem name="&topPopup.value;" onclick="SetImageAlignment('^')"/>
|
||||||
<xul:menuitem name="in the center" onclick="SetImageAlignment('.')"/>
|
<xul:menuitem name="¢erPopup.value;" onclick="SetImageAlignment('.')"/>
|
||||||
<xul:menuitem name="at the bottom" onclick="SetImageAlignment('v')"/>
|
<xul:menuitem name="&bottomPopup.value;" onclick="SetImageAlignment('v')"/>
|
||||||
<xul:menuitem name="wrap around right side" onclick="SetImageAlignment(']')"/>
|
<xul:menuitem name="&wrapRightPopup.value;" onclick="SetImageAlignment(']')"/>
|
||||||
<xul:menuitem name="wrap around left side" onclick="SetImageAlignment('[')"/>
|
<xul:menuitem name="&wrapLeftPopup.value;" onclick="SetImageAlignment('[')"/>
|
||||||
</xul:menu>
|
</xul:menu>
|
||||||
</xul:popup>
|
</xul:popup>
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,24 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
||||||
<?xml-stylesheet href="chrome://editordlgs/skin/EditorDialog.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://editordlgs/skin/EditorDialog.css" type="text/css"?>
|
||||||
<!DOCTYPE window>
|
<!DOCTYPE window
|
||||||
|
[
|
||||||
|
|
||||||
<xul:window title="Insert HTML"
|
<!-- These entity declarations will go into a separate, locale file at some point -->
|
||||||
|
<!-- Window title -->
|
||||||
|
<!ENTITY windowTitle.label "Insert HTML">
|
||||||
|
<!ENTITY sourceFieldset.label "HTML Source">
|
||||||
|
<!ENTITY sourceEditField.label "Enter HTML source to insert:">
|
||||||
|
<!ENTITY OKButton.label "OK">
|
||||||
|
<!ENTITY CancelButton.label "Cancel">
|
||||||
|
|
||||||
|
]>
|
||||||
|
|
||||||
|
<xul:window class="dialog" title="&windowTitle.label;"
|
||||||
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
xmlns="http://www.w3.org/TR/REC-html40"
|
xmlns="http://www.w3.org/TR/REC-html40"
|
||||||
onload = "Startup()"
|
onload = "Startup()"
|
||||||
align="vertical">
|
align="vertical" flex="100%">
|
||||||
|
|
||||||
<!-- Methods common to all editor dialogs -->
|
<!-- Methods common to all editor dialogs -->
|
||||||
<script language="JavaScript" src="chrome://editordlgs/content/EdDialogCommon.js">
|
<script language="JavaScript" src="chrome://editordlgs/content/EdDialogCommon.js">
|
||||||
|
@ -16,22 +27,19 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<xul:broadcaster id="args" value=""/>
|
<xul:broadcaster id="args" value=""/>
|
||||||
|
|
||||||
|
<xul:box>
|
||||||
|
<label class="smallmargin" id="srcMessage"> &sourceEditField.label; </label>
|
||||||
|
</xul:box>
|
||||||
|
<xul:box>
|
||||||
|
<textarea rows="6" cols="50" id="srcInput" />
|
||||||
|
</xul:box>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<fieldset><legend align="left">HTML Source</legend>
|
|
||||||
<p class="smallmargin" id="srcMessage">Enter HTML source to insert:</p>
|
|
||||||
<input type="text" size="60" length="60" id="srcInput"></input>
|
|
||||||
<!-- Want to use a textarea, but it doesn't work!
|
|
||||||
<textarea rows=6 cols="50" id="srcInput">
|
|
||||||
-->
|
|
||||||
</fieldset>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<xul:titledbutton class="spaced" id="OK" onclick="onOK()" value="OK"/>
|
<xul:titledbutton class="spaced" id="OK" onclick="onOK()" value="&OKButton.label;"/>
|
||||||
<xul:titledbutton class="spaced" id="Cancel" onclick="onCancel()" value="Cancel"/>
|
<xul:titledbutton class="spaced" id="Cancel" onclick="onCancel()" value="&CancelButton.label;"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -1,8 +1,33 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
|
||||||
<?xml-stylesheet href="chrome://editordlgs/skin/EditorDialog.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://editordlgs/skin/EditorDialog.css" type="text/css"?>
|
||||||
<!DOCTYPE window>
|
<!DOCTYPE window
|
||||||
<xul:window class="dialog" title="Insert Table"
|
[
|
||||||
|
|
||||||
|
<!-- These entity declarations will go into a separate, locale file at some point -->
|
||||||
|
<!-- Window title -->
|
||||||
|
<!ENTITY windowTitle.label "Insert Table">
|
||||||
|
|
||||||
|
<!ENTITY numRowsEditField.label "Number of rows">
|
||||||
|
<!ENTITY numColumnsEditField.label "Number of columns">
|
||||||
|
<!ENTITY widthEditField.label "Table Width">
|
||||||
|
<!ENTITY borderEditField.label "Border">
|
||||||
|
|
||||||
|
<!ENTITY alignmentFieldset.label "Alignment">
|
||||||
|
<!ENTITY leftPopup.value "Left">
|
||||||
|
<!ENTITY centerPopup.value "Center">
|
||||||
|
<!ENTITY rightPopup.value "Right">
|
||||||
|
|
||||||
|
<!ENTITY pixelsPopup.value "pixels">
|
||||||
|
<!ENTITY percentPopup.value "percent">
|
||||||
|
|
||||||
|
<!ENTITY OKButton.label "OK">
|
||||||
|
<!ENTITY CancelButton.label "Cancel">
|
||||||
|
<!ENTITY advancedEditingButton.label "More Attributes...">
|
||||||
|
|
||||||
|
]>
|
||||||
|
|
||||||
|
<xul:window class="dialog" title="&windowTitle.label;"
|
||||||
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
xmlns="http://www.w3.org/TR/REC-html40"
|
xmlns="http://www.w3.org/TR/REC-html40"
|
||||||
onload = "Startup()"
|
onload = "Startup()"
|
||||||
|
@ -18,34 +43,35 @@
|
||||||
<table>
|
<table>
|
||||||
<tr class="vcenter">
|
<tr class="vcenter">
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<span>Number of rows:</span>
|
<label for="rows"> &numRowsEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td cellspan="2">
|
<td cellspan="2">
|
||||||
<input type="text" id="rows" size="4"/>
|
<input type="text" id="rows" maxlength="4" size="4"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="vcenter">
|
<tr class="vcenter">
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<span>Number of columns:</span>
|
<label for="columns"> &numColumnsEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td cellspan="2">
|
<td cellspan="2">
|
||||||
<input type="text" id="columns" size="4"/>
|
<input type="text" id="columns" maxlength="4" size="4"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="vcenter">
|
<tr class="vcenter">
|
||||||
<td align="right" valign="middle">
|
<td align="right" valign="middle">
|
||||||
<span>Width:</span>
|
<label for="width" > &widthEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="text" id="width" size="4" maxlength="4"/>
|
<input type="text" id="width" size="4" maxlength="4"/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<xul:titledbutton class="popup PixelOrPercent" id="pixelOrPercentButton" value="percent" align="left" popup="PixelOrPercentMenu" popupanchor="bottomleft"/>
|
<xul:titledbutton class="popup PixelOrPercent" id="pixelOrPercentButton"
|
||||||
|
value="&percentPopup.value;" align="left" popup="PixelOrPercentMenu" popupanchor="bottomleft"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="vcenter">
|
<tr class="vcenter">
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<span>Border:</span>
|
<label for="border"> &borderEditField.label; </label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- THIS IS DUMB Can't figure out how to put "pixels" after the
|
<!-- THIS IS DUMB Can't figure out how to put "pixels" after the
|
||||||
|
@ -53,16 +79,16 @@
|
||||||
<input type="text" id="border" size="4"/>
|
<input type="text" id="border" size="4"/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span>pixels</span>
|
<label for="border"> &pixelsPopup.value; </label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<hr width="100%"/>
|
<hr width="100%"/>
|
||||||
<xul:box>
|
<xul:box>
|
||||||
<xul:titledbutton class="spaced" id="Advanced" onclick="onAdvanced()" value="More Attributes..."/>
|
<xul:titledbutton class="spaced" id="Advanced" onclick="onAdvanced()" value="&advancedEditingButton.label;"/>
|
||||||
<xul:spring flex="100%"/>
|
<xul:spring flex="100%"/>
|
||||||
<xul:titledbutton class="spaced" id="OK" onclick="onOK()" value="OK"/>
|
<xul:titledbutton class="spaced" id="OK" onclick="onOK()" value="&OKButton.label;"/>
|
||||||
<xul:titledbutton class="spaced" id="Cancel" onclick="onCancel()" value="Cancel"/>
|
<xul:titledbutton class="spaced" id="Cancel" onclick="onCancel()" value="&CancelButton.label;"/>
|
||||||
</xul:box>
|
</xul:box>
|
||||||
|
|
||||||
<xul:popup id="PixelOrPercentMenu">
|
<xul:popup id="PixelOrPercentMenu">
|
||||||
|
|
Загрузка…
Ссылка в новой задаче