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