source.xul

Summary

Asks the opening document's Mozile object for the string version of the document or the current editor, then displays that string in a text box.

Version: 0.7.0

Author: James A. Overton


<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="widgets.css" type="text/css"?>

<!--
/* ***** BEGIN LICENSE BLOCK *****
 * Licensed under Version: MPL 1.1/GPL 2.0/LGPL 2.1
 * Full Terms at http://mozile.mozdev.org/license.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 Playsophy code (www.playsophy.com).
 *
 * The Initial Developer of the Original Code is Playsophy
 * Portions created by the Initial Developer are Copyright (C) 2002-2003
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *	James A. Overton <james@overton.ca>
 *
 * ***** END LICENSE BLOCK ***** */


/** Mozile Source Dialog
 * @fileoverview Asks the opening document's Mozile object for the string version of the document or the current editor, then displays that string in a text box.
 * 
 * @link http://mozile.mozdev.org 
 * @author James A. Overton <james@overton.ca>
 * @version 0.7.0
 */

-->

<window id="mozile-settings-dialog"
        orient="vertical"
        title="Mozile Settings"
        windowtype="mozile:source"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        width="600"
        height="600"
        onload="document.getElementById('sourceText').value=opener.mozile.toXML();">
    
	<textbox flex="1" id="sourceText" multiline="true" readonly="true" value=""/>
	<hbox pack="end">
   <!--<button label="Save" oncommand="saveSourceText();"/>-->
		<menulist>
			<menupopup>
					<menuitem label="Document as XML" oncommand="document.getElementById('sourceText').value=opener.mozile.toXML();"/>
					<menuitem label="Document as HTML" oncommand="document.getElementById('sourceText').value=opener.mozile.toHTML();"/>
					<menuitem label="Editor as XML" oncommand="document.getElementById('sourceText').value=opener.mozile.editorToXML();"/>
					<menuitem label="Editor as HTML" oncommand="document.getElementById('sourceText').value=opener.mozile.editorToHTML();"/>
			</menupopup>
		</menulist>

    <button label="OK" oncommand="window.close();"/>
	</hbox>

</window>



Documentation generated by JSDoc on Wed Jun 29 22:15:33 2005