mozdev.org

Mozile (xhtml editing in your browser)    

resources:
Overview

firefoxOverlay.xul

Summary

An XUL overlay for Firefox and the Mozile Extension.

Version: 0.7

Author: James A. Overton


<?xml version="1.0"?>

<!-- 
/* ***** 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 An XUL overlay for Firefox and the Mozile Extension.
 * @link http://mozile.mozdev.org 
 * @author James A. Overton <james@overton.ca>
 * @version 0.7
 */
-->

<?xml-stylesheet href="chrome://mozile/content/extension/extension.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://mozile/locale/mozile.dtd" >
<overlay id="mozile" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

	<!-- Main Mozile Scripts -->
	<script src="chrome://mozile/content/extension/extension.js" type="application/x-javascript"/>
	<script src="chrome://mozile/content/extension/loader.js" type="application/x-javascript"/>

	<!-- Addition to the Firefox toolbar palette -->
	<toolbarpalette id="BrowserToolbarPalette">
		<!-- Editing button -->
		<toolbarbutton id="mozileEditButton" class="toolbarbutton-1"
			label="&mozileEditButton.label;" tooltiptext="&mozileEditButton.tip;"
			style="list-style-image: url('chrome://mozile/content/images/Mozile-32.png');"
			oncommand="mozileExtension.activate(event)" type="menu-button">
			<menupopup>
				<menuitem id="mozileStartEditingButton" label="Start Editing" tooltiptext="Start editing this page with Mozile" oncommand="mozileExtension.startEditing()" collapsed="true"/>
				<menuitem id="mozileStopEditingButton" label="Stop Editing" tooltiptext="Stop editing this page with Mozile" oncommand="mozileExtension.stopEditing()"/>
				<menuitem id="mozileEnhanceEditingButton" label="Enhance Editing" tooltiptext="Use enhanced Mozile editing on this page" oncommand="mozileExtension.activate(event, true)"/>
				<menuseparator/>
				<menuitem label="Mozile Preferences" tooltiptext="Change Mozile's preference settings" oncommand="window.openDialog('chrome://mozile/content/extension/options.xul', 'Mozile Options', 'chrome')"/>
			</menupopup>
		</toolbarbutton>
	</toolbarpalette>

 	<!-- Addition to Firefox's File Menu -->
 	<menupopup id="menu_FilePopup">
		<menu id="mozileEditMenuitem" label="&mozileEditMenuitem.label;" accesskey="&mozileEditMenuitem.accesskey;" key="&mozileEditMenuitem.key;" insertbefore="menu_sendLink">
			<menupopup>
				<menuitem id="mozileStartEditingMenuitem" label="Start Editing" tooltiptext="Start editing this page with Mozile" oncommand="mozileExtension.startEditing()" collapsed="true"/>
				<menuitem id="mozileStopEditingMenuitem" label="Stop Editing" tooltiptext="Stop editing this page with Mozile" oncommand="mozileExtension.stopEditing()"/>
				<menuitem id="mozileEnhanceEditingMenuitem" label="Enhance Editing" tooltiptext="Use enhanced Mozile editing on this page" oncommand="mozileExtension.activate(event, true)"/>
				<menuseparator/>
				<menuitem label="Mozile Preferences" tooltiptext="Change Mozile's preference settings" oncommand="window.openDialog('chrome://mozile/content/extension/options.xul', 'Mozile Options', 'chrome')"/>
			</menupopup>
		</menu>
	</menupopup>

</overlay>



Documentation generated by JSDoc on Wed Nov 1 15:11:15 2006

The mozile project can be contacted through the mailing list or the member list.
Copyright © 2000-2019. All rights reserved. Terms of Use & Privacy Policy.