зеркало из https://github.com/mozilla/pjs.git
First Checked In.
This commit is contained in:
Родитель
61cbd28524
Коммит
f1f3908852
|
@ -0,0 +1,123 @@
|
|||
/* XUL ELEMENTS */
|
||||
window, WINDOW {
|
||||
display: block;
|
||||
width: 100%;
|
||||
background: silver;
|
||||
background-color: #CCCCCC; /* not working on Macintosh */
|
||||
padding: 5px;
|
||||
font-family: Sans-Serif;
|
||||
font-size: 8pt;
|
||||
}
|
||||
|
||||
/* Defeat the default behavior of borderless until rollover */
|
||||
button { border: 2px outset }
|
||||
|
||||
/* values = margin, padding. Padding doesn't work yet */
|
||||
checkbox, CHECKBOX { margin: 5px 3px }
|
||||
|
||||
radio, RADIO { margin: 5px 3px }
|
||||
|
||||
tree, TREE {
|
||||
display: table;
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
border-spacing: 0px;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* HTML ELEMENTS */
|
||||
/* Force all rows to line up cell contents at the top */
|
||||
tr, TR { vertical-align: top }
|
||||
|
||||
/* FOR DEBUG PURPOSE -- SHOW CELL BORDER */
|
||||
td, TD { border-width: 0px; border-style: inset }
|
||||
|
||||
table, TABLE { border-width: 0px }
|
||||
|
||||
p, br, td {
|
||||
font-family: Sans-Serif;
|
||||
font-size: 8pt;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px
|
||||
}
|
||||
|
||||
fieldset, FIELDSET {
|
||||
border-width: 3px;
|
||||
border-style: groove;
|
||||
padding: 3px;
|
||||
margin: 5px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
legend, LEGEND {
|
||||
font-family: Sans-Serif;
|
||||
font-size: 10pt;
|
||||
border-width: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* CLASSES */
|
||||
[CLASS~=GrooveBorder] { border: 2px groove; padding: 3px }
|
||||
|
||||
[CLASS~=RidgeBorder] { border: 2px ridge; padding: 3px }
|
||||
|
||||
[CLASS~=OutsetBorder] { border: 1px outset; padding: 3px }
|
||||
|
||||
[CLASS~=InsetBorder] { border: 1px inset; padding: 3px }
|
||||
|
||||
|
||||
.tableCenterAlign {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.genericbutton {
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
/* IDs only one button per dialog */
|
||||
#okbutton {
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
left: 385px;
|
||||
top: 320px;
|
||||
align: right;
|
||||
font-style: normal; position: absolute; visibility: visible; z-index: auto
|
||||
}
|
||||
|
||||
#cancelbutton {
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
left: 295px;
|
||||
top: 320px;
|
||||
align: right;
|
||||
font-style: normal; position: absolute; visibility: visible; z-index: auto
|
||||
}
|
||||
|
||||
#applybutton {
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
left: 205px;
|
||||
top: 320px;
|
||||
align: right; font-style: normal; position: absolute; visibility: visible; z-index: auto
|
||||
}
|
||||
|
||||
#helpbutton {
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
left: 10px;
|
||||
top: 320px;
|
||||
align : left;
|
||||
font-style: normal; position: absolute; visibility: visible; z-index: auto
|
||||
}
|
||||
|
||||
#extrahtmlbutton {
|
||||
width: 80px;
|
||||
height: 20px;
|
||||
align: right;
|
||||
left: 385px;
|
||||
font-style: normal; position: absolute; visibility: visible; z-index: auto
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="EditorDialog.css" type="text/css"?>
|
||||
<!DOCTYPE dialog>
|
||||
<window xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
<table xmlns="http://www.w3.org/TR/REC-html40" cellspacing=20>
|
||||
<tr>
|
||||
<td>
|
||||
<table class="tableCenterAlign" cellspacing=0 cellpadding=3>
|
||||
<tr>
|
||||
<td>
|
||||
<p/>Height
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" size="4" length="4" maxlength="4" />pixels
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<p/>Width
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<input type="text" size="4" length="4" maxlength="4" />
|
||||
<select size="1" name="image.widthType">
|
||||
<optgroup label="pixels">
|
||||
<option label="pixels" value="pixels" />pixels
|
||||
<option label="% of window" value="% of window" />% of window
|
||||
</optgroup>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<p/>Alignment
|
||||
<select size="1" name="hrule.alignType">
|
||||
<optgroup label="alignment">
|
||||
<option label="left alignment" value="left alignment" />left alignment
|
||||
<option label="center alignment" value="center alignment" />center alignment
|
||||
<option label="right alignment" value="right alignment" />right alignment
|
||||
</optgroup>
|
||||
</select>
|
||||
|
||||
<p/>
|
||||
<xul:checkbox value="3DShading" /> 3-D shading
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table xmlns="http://www.w3.org/TR/REC-html40" > <tr> <td>
|
||||
<p/>
|
||||
<input type="button" class="genericbutton" id="extrahtmlbutton" value=" Extra HTMLÉ " disabled />
|
||||
<p/>
|
||||
<input type="button" id="helpbutton" value=" Help " disabled />
|
||||
<input type="button" id="cancelbutton" value=" Cancel " />
|
||||
<input type="button" id="applybutton" value=" Apply " disabled />
|
||||
<input type="button" id="okbutton" value=" OK " disabled />
|
||||
</td> </tr> </table>
|
||||
|
||||
</window>
|
||||
|
|
@ -0,0 +1,240 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<?xml-stylesheet href="EditorDialog.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE dialog>
|
||||
|
||||
<window xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
|
||||
|
||||
<table xmlns="http://www.w3.org/TR/REC-html40" > <tr> <td width=500>
|
||||
|
||||
<fieldset><legend> Image Location and Name </legend>
|
||||
|
||||
<input type="file" value=" Choose File... " size="50" length="50" maxlength="255" name="image.url" />
|
||||
|
||||
<p/>
|
||||
|
||||
<xul:checkbox value="Leave Image at Original Location" disabled /> Leave Image at Original Location
|
||||
|
||||
<xul:checkbox value="Page Background" disabled /> Page Background
|
||||
|
||||
<input type="button" class=genericbutton value=" Edit Image " disabled />
|
||||
|
||||
<p/>Alternative Text
|
||||
|
||||
<input type="text" size="30" length="30" maxlength="255" name="image.alttext" />
|
||||
|
||||
</fieldset>
|
||||
|
||||
|
||||
|
||||
<table cellspacing=0 cellpadding=0 width="100%">
|
||||
|
||||
<tr>
|
||||
|
||||
<td width="55%" valign=top>
|
||||
|
||||
<fieldset><legend> Dimensions </legend>
|
||||
|
||||
<p />
|
||||
|
||||
<xul:radio name="image.dimensionType" value="Original Size" checked />Original Size
|
||||
|
||||
<br />
|
||||
|
||||
<xul:radio name="image.dimensionType" value="Custom Size" />Custom Size
|
||||
|
||||
|
||||
|
||||
<table cellspacing=0 cellpadding=2 width="100%" valign=top>
|
||||
|
||||
<tr>
|
||||
|
||||
<td width=8></td>
|
||||
|
||||
<td width=40 valign=middle align=right> Height </td>
|
||||
|
||||
<td valign=middle>
|
||||
|
||||
<input type="text" size="4" length="4" maxlength="4" name="image.height" />
|
||||
|
||||
<select size="1" name="image.heightType">
|
||||
|
||||
<optgroup label="pixels">
|
||||
|
||||
<option label="pixels" value="pixels" />pixels
|
||||
|
||||
<option label="% of window" value="% of window" />% of window
|
||||
|
||||
</optgroup>
|
||||
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td/>
|
||||
|
||||
<td valign=middle align=right>Width </td>
|
||||
|
||||
<td>
|
||||
|
||||
<input type="text" size="4" length="4" maxlength="4" name="image.width" />
|
||||
|
||||
<select size="1" name="image.widthType">
|
||||
|
||||
<optgroup label="pixels">
|
||||
|
||||
<option label="pixels" value="pixels" />pixels
|
||||
|
||||
<option label="% of window" value="% of window" />% of window
|
||||
|
||||
</optgroup>
|
||||
|
||||
</select>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
||||
<td/>
|
||||
|
||||
<td/>
|
||||
|
||||
<td>
|
||||
|
||||
<xul:checkbox value="Constrain" disabled /> Constrain
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
<td width="45%">
|
||||
|
||||
<select size="1" name="image.alignType">
|
||||
|
||||
<optgroup label="alignment">
|
||||
|
||||
<option label="top alignment" value="top alignment" />top alignment
|
||||
|
||||
<option label="center alignment" value="center alignment" />center alignment
|
||||
|
||||
<option label="bottom alignment" value="bottom alignment" />bottom alignment
|
||||
|
||||
<option label="text wrap around left-aligned image" value="around left alignment" />around left alignment
|
||||
|
||||
<option label="text wrap around right-aligned image" value="around right alignment" />around right alignment
|
||||
|
||||
</optgroup>
|
||||
|
||||
</select>
|
||||
|
||||
<p/>
|
||||
|
||||
|
||||
|
||||
<fieldset><legend> Space Around Image </legend>
|
||||
|
||||
<table cellspacing=0 cellpadding=2 width="100%">
|
||||
|
||||
<tr valign=middle>
|
||||
|
||||
<td align=right> Left and Right </td>
|
||||
|
||||
<td>
|
||||
|
||||
<input type="text" size="4" length="4" maxlength="4" name="image.leftRightSpacing" />
|
||||
|
||||
</td>
|
||||
|
||||
<td> pixels </td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr valign=middle>
|
||||
|
||||
<td> Top and Bottom </td>
|
||||
|
||||
<td>
|
||||
|
||||
<input type="text" size="4" length="4" maxlength="4" name="image.topBottomSpacing" />
|
||||
|
||||
</td>
|
||||
|
||||
<td> pixels </td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr valign=middle>
|
||||
|
||||
<td align=right> Solid Border </td>
|
||||
|
||||
<td>
|
||||
|
||||
<input type="text" size="4" length="4" maxlength="4" name="image.borderWidth" />
|
||||
|
||||
</td>
|
||||
|
||||
<td> pixels </td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<div align=right>
|
||||
|
||||
<input type="button" class=genericbutton value=" Extra HTML... " style="margin:8px" disabled />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<input type="button" id="helpbutton" value=" Help " disabled />
|
||||
|
||||
<input type="submit" id="cancelbutton" value=" Cancel " />
|
||||
|
||||
<input type="button" id="applybutton" value=" Apply " disabled />
|
||||
|
||||
<input type="submit" id="okbutton" value=" OK " />
|
||||
|
||||
</td> </tr> </table>
|
||||
|
||||
|
||||
|
||||
</window>
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="EditorDialog.css" type="text/css"?>
|
||||
<!DOCTYPE dialog>
|
||||
<window xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40">
|
||||
|
||||
<table xmlns="http://www.w3.org/TR/REC-html40" > <tr> <td>
|
||||
<p/>Linked Text
|
||||
<input type="text" style="width:400px; margin:10px"/>
|
||||
|
||||
<fieldset id=linkToSet><legend align="left"> Link to </legend>
|
||||
<p/> URL or file location
|
||||
<input type="file" id="linkURL" value=" Choose FileÉ " size="40" maxlength="255" cols="40" />
|
||||
<input type="button" id="clearbutton" value=" Clear " disabled />
|
||||
</fieldset>
|
||||
|
||||
<fieldset id=targetSet><legend> Targets (optional) </legend>
|
||||
|
||||
<table cellspacing=0 cellpadding=0 width="100%" valign=top >
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<fieldset id=targetLocation border-width=0><legend> Show Targets in: </legend>
|
||||
<p/>
|
||||
<xul:radio checked="true" name="linkTargettype" value="Current Page" />Current Page
|
||||
<br/>
|
||||
<xul:radio name="linkTargettype" value="Destination Page" />Destination Page
|
||||
<p/>
|
||||
</fieldset>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<fieldset id=targetList><legend> Link to a target on the page </legend>
|
||||
<p/>
|
||||
<select width="100%" size="5" name="linkTargetlist">
|
||||
<optgroup label="dummy">
|
||||
<option label="dummy1" value="Dummy 1">Item 1</option>
|
||||
<option label="dummy2" value="Dummy 2">Item 2</option>
|
||||
<option label="dummy3" value="Dummy 3">Item 3</option>
|
||||
<option label="dummy4" value="Dummy 4">Item 4</option>
|
||||
<option label="dummy5" value="Dummy 5">Item 5</option>
|
||||
<option label="dummy6" value="Dummy 6">Item 6</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<p/>
|
||||
<input type="button" id="extrahtmlbutton" value=" Extra HTMLÉ " disabled />
|
||||
<p/>
|
||||
<input type="button" id="helpbutton" value=" Help " disabled />
|
||||
<input type="button" id="cancelbutton" value=" Cancel " />
|
||||
<input type="button" id="applybutton" value=" Apply " disabled />
|
||||
<input type="button" id="okbutton" value=" OK " disabled />
|
||||
</td> </tr> </table>
|
||||
</window>
|
||||
|
Загрузка…
Ссылка в новой задаче