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"?>

<!--
/* ***** BEGIN LICENSE BLOCK *****
 * Licensed under Version: MPL 1.1/GPL 2.0/LGPL 2.1
 * Full Terms at http://mozile.mozdev.org/license2.html
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is James A. Overton's code (james@overton.ca).
 *
 * The Initial Developer of the Original Code is James A. Overton.
 * Portions created by the Initial Developer are Copyright (C) 2005-2006
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *	James A. Overton <james@overton.ca>
 *
 * ***** END LICENSE BLOCK ***** */

/** 
 * @fileoverview This file describes the Mozile editor widget and toolbar widget in Mozilla's XBL and XUL languages. 
 * @link http://mozile.mozdev.org 
 * @author James A. Overton <james@overton.ca>
 * @version 0.7
 */
-->

<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 &amp;&amp; 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