gecko-dev/browser/components/prefwindow/content/pref-charset.xul

83 строки
3.0 KiB
XML

<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil; -*- -->
<!--
The contents of this file are subject to the Netscape Public License
Version 1.1 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1999 Netscape Communications Corporation. All Rights
Reserved.
-->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://communicator/skin/sidebar/customize.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-charset.dtd" >
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&charset.customize.title.label;"
onload="Init();"
ondialogaccept="return Save();"
persist="width height"
headertitle="&charset.customize.left.header;"
width="500" height="394">
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-charset.js"/>
<script type="application/x-javascript">
<![CDATA[
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
observerService.notifyObservers(null, "charsetmenu-selected", "other");
]]>
</script>
<!-- The two-pane -->
<hbox flex="1">
<vbox flex="1">
<label value="&charset.customize.additional.label;"/>
<!-- Available Charsets Tree -->
<listbox id="available_charsets" flex="1" seltype="multiple"
onselect="SelectAvailableCharset();"
ondblclick="AddAvailableCharset();"/>
<separator class="thin"/>
<hbox align="center">
<button id="add_button" oncommand="AddAvailableCharset();"
label="&charset.customize.add.label;" disabled="true"/>
</hbox>
</vbox>
<separator orient="vertical"/>
<vbox flex="1">
<label value="&charset.customize.current.label;"/>
<listbox id="active_charsets" flex="1" seltype="multiple"
onselect="SelectActiveCharset();"
ondblclick="RemoveActiveCharset();"/>
<separator class="thin"/>
<hbox align="center">
<button id="remove_button" oncommand="RemoveActiveCharset();"
disabled="true"
label="&charset.customize.remove.label;"/>
</hbox>
</vbox>
<vbox>
<spacer flex="1"/>
<button id="up_button" class="up small" disabled="true"
oncommand="MoveUp();"/>
<button id="down_button" class="down small" disabled="true"
oncommand="MoveDown();"/>
<spacer flex="1"/>
</vbox>
</hbox>
</dialog>