interface.xml
Summary
This file describes the Mozile editor widget and toolbar widget in Mozilla's XBL and XUL languages.
Version: 0.7
Author: James A. Overton
<?xml version="1.0" encoding="UTF-8"?>
<!--
-->
<bindings id="document"
xmlns="http://www.mozilla.org/xbl"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="toolbar">
<content>
<!-- Children element has to go at the top, or else the page gets rearranged -->
<children/>
<!-- Mozile Toolbar -->
<xul:hbox id="mozileToolbar" collapsed="true"/>
<!-- Mozile Status Bar -->
<xul:hbox id="mozileStatusbar" collapsed="true">
<xul:label id="mozileStatusMessage" value="Done" flex="1"/>
<xul:progressmeter id="mozileProgressmeter" value="50" mode="determined" collapsed="true"/>
<xul:button id="mozileMoreButton" label="More" collapsed="true"/>
<!-- <xul:button id="mozilePastButton" label="Past" oncommand="mozile.executeCommand('Mozile-Debug',event)"/>
Stupid bug fix for FF 1.5.1 : -->
<xul:button id="mozilePastButton" label="Past" onmousedown="mozile.executeCommand('Mozile-Debug',event)"/>
</xul:hbox>
</content>
<implementation>
<constructor>
mozile._toolbar = document.getAnonymousElementByAttribute(this, "id", "mozileToolbar");
mozile._statusbar = document.getAnonymousElementByAttribute(this, "id", "mozileStatusbar");
</constructor>
</implementation>
<handlers>
<handler event="command">
try {
var command = event.originalTarget.getAttribute("oncommand");
if(!command || command=="") {
var id = event.originalTarget.getAttribute("id");
mozile.executeCommand(id, event);
}
eval(command);
} catch(e) { }
</handler>
<handler event="mousedown">
try {
var command = event.originalTarget.getAttribute("onmousedown");
if(command && command != "") {
eval(command);
}
} catch(e) { }
</handler>
<handler event="contextmenu">
if(event.originalTarget.getAttribute("class") == "mozileButton") {
event.stopPropagation();
event.preventDefault();
}
</handler>
</handlers>
</binding>
</bindings>
Documentation generated by
JSDoc on Thu Feb 16 20:20:37 2006