Bug 226955 Convert <window class="dialog"> to <dialog> p=gautheri@noos.fr r=me sr=jag

This commit is contained in:
neil%parkwaycc.co.uk 2006-09-14 06:06:24 +00:00
Родитель b1682eef30
Коммит e157d6524a
2 изменённых файлов: 12 добавлений и 14 удалений

Просмотреть файл

@ -28,7 +28,7 @@
<?xml-stylesheet href="chrome://navigator/skin/pageInfo.css" type="text/css"?>
<!DOCTYPE window [
<!DOCTYPE dialog [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
%brandDTD;
<!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd">
@ -37,14 +37,16 @@
%pageInfoDTD;
]>
<window id="main-window"
<dialog id="main-window"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
windowtype="Browser:page-info"
onload="onLoadPageInfo()"
align="stretch" class="dialog"
align="stretch"
screenX="10" screenY="10"
width="&pageInfoWindow.width;" height="&pageInfoWindow.height;"
persist="screenX screenY width height sizemode">
persist="screenX screenY width height sizemode"
buttons="help"
ondialoghelp="doHelpButton();">
<script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
<script type="application/x-javascript" src="chrome://communicator/content/utilityOverlay.js"/>
@ -52,12 +54,9 @@
<script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
<keyset>
<key id="closeWindow" key="&closeWindow;" modifiers="accel" oncommand="window.close();"/>
<key keycode="VK_ESCAPE" oncommand="window.close();"/>
<key id="copy" key="c" modifiers="accel" oncommand="doCopy(event);"/>
<key id="closeWindow" key="&closeWindow.accesskey;" modifiers="accel" oncommand="window.close();"/>
<key id="copy" key="&copy.accesskey;" modifiers="accel" oncommand="doCopy(event);"/>
</keyset>
<!-- keys are appended from the overlay -->
<keyset id="dialogKeys"/>
<stringbundle id="pageinfobundle" src="chrome://navigator/locale/pageInfo.properties"/>
@ -321,6 +320,6 @@
<box>
<progressmeter mode="undetermined" id="piProgress" flex="1"/>
<spacer id="piSpacer" flex="0"/>
<button label="&helpButton;" oncommand="doHelpButton();" />
<button dlgtype="help" class="dialog-button"/>
</box>
</window>
</dialog>

Просмотреть файл

@ -37,12 +37,11 @@
<!ENTITY title "Page Info">
<!ENTITY description "Information about the current page">
<!ENTITY helpButton "Help">
<!ENTITY pageInfoWindow.width "425">
<!ENTITY pageInfoWindow.height "470">
<!ENTITY unknown "Unknown">
<!ENTITY closeWindow "w">
<!ENTITY copy.accesskey "c">
<!ENTITY closeWindow.accesskey "w">
<!ENTITY generalTab "General">
<!ENTITY generalTitle "Title:">