<?xml version="1.0"?> 
<?xml-stylesheet href="xul.css" type="text/css"?> 
<?xml-stylesheet href="navigator.css" type="text/css"?> 

<!DOCTYPE window> 

<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
			  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
			  onload="Startup()" title="Editor">

  <html:script>
  	var editorType = "html";
    var editorName = "EditorAppCoreHTML";
  </html:script>

  <html:script language="JavaScript" src="EditorCommands.js">
  </html:script>

  <broadcaster id="canPrint"/>
  
  <menubar>
    <menu name="File">
      <menuitem name=".New Window" onclick=""/>
      <menuitem name=".Change Icons" onclick=""/>
      <separator />
      <menuitem name=".Print Setup" onclick=""/>
      <menuitem name="Print Preview" onclick="EditorPrintPreview()"/>
      <menuitem name=".Print" onclick=""/>
      <separator />
      <menuitem name=".Close" onclick=""/>
      <menuitem name="Quit" onclick="EditorExit()"/>
    </menu>

    <menu name="Edit">
      <menuitem name="Undo" onclick="EditorUndo()"/>
      <menuitem name="Redo" onclick="EditorRedo()"/>
      <separator />
      <menuitem name="Cut" onclick="EditorCut()"/>
      <menuitem name="Copy" onclick="EditorCopy()"/>
      <menuitem name="Paste" onclick="EditorPaste()"/>
      <menuitem name=".Clear" onclick=""/>
      <separator />
      <menuitem name="Select All" onclick="EditorSelectAll()"/>
   </menu>

    <menu name="View">
      <menuitem name=".Hide Composition Toolbar" onclick=""/>
      <menuitem name=".Hide Format Toolbar" onclick="" />
    </menu>
 
    <menu name="Insert">
      <menuitem name="Link..." onclick="EditorInsertLink()"/>
      <menuitem name=".Target..." onclick=""/>
      <menuitem name="Image..." onclick="EditorInsertImage()"/>
      <menuitem name=".Horizontal Line" onclick=""/>
      <menuitem name=".Table" onclick=""/>
      <menuitem name=".HTML Tag..." onclick=""/>
      <separator />
      <menuitem name=".Line Break" onclick=""/>
      <menuitem name=".Break Below Image(s)" onclick=""/>
    </menu>

    <menu name="Format">
      <menuitem name=".Font" onclick=""/>
      <menuitem name=".Size" onclick=""/>
      <menuitem name=".Style" onclick=""/>
      <menuitem name=".Color..." onclick=""/>
      <menuitem name=".Remove All Style(s)" onclick=""/>
      <separator />
      <menuitem name=".Heading" onclick=""/>
    </menu>
    <menu name="Tools">
      <menuitem name=".Spell Check" onclick=""/>
    </menu>
    <menu name="Debug">
      <menuitem name="Output Text" onclick="EditorGetText()"/>
      <menuitem name="Output HTML" onclick="EditorGetHTML()"/>
      <separator />
      <menuitem name="Insert Text" onclick="EditorInsertText()"/>
    </menu>
    <menu name="Help">
      <menuitem name=".About" onclick=""/>
    </menu>

  </menubar>
  
  <box id="outer-box" align="vertical">

  <broadcaster id="Editor:Style:IsBold" bold="false"/>
  <broadcaster id="Editor:Style:IsItalic"/>
  <broadcaster id="Editor:Style:IsUnderline"/>

  <toolbox>
   <toolbar>
		<titledbutton align="left" class="popup" value="Normal"/>
		<titledbutton align="left" class="popup" value="Size"/>
		<titledbutton align="left" class="popup" value="Color"/>
	    <titledbutton src="resource:/res/toolbar/ED_Bold.gif" align="bottom"
	    	onclick="EditorApplyStyle('b')">
		    <observes element="Editor:Style:IsBold" attribute="bold" onchange="onBoldChange()"/>
	    </titledbutton>
	    <titledbutton src="resource:/res/toolbar/ED_Italic.gif" align="bottom" onclick="EditorApplyStyle('i')"/>
	    <titledbutton src="resource:/res/toolbar/ED_Underline.gif" align="bottom" onclick="EditorApplyStyle('u')"/>
	    <titledbutton src="resource:/res/toolbar/ED_ClearStyle.gif" align="bottom" onclick="EditorRemoveStyle('all')"/>
	    <titledbutton src="resource:/res/toolbar/ED_Bullets.gif" align="bottom" onclick="EditorInsertList('ul')"/>
	    <titledbutton src="resource:/res/toolbar/ED_Numbers.gif" align="bottom" onclick="EditorInsertList('ol')"/>
	    <titledbutton src="resource:/res/toolbar/ED_Indent.gif" align="bottom" onclick="EditorIndent('indent')"/>
	    <titledbutton src="resource:/res/toolbar/ED_Left.gif" align="bottom" class="popup" onclick="EditorAlign('left')"/>
	    <titledbutton src="resource:/res/toolbar/ED_Link.gif" align="bottom" class="popup" onclick="EditorInsertLink()"/>
    </toolbar>
  </toolbox>

  <html:iframe id="content-frame" html:name="content" html:src="EditorInitPage.html" flex="100%" />
  
  </box>
</window>


