1999-04-21 07:38:29 +04:00
|
|
|
<?xml version="1.0"?>
|
1999-08-02 02:37:58 +04:00
|
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
1999-07-21 23:56:21 +04:00
|
|
|
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
|
1999-07-14 21:37:08 +04:00
|
|
|
<!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">
|
1999-08-02 02:37:58 +04:00
|
|
|
<!ENTITY MoreOrLessButton.label "More">
|
1999-07-14 21:37:08 +04:00
|
|
|
|
|
|
|
]>
|
|
|
|
|
1999-05-13 02:25:45 +04:00
|
|
|
|
1999-04-21 07:38:29 +04:00
|
|
|
<!-- dialog containing a control requiring initial setup -->
|
1999-07-14 21:37:08 +04:00
|
|
|
<xul:window class="dialog" title="&windowTitle.label;"
|
1999-04-21 07:38:29 +04:00
|
|
|
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
1999-05-06 03:29:18 +04:00
|
|
|
xmlns="http://www.w3.org/TR/REC-html40"
|
1999-07-03 02:52:34 +04:00
|
|
|
onload = "Startup()"
|
1999-07-08 07:21:01 +04:00
|
|
|
align="vertical">
|
1999-04-21 07:38:29 +04:00
|
|
|
|
1999-05-07 04:44:46 +04:00
|
|
|
<!-- Methods common to all editor dialogs -->
|
1999-07-21 23:56:21 +04:00
|
|
|
<script language="JavaScript" src="chrome://editor/content/EdDialogCommon.js">
|
1999-05-07 04:44:46 +04:00
|
|
|
</script>
|
1999-07-21 23:56:21 +04:00
|
|
|
<script language="JavaScript" src="chrome://editor/content/EdImageProps.js">
|
1999-05-06 03:29:18 +04:00
|
|
|
</script>
|
1999-05-13 02:25:45 +04:00
|
|
|
|
|
|
|
<xul:broadcaster id="args" value=""/>
|
1999-07-08 07:21:01 +04:00
|
|
|
|
1999-05-06 03:29:18 +04:00
|
|
|
<table>
|
1999-04-21 07:38:29 +04:00
|
|
|
<tr>
|
1999-05-27 01:40:51 +04:00
|
|
|
<td colspan="2">
|
1999-07-14 21:37:08 +04:00
|
|
|
<fieldset id="imageInfo.fieldset" ><legend align="left"> &locationFieldset.label; </legend>
|
1999-06-23 23:35:34 +04:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td align="right" valign="middle">
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="enabled" for="image.srcInput"> &locationEditField.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td valign="middle">
|
|
|
|
<input type="text" size="30" length="30" id="image.srcInput" onkeypress="OnChangeSrc()" onchange="OnChangeSrc()"/>
|
1999-07-14 21:37:08 +04:00
|
|
|
<button class="ChooseFile" id="ChooseFile" onclick="chooseFile()"> &chooseButton.label; </button>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td align="right" valign="middle">
|
1999-07-19 18:03:12 +04:00
|
|
|
<label class="enabled" for="image.altTextInput" id="image.altTextLabel"> &altTextEditField.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
1999-07-02 18:43:48 +04:00
|
|
|
<input type="text" size="30" id="image.altTextInput" onchange="doValueChanged()"/>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
1999-05-27 01:40:51 +04:00
|
|
|
</fieldset>
|
|
|
|
</td>
|
|
|
|
<td/>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
1999-08-02 02:37:58 +04:00
|
|
|
<button class="spaced" id="MoreOrLessButton" onclick="onMoreOrLess()" width="50"> &MoreOrLessButton.label; </button>
|
1999-05-27 01:40:51 +04:00
|
|
|
</td>
|
|
|
|
<td/>
|
|
|
|
</tr>
|
1999-08-02 02:37:58 +04:00
|
|
|
<tr id="MoreOrLessRow">
|
1999-06-23 23:35:34 +04:00
|
|
|
<td>
|
1999-07-14 21:37:08 +04:00
|
|
|
<fieldset id="imagedimensionsFieldset" ><legend align="left"> &dimensionsFieldset.label; </legend>
|
1999-06-23 23:35:34 +04:00
|
|
|
<table cellspacing="0" cellpadding="0">
|
|
|
|
<tr>
|
|
|
|
<td>
|
1999-07-02 18:43:48 +04:00
|
|
|
<!-- THIS NEEDS TO BE onchange RATHER THAN onclick -->
|
|
|
|
<input type="radio" name="image.dimensionType" id="originalsizeRadio" onclick="doValueChanged()" checked="true" />
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td colspan="3">
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="originalsizeRadio" id="originalsizeLabel" > &originalSizeRadio.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
1999-07-02 18:43:48 +04:00
|
|
|
<!-- THIS NEEDS TO BE onchange RATHER THAN onclick -->
|
|
|
|
<input type="radio" name="image.dimensionType" id="customsizeRadio" onclick="doValueChanged()" />
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td colspan="3">
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="customsizeRadio" id="customsizeLabel" > &customSizeRadio.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!-- IMAGE WIDTH -->
|
|
|
|
<tr valign="middle">
|
|
|
|
<td/>
|
|
|
|
<td>
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="imagewidthInput" id="imagewidthLabel"> &widthEditField.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
1999-07-19 18:03:12 +04:00
|
|
|
<input type="text" size="4" length="4" id="imagewidthInput" onfocus="oldSourceInt = this.value;"
|
|
|
|
onkeypress="constrainProportions(this.id, 'imageheightInput')" onchange="doValueChanged()" />
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
1999-08-02 02:37:58 +04:00
|
|
|
<xul:titledbutton class="popup" id="widthunitSelect" value="&pixelsPopup.value;"
|
|
|
|
align="right" popup="PixelOrPercentMenu1" popupanchor="bottomleft" onchange="doValueChanged()" />
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!-- IMAGE HEIGHT -->
|
|
|
|
<tr valign="middle">
|
|
|
|
<td/>
|
|
|
|
<td>
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="imageheightInput" id="imageheightLabel"> &heightEditField.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
1999-07-19 18:03:12 +04:00
|
|
|
<input type="text" size="4" length="4" id="imageheightInput" onfocus="oldSourceInt = this.value;"
|
|
|
|
onkeypress="constrainProportions(this.id, 'imagewidthInput')" onchange="doValueChanged()" />
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
1999-08-02 02:37:58 +04:00
|
|
|
<xul:titledbutton class="popup" id="heightunitSelect" value="&pixelsPopup.value;"
|
|
|
|
align="right" popup="PixelOrPercentMenu2" popupanchor="bottomleft" onchange="doValueChanged()" />
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!-- CONSTRAIN DIMENSIONS -->
|
|
|
|
<tr valign="middle">
|
|
|
|
<td/>
|
1999-07-14 21:37:08 +04:00
|
|
|
<td/>
|
|
|
|
<td colspan="2">
|
1999-07-16 13:10:35 +04:00
|
|
|
<input type="checkbox" id="constrainCheckbox" />
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" id="constrainLabel" for="constrainCheckbox"> &constrainCheckbox.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
1999-05-27 01:40:51 +04:00
|
|
|
</fieldset>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<!-- IMAGE ALIGNMENT -->
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="image.alignType" id="imagealignmentLabel"> &alignment.label; </label>
|
1999-08-02 02:37:58 +04:00
|
|
|
<xul:titledbutton class="popup" id="image.alignType" value="&bottomPopup.value;" align="right"
|
1999-07-02 18:43:48 +04:00
|
|
|
popup="ImageTextAlignment" onchange="doValueChanged()"/>
|
1999-06-23 23:35:34 +04:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
<p/>
|
1999-07-14 21:37:08 +04:00
|
|
|
<fieldset id="spacing.fieldset"><legend align="left"> &spacingFieldset.label; </legend>
|
1999-06-23 23:35:34 +04:00
|
|
|
<table cellspacing="0" cellpadding="0">
|
|
|
|
<tr valign="middle">
|
|
|
|
<td align="right">
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="imageleftrightInput" id="leftrightLabel"> &leftrightEditField.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
1999-07-16 13:10:35 +04:00
|
|
|
<input type="text" size="4" length="4" maxlength="4" id="imageleftrightInput"
|
1999-07-19 18:03:12 +04:00
|
|
|
onkeypress="forceInteger(this.id)" onchange="doValueChanged()"/>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td valign="middle">
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="imageleftrightInput" id="leftrighttypeLabel"> &pixelsPopup.value; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr valign="middle">
|
|
|
|
<td align="right">
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="imagetopbottomInput" id="topbottomLabel"> &topBottomEditField.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
1999-07-16 13:10:35 +04:00
|
|
|
<input type="text" size="4" length="4" maxlength="4" id="imagetopbottomInput"
|
1999-07-19 18:03:12 +04:00
|
|
|
onkeypress="forceInteger(this.id)" onchange="doValueChanged()"/>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td valign="middle">
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="imagetopbottomInput" id="topbottomtypeLabel"> &pixelsPopup.value; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr valign="middle">
|
|
|
|
<td align="right">
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="imageborderInput" id="borderLabel"> &borderEditField.label; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
1999-07-16 13:10:35 +04:00
|
|
|
<input type="text" size="4" length="4" maxlength="4" id="imageborderInput"
|
1999-07-19 18:03:12 +04:00
|
|
|
onkeypress="forceInteger(this.id)" onchange="doValueChanged()" />
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
<td valign="middle">
|
1999-07-14 21:37:08 +04:00
|
|
|
<label class="disabled" for="imageborderInput" id="bordertypeLabel"> &pixelsPopup.value; </label>
|
1999-06-23 23:35:34 +04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
1999-05-06 03:29:18 +04:00
|
|
|
</fieldset>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
1999-07-03 02:52:34 +04:00
|
|
|
<td colspan="2" align="right">
|
1999-07-14 21:37:08 +04:00
|
|
|
<button class="spaced" id="OK" onclick="onOK()" width="50"> &OKButton.label; </button>
|
|
|
|
<button class="spaced" id="Cancel" onclick="onCancel()" width="50"> &CancelButton.label; </button>
|
1999-07-03 02:52:34 +04:00
|
|
|
</td>
|
|
|
|
<td/>
|
|
|
|
</tr>
|
|
|
|
</table>
|
1999-07-02 18:43:48 +04:00
|
|
|
|
|
|
|
<xul:popup id="PixelOrPercentMenu1">
|
|
|
|
<xul:menu>
|
1999-08-02 02:37:58 +04:00
|
|
|
<xul:menuitem value="&pixelsPopup.value;" onclick="SetPixelOrPercentByID('widthunitSelect', '')"/>
|
|
|
|
<xul:menuitem value="&percentPopup.value;" onclick="SetPixelOrPercentByID('widthunitSelect', '%')"/>
|
1999-07-02 18:43:48 +04:00
|
|
|
</xul:menu>
|
|
|
|
</xul:popup>
|
|
|
|
|
|
|
|
<xul:popup id="PixelOrPercentMenu2">
|
|
|
|
<xul:menu>
|
1999-08-02 02:37:58 +04:00
|
|
|
<xul:menuitem value="&pixelsPopup.value;" onclick="SetPixelOrPercentByID('heightunitSelect', '')"/>
|
|
|
|
<xul:menuitem value="&percentPopup.value;" onclick="SetPixelOrPercentByID('heightunitSelect', '%')"/>
|
1999-07-02 18:43:48 +04:00
|
|
|
</xul:menu>
|
|
|
|
</xul:popup>
|
|
|
|
|
|
|
|
<xul:popup id="ImageTextAlignment">
|
|
|
|
<xul:menu>
|
1999-08-02 02:37:58 +04:00
|
|
|
<xul:menuitem value="&topPopup.value;" onclick="SetImageAlignment('^')"/>
|
|
|
|
<xul:menuitem value="¢erPopup.value;" onclick="SetImageAlignment('.')"/>
|
|
|
|
<xul:menuitem value="&bottomPopup.value;" onclick="SetImageAlignment('v')"/>
|
|
|
|
<xul:menuitem value="&wrapRightPopup.value;" onclick="SetImageAlignment(']')"/>
|
|
|
|
<xul:menuitem value="&wrapLeftPopup.value;" onclick="SetImageAlignment('[')"/>
|
1999-07-02 18:43:48 +04:00
|
|
|
</xul:menu>
|
|
|
|
</xul:popup>
|
|
|
|
|
1999-05-06 03:29:18 +04:00
|
|
|
</xul:window>
|
|
|
|
|
|
|
|
<!-- The old stuff:
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<fieldset><legend align="left">Image Location and Name </legend>
|
1999-04-21 07:38:29 +04:00
|
|
|
<input type="file" value=" Choose File... " size="50" length="50" maxlength="255" name="image.url" />
|
|
|
|
<br/>
|
1999-05-06 03:29:18 +04:00
|
|
|
<xul:checkbox value="1"/>
|
1999-04-21 07:38:29 +04:00
|
|
|
Leave Image at Original Location
|
|
|
|
|
1999-05-06 03:29:18 +04:00
|
|
|
<xul:checkbox value="1"/>
|
1999-04-21 07:38:29 +04:00
|
|
|
Page Background
|
|
|
|
|
1999-05-06 03:29:18 +04:00
|
|
|
<input type="button" value=" Edit Image "/>
|
1999-04-21 07:38:29 +04:00
|
|
|
<br/>
|
|
|
|
Alternative Text
|
|
|
|
<input type="text" size="30" length="30" maxlength="255" name="image.alttext" />
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<table cellspacing="0" cellpadding="0" width="100%">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<input type="button" value=" Remove Image Map " disabled />
|
|
|
|
</td>
|
|
|
|
<td align="right">
|
|
|
|
<input type="button"value=" Extra HTML... " disabled />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
1999-05-06 03:29:18 +04:00
|
|
|
-->
|
1999-04-21 07:38:29 +04:00
|
|
|
|