gecko-dev/editor/ui/dialogs/content/EdDictionary.xul

66 строки
2.1 KiB
Plaintext
Исходник Обычный вид История

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
<!DOCTYPE window
[
<!-- These entity declarations will go into a separate, locale file at some point -->
<!-- Window title -->
<!ENTITY windowTitle.label "Personal Dictionary">
<!ENTITY wordEditField.label "New word:">
<!ENTITY AddButton.label "Add">
<!ENTITY DictionaryList.label "Words in dictionary:">
<!ENTITY ReplaceButton.label "Replace">
<!ENTITY RemoveButton.label "Remove">
<!ENTITY CloseButton.label "Close">
]>
<xul:window class="dialog" title="&windowTitle.label;"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.w3.org/TR/REC-html40"
onload = "Startup()"
align="vertical">
<!-- Methods common to all editor dialogs -->
<script language="JavaScript" src="chrome://editor/content/EdDialogCommon.js">
</script>
<script language="JavaScript" src="chrome://editor/content/EdDictionary.js">
</script>
<xul:broadcaster id="args" value=""/>
<table>
<tr>
<td colspan="2">
&wordEditField.label;<br/>
</td>
</tr>
<tr>
<td>
<input type="text" class="SpellCheckWord" id="WordInput" size="10"/>
</td>
<td>
<xul:titledbutton class="SizeToParent" id="AddWord" onclick="AddWord()" value="&AddButton.label;"/>
</td>
</tr>
<tr>
<td colspan="2">
&DictionaryList.label;
</td>
</tr>
<tr>
<td>
<select class="SpellCheckList" id="DictionaryList" size="10">
</select>
</td>
<td>
<xul:titledbutton class="SizeToParent" id="ReplaceWord" onclick="ReplaceWord()" value="&ReplaceButton.label;"/>
<br/>
<xul:titledbutton class="SizeToParent" id="RemoveWord" onclick="RemoveWord()" value="&RemoveButton.label;"/>
<br/>
<!-- This simply closes the window -->
<xul:titledbutton class="CloseButton" id="Close" onclick="onCancel()" value="&CloseButton.label;"/>
</td>
</tr>
</table>
</xul:window>