3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
4 - License, v. 2.0. If a copy of the MPL was not distributed with this
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
7 <?xml-stylesheet href=
"chrome://global/skin/" type=
"text/css"?>
9 <!DOCTYPE dialog SYSTEM
"chrome://global/locale/customizeCharset.dtd">
11 <dialog xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
14 ondialogaccept=
"return Save();"
15 persist=
"width height">
17 <script type=
"application/javascript" src=
"chrome://global/content/customizeCharset.js"/>
18 <script type=
"application/javascript">
20 var observerService = Components.classes[
"@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
21 observerService.notifyObservers(null,
"charsetmenu-selected",
"other");
28 <label value=
"&additional.label;" control=
"available_charsets"/>
29 <!-- Available Charsets Tree -->
30 <listbox id=
"available_charsets" flex=
"1" seltype=
"multiple"
31 onfocus =
"document.getElementById('active_charsets').clearSelection(); this.selectItem(this.currentItem || this.getItemAtIndex(0));"
32 onselect=
"update_buttons();"
33 ondblclick=
"AddAvailableCharset();"/>
35 <separator class=
"thin"/>
38 <button id=
"add_button" oncommand=
"AddAvailableCharset();"
39 label=
"&add.label;" icon=
"add" accesskey=
"&add.accessKey;"/>
43 <separator orient=
"vertical"/>
46 <label value=
"¤t.label;" control=
"active_charsets"/>
47 <listbox id=
"active_charsets" flex=
"1" seltype=
"multiple"
48 onfocus =
"document.getElementById('available_charsets').clearSelection(); this.selectItem(this.currentItem || this.getItemAtIndex(0));"
49 onselect=
"update_buttons();"
50 ondblclick=
"RemoveActiveCharset();"/>
52 <separator class=
"thin"/>
54 <button id=
"up_button" label=
"&moveUp.label;" icon=
"go-up"
55 accesskey=
"&moveUp.accessKey;" oncommand=
"MoveUp();"/>
56 <button id=
"down_button" label=
"&moveDown.label;" icon=
"go-down"
57 accesskey=
"&moveDown.accessKey;" oncommand=
"MoveDown();"/>
58 <button id=
"remove_button" oncommand=
"RemoveActiveCharset();" icon=
"remove"
59 label=
"&remove.label;" accesskey=
"&remove.accessKey;"/>