gecko-dev/editor/ui/composer/content/TextEditorAppShell.xul

546 строки
28 KiB
Plaintext
Исходник Обычный вид История

<?xml version="1.0"?>
1999-08-25 18:40:33 +04:00
<!--
- The contents of this file are subject to the Netscape Public
- License Version 1.1 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of
- the License at http://www.mozilla.org/NPL/
-
- 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 Mozilla Communicator client code, released
- March 31, 1998.
-
- The Initial Developer of the Original Code is Netscape
- Communications Corporation. Portions created by Netscape are
- Copyright (C) 1998-1999 Netscape Communications Corporation. All
- Rights Reserved.
-
- Contributor(s):
-->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://editor/locale/EditorAppShell.dtd">
<window id="main-window" xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
1999-08-03 02:29:19 +04:00
onunload="EditorShutdown()" title="&textEditorWindow.title;" align="vertical"
width="640" height="480">
<html:script language="JavaScript" src="chrome://editor/content/EditorCommands.js">
</html:script>
<keyset id="defaultKeySet">
<key id="selectallkb" disabled="false" shift="false" command="true" alt="false" key="a" onkeypress="EditorSelectAll()" />
<key id="boldkb" disabled="false" shift="false" command="true" alt="false" key="b" onkeypress="EditorToggleStyle('bold')"/>
<key id="copykb" disabled="false" shift="false" command="true" alt="false" key="c" onkeypress="EditorCopy()" />
<key id="findkb" disabled="false" shift="false" command="true" alt="false" key="f" onkeypress="EditorFind()" />
<key id="findnextkb" disabled="false" shift="false" command="true" alt="false" key="g" onkeypress="EditorFindNext()" />
<key id="italickb" disabled="false" shift="false" command="true" alt="false" key="i" onkeypress="EditorToggleStyle('italic')"/>
<key id="checkspellingkb" disabled="false" shift="false" command="true" alt="false" key="k" onkeypress="CheckSpelling()" />
<key id="neweditorkb" disabled="false" shift="false" command="true" alt="false" key="n" onkeypress="EditorNew()" />
<key id="openeditorkb" disabled="false" shift="false" command="true" alt="false" key="o" onkeypress="EditorOpen()" />
<key id="printkb" disabled="false" shift="false" command="true" alt="false" key="p" onkeypress="EditorPrint()" />
<key id="quitkb" disabled="false" shift="false" command="true" alt="false" key="q" onkeypress="EditorExit()" />
<key id="savekb" disabled="false" shift="false" command="true" alt="false" key="s" onkeypress="EditorSave()"/>
<key id="underlinekb" disabled="false" shift="false" command="true" alt="false" key="u" onkeypress="EditorToggleStyle('underline')"/>
<key id="pastekb" disabled="false" shift="false" command="true" alt="false" key="v" onkeypress="EditorPaste()" />
<key id="closekb" disabled="false" shift="false" command="true" alt="false" key="w" onkeypress="EditorClose()" />
<key id="cutkb" disabled="false" shift="false" command="true" alt="false" key="x" onkeypress="EditorCut()" />
<key id="redokb" disabled="false" shift="false" command="true" alt="false" key="y" onkeypress="EditorRedo()" />
<key id="undokb" disabled="false" shift="false" command="true" alt="false" key="z" onkeypress="EditorUndo()" />
<key id="navigatorkb" disabled="false" shift="false" command="true" alt="false" key="1" onkeypress="Navigator()" />
<key id="messengerkb" disabled="false" shift="false" command="true" alt="false" key="2" onkeypress="Messenger()" />
<key id="composerkb" disabled="false" shift="false" command="true" alt="false" key="3" onkeypress="Composer()" />
<key id="calendarkb" disabled="false" shift="false" command="true" alt="false" key="4" onkeypress="Calendar()" />
<key id="indentkb" disabled="false" shift="false" command="true" alt="false" key="=" onkeypress="EditorIndent('indent')" />
<key id="outdentkb" disabled="false" shift="false" command="true" alt="false" key="-" onkeypress="EditorIndent('outdent')" />
<key id="inserthtmlkb" disabled="false" shift="false" command="true" alt="true" key="i" onkeypress="EditorInsertHTML()"/>
<key id="pastequotationkb" disabled="false" shift="false" command="true" alt="true" key="v" onkeypress="EditorPasteAsQuotation()" />
<key id="removestyleskb" disabled="false" shift="true" command="true" alt="false" key="k" onkeypress="RemoveStyles()" />
<key id="decreasefontsizekb" disabled="false" shift="true" command="true" alt="false" key="[" onkeypress="DecreaseFontSize()" />
<key id="increasefontsizekb" disabled="false" shift="true" command="true" alt="false" key="]" onkeypress="IncreaseFontSize()" />
<!-- how to handle return, enter, tab, function keys, arrow keys, others? saari working on solution -->
</keyset>
<broadcaster id="args" value="chrome://editor/content/EditorInitPagePlain.html"/>
<broadcaster id="canPrint"/>
<!-- Interim hack to transition from nsIXULWindowCallbacks/ShowWindowWithArgs -->
<broadcaster id="dialog.start" ready="false"/>
<observes element="dialog.start" attribute="ready" onchange="EditorStartup('text')"/>
1999-08-03 02:29:19 +04:00
<broadcaster id="Editor:Document:Dirty" dirty="false"/>
<broadcaster id="Editor:Style:IsBold" bold="false"/>
1999-08-03 02:29:19 +04:00
<broadcaster id="Editor:Style:IsItalic" italic="false"/>
<broadcaster id="Editor:Style:IsUnderline" underline="false"/>
<broadcaster id="Editor:Paragraph:Format" format=""/>
<broadcaster id="Editor:Font:Face" font=""/>
<broadcaster id="Editor:Font:Size" size=""/>
1999-08-03 02:29:19 +04:00
<toolbox id="EditorToolbars">
<menubar>
<menu value="&fileMenu.label;" accesskey="&filemenu.accesskey;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&newCmd.label;"
accesskey="&filenew.accesskey;" key="neweditorkb"
1999-08-21 02:58:32 +04:00
oncommand="EditorNew()"/>
<menuitem value="&openCmd.label;"
accesskey="&fileopen.accesskey;" key="openeditorkb"
1999-08-21 02:58:32 +04:00
oncommand="EditorOpen()"/>
<menuseparator />
<menuitem value="&saveCmd.label;"
accesskey="&filesave.accesskey;" key="savekb"
1999-08-21 02:58:32 +04:00
oncommand="EditorSave()"/>
<menuitem value="&saveAsCmd.label;"
accesskey="&filesaveas.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSaveAs()"/>
<menuseparator />
<menuitem value="&printSetupCmd.label;"
accesskey="&fileprintsetup.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand=""/>
<menuitem value="&printPreviewCmd.label;"
accesskey="&fileprintpreview.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorPrintPreview()"/>
<menuitem value="&printCmd.label;"
accesskey="&fileprint.accesskey;" key="printkb"
1999-08-21 02:58:32 +04:00
oncommand="EditorPrint()"/>
<menuseparator />
<menuitem value="&closeCmd.label;"
accesskey="&fileclose.accesskey;" key="closekb"
1999-08-21 02:58:32 +04:00
oncommand="EditorClose()"/>
<menuitem value="&exitCmd.label;"
accesskey="&fileexit.accesskey;" key="exitkb"
1999-08-21 02:58:32 +04:00
oncommand="EditorExit()"/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
<menu value="&editMenu.label;" accesskey="&editmenu.accesskey;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&undoCmd.label;"
accesskey="&editundo.accesskey;" key="undokb"
1999-08-21 02:58:32 +04:00
oncommand="EditorUndo()"/>
<menuitem value="&redoCmd.label;"
accesskey="&editredo.accesskey;" key="redokb"
1999-08-21 02:58:32 +04:00
oncommand="EditorRedo()"/>
<menuseparator />
<menuitem value="&cutCmd.label;"
accesskey="&editcut.accesskey;" key="cutkb"
1999-08-21 02:58:32 +04:00
oncommand="EditorCut()"/>
<menuitem value="&copyCmd.label;"
accesskey="&editcopy.accesskey;" key="copykb"
1999-08-21 02:58:32 +04:00
oncommand="EditorCopy()"/>
<menuitem value="&pasteCmd.label;"
accesskey="&editpaste.accesskey;" key="pastekb"
1999-08-21 02:58:32 +04:00
oncommand="EditorPaste()"/>
<menuitem value="&pasteAsQuotationCmd.label;"
accesskey="&editpastequotation.accesskey;" key="pastequotationkb"
1999-08-21 02:58:32 +04:00
oncommand="EditorPasteAsQuotation()"/>
<menuitem value="&clearCmd.label;"
accesskey="&editclear.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand=""/>
<menuseparator />
<menuitem value="&selectAllCmd.label;"
accesskey="&editselectall.accesskey;" key="selectallkb"
1999-08-21 02:58:32 +04:00
oncommand="EditorSelectAll()"/>
<menuseparator />
<menuitem value="&findCmd.label;"
accesskey="&editfind.accesskey;" key="findkb"
1999-08-21 02:58:32 +04:00
oncommand="EditorFind()"/>
<menuitem value="&findAgainCmd.label;"
accesskey="&editfindnext.accesskey;" key="findnextkb"
1999-08-21 02:58:32 +04:00
oncommand="EditorFindNext()"/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
<menu value="&viewMenu.label;" accesskey="&viewmenu.accesskey;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&hideCompositionToolbarCmd.label;"
accesskey="&viewcompositiontb.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand=""/>
<menuitem value="&hideFormattingToolbarCmd.label;"
accesskey="&viewformattingtb.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="" />
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
<menu value="&insertMenu.label;" accesskey="&insertmenu.accesskey;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&insertLinkCmd.label;"
accesskey="&insertlink.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorInsertLink()"/>
<menuitem value="&insertTargetCmd.label;"
accesskey="&inserttarget.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand=""/>
<menuitem value="&insertImageCmd.label;"
accesskey="&insertimage.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorInsertImage()"/>
<menuitem value="&insertHLineCmd.label;"
accesskey="&inserthline.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorInsertHLine()"/>
<menuitem value="&insertTableCmd.label;"
accesskey="&inserttable.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorInsertTable()"/>
<menuitem value="&insertHTMLSourceCmd.label;"
accesskey="&insertsource.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorInsertHTML()"/>
<menuseparator />
<menuitem value="&insertLineBreakCmd.label;"
accesskey="&insertlinebreak.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand=""/>
<menuitem value="&insertBreakBelowImagesCmd.label;"
accesskey="&insertbreak.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand=""/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
1999-08-03 02:29:19 +04:00
<menu value="&formatMenu.label;" accesskey="&formatmenu.accesskey;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menu value="&fontfaceMenu.label;" accesskey="&formatfontmenu.accesskey;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&defaultVariableWidthCmd.label;"
accesskey="&fontvarwidth.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontFace('')"/>
<menuitem value="&defaultFixedWidthCmd.label;"
accesskey="&fontfixedwidth.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontFace('tt')"/>
<menuseparator/>
<menuitem value="&arialHelveticaFont.label;"
accesskey="&fonthelvetica.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
<menuitem value="&timesFont.label;"
accesskey="&fonttimes.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontFace('Times New Roman, Times, serif')"/>
<menuitem value="&courierFont.label;"
accesskey="&fontcourier.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontFace('Courier New, Courier, mono')"/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
<menu value="&fontsizeMenu.label;" accesskey="&formatsizemenu.accesskey;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&sizeMinusTwoCmd.label;"
accesskey="&sizeminus2.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontSize('-2')"/>
<menuitem value="&sizeMinusOneCmd.label;"
accesskey="&sizeminus1.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontSize('-1')"/>
<menuitem value="&sizeNormalCmd.label;"
accesskey="&sizenormal.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontSize('0')"/>
<menuitem value="&sizePlusOneCmd.label;"
accesskey="&size1.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontSize('+1')"/>
<menuitem value="&sizePlusTwoCmd.label;"
accesskey="&size2.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontSize('+2')"/>
<menuitem value="&sizePlusThreeCmd.label;"
accesskey="&size3.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontSize('+3')"/>
<menuitem value="&sizePlusFourCmd.label;"
accesskey="&size4.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontSize('+4')"/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
<menu value="&fontStyleMenu.label;" accesskey="&formatstylemenu.accesskey;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&styleBoldCmd.label;"
accesskey="&stylebold.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorApplyStyle('b')"/>
<menuitem value="&styleItalicCmd.label;"
accesskey="&styleitalic.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorApplyStyle('i')"/>
<menuitem value="&styleUnderlineCmd.label;"
accesskey="&styleunderline.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorApplyStyle('u')"/>
<menuitem value="&styleStrikeThruCmd.label;"
accesskey="&stylestrikethru.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorApplyStyle('strike')"/>
<menuitem value="&styleSuperscriptCmd.label;"
accesskey="&stylesuperscript.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorApplyStyle('sup')"/>
<menuitem value="&styleSubscriptCmd.label;"
accesskey="&stylesubscript.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorApplyStyle('sub')"/>
<menuitem value="&styleBlinkCmd.label;"
accesskey="&styleblink.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorApplyStyle('blink')"/>
<menuitem value="&styleNonbreakingCmd.label;"
accesskey="&stylenonbreaking.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorApplyStyle('nobr')"/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
<menu value="&fontColorMenu.label;" accesskey="&formatcolormenu.accesskey;">
<menupopup>
<menuitem value="&colorBlackCmd.label;"
accesskey="&colorblack.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('black')"/>
<menuitem value="&colorGrayCmd.label;"
accesskey="&colorgray.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('gray')"/>
<menuitem value="&colorSilverCmd.label;"
accesskey="&colorsilver.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('silver')"/>
<menuitem value="&colorWhiteCmd.label;"
accesskey="&colorwhite.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('white')"/>
<menuitem value="&colorRedCmd.label;"
accesskey="&colorred.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('red')"/>
<menuitem value="&colorBlueCmd.label;"
accesskey="&colorblue.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('blue')"/>
<menuitem value="&colorGreenCmd.label;"
accesskey="&colorgreen.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('green')"/>
<menuitem value="&colorCyanCmd.label;"
accesskey="&colorcyan.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('cyan')"/>
<menuitem value="&colorYellowCmd.label;"
accesskey="&coloryellow.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('yellow')"/>
<menuitem value="&colorMagentaCmd.label;"
accesskey="&colormagenta.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetFontColor('magenta')"/>
</menupopup>
</menu>
<menuitem value="&removeAllStylesCmd.label;"
accesskey="&formatremovestyles.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorRemoveStyle('all')"/>
<menuseparator />
<menu value="&paragraphMenu.label;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&paragraphNormalCmd.label;"
accesskey="&headingnone.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('normal')"/>
<menuitem value="&headingOneCmd.label;"
accesskey="&heading1.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('h1')"/>
<menuitem value="&headingTwoCmd.label;"
accesskey="&heading2.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('h2')"/>
<menuitem value="&headingThreeCmd.label;"
accesskey="&heading3.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('h3')"/>
<menuitem value="&headingFourCmd.label;"
accesskey="&heading4.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('h4')"/>
<menuitem value="&headingFiveCmd.label;"
accesskey="&heading5.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('h5')"/>
<menuitem value="&headingSixCmd.label;"
accesskey="&heading6.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('h6')"/>
<menuitem value="&paragraphAddressCmd.label;"
accesskey="&paragraphaddress.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('address')"/>
<menuitem value="&paragraphPreformatCmd.label;"
accesskey="&paragraphpreformat.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('pre')"/>
<menuitem value="&paragraphListCmd.label;"
accesskey="&paragraphlist.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('li')"/>
<menuitem value="&paragraphDfnTermCmd.label;"
accesskey="&paragraphterm.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('dt')"/>
<menuitem value="&paragraphDfnDescCmd.label;"
accesskey="&paragraphdesc.accesskey;"
1999-08-21 02:58:32 +04:00
oncommand="EditorSetParagraphFormat('dd')"/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
1999-08-03 02:29:19 +04:00
</menupopup>
</menu>
<menu value="&toolsMenu.label;">
1999-07-31 11:26:19 +04:00
<menupopup>
1999-08-21 02:58:32 +04:00
<menuitem value="&newBrowserCmd.label;" oncommand="EditorNewBrowser()"/>
<menuitem value="&newPlaintextEditorCmd.label;" oncommand="EditorNewPlaintext()"/>
<menuseparator />
1999-08-21 02:58:32 +04:00
<menuitem value="&checkSpellingCmd.label;" oncommand="CheckSpelling()"/>
<menuitem value="&setFocusCmd.label;" oncommand="window.focus()"/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
<menu value="&debugMenu.label;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&outputTextCmd.label;"
1999-08-21 02:58:32 +04:00
oncommand="EditorGetText()"/>
<menuitem value="&outputHTMLCmd.label;"
1999-08-21 02:58:32 +04:00
oncommand="EditorGetHTML()"/>
<menuseparator />
<menuitem value="&insertTextCmd.label;"
1999-08-21 02:58:32 +04:00
oncommand="EditorInsertText('All good things come to those who wait. ')"/>
<menuseparator />
<menuitem value="&testSelectionCmd.label;"
1999-08-21 02:58:32 +04:00
oncommand="EditorTestSelection()"/>
<menuitem value="&testDocumentCmd.label;" oncommand="EditorTestDocument()"/>
<menuitem value="&runUnitTestsCmd.label;"
1999-08-21 02:58:32 +04:00
oncommand="EditorUnitTests()"/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
<menu value="&helpMenu.label;">
1999-07-31 11:26:19 +04:00
<menupopup>
<menuitem value="&aboutCmd.label;"
1999-08-21 02:58:32 +04:00
oncommand=""/>
1999-07-31 11:26:19 +04:00
</menupopup>
</menu>
<spring flex="100%"/>
</menubar>
1999-08-03 02:29:19 +04:00
<toolbar id="EditToolbar">
<titledbutton id="ParagraphPopup" value="&paragraphToolbarMenu.label;" class="popup" align="left" popup="ParagraphMenu" popupanchor="bottomleft"/>
<titledbutton id="FontFacePopup" value="&fontToolbarMenu.label;" class="popup" align="left" popup="FontFaceMenu" popupanchor="bottomleft"/>
<titledbutton id="FontSizePopup" value="&sizeToolbarMenu.label;" class="popup" align="left" popup="FontSizeMenu" popupanchor="bottomleft"/>
<titledbutton id="TextColorPopup" src="chrome://editor/skin/images/ED_TextColor.gif" class="popup" popup="TextColorMenu" popupanchor="bottomleft"/>
<titledbutton id="BackColorPopup" src="chrome://editor/skin/images/ED_BackColor.gif" class="popup" popup="BackColorMenu" popupanchor="bottomleft"/>
1999-08-03 02:29:19 +04:00
<titledbutton id="boldButton" value="&formatToolbar.boldChar;" onclick="EditorApplyStyle('b')">
<observes element="Editor:Style:IsBold" attribute="bold" onchange="onBoldChange()"/>
</titledbutton>
1999-08-03 02:29:19 +04:00
<titledbutton id="italicButton" value="&formatToolbar.italicChar;" onclick="EditorApplyStyle('i')"/>
<titledbutton id="underlineButton" value="&formatToolbar.underlineChar;" onclick="EditorApplyStyle('u')"/>
<titledbutton src="&bulletListIcon.url;" onclick="EditorInsertList('ul')"/>
<titledbutton src="&numberListIcon.url;" onclick="EditorInsertList('ol')"/>
<titledbutton src="&outdentIcon.url;" onclick="EditorIndent('outdent')"/>
<titledbutton src="&indentIcon.url;" onclick="EditorIndent('indent')"/>
<titledbutton src="&alignpopupIcon.url;" class="popup" popup="AlignmentWindow" popupanchor="bottomleft"/>
<titledbutton src="&linkIcon.url;" value="&linkToolbarCmd.label;" onclick="EditorInsertLink()"/>
<titledbutton src="&imageIcon.url;" value="&imageToolbarCmd.label;" onclick="EditorInsertImage()"/>
<titledbutton src="&spellingIcon.url;" value="&spellToolbarCmd.label;" onclick="CheckSpelling()"/>
1999-08-03 02:29:19 +04:00
<spring flex="100%"/>
</toolbar>
</toolbox>
<html:iframe type="content-primary" id="content-frame" src="about:blank" flex="100%"/>
<!-- Ripped off from navigator.xul; this should be a XUL fragment! -->
1999-08-03 02:29:19 +04:00
<box align="horizontal" id="EditorStatusBar">
<titledbutton value="&tempNotification.label;" onclick="doTests()"/>
1999-08-03 02:29:19 +04:00
<box id="EditorProgressBox" align="vertical" flex="100%">
<spring flex="100%"/>
<progressmeter mode="normal" value="0">
</progressmeter>
<spring flex="100%"/>
</box>
1999-08-03 02:29:19 +04:00
<titledbutton id="statusText" align="right" flex="100%" value="&tempDoneLoading.label;" style="font-family:sans-serif;font-size:2.5mm">
</titledbutton>
</box>
<!-- Popup Menus and Windows - Not displayed in primary chrome -->
<popup id="ParagraphMenu">
<menu>
1999-08-21 02:58:32 +04:00
<menuitem value="&paragraphNormalCmd.label;" oncommand="EditorSetParagraphFormat('normal')"/>
<menuitem value="&headingOneCmd.label;" oncommand="EditorSetParagraphFormat('h1')"/>
<menuitem value="&headingTwoCmd.label;" oncommand="EditorSetParagraphFormat('h2')"/>
<menuitem value="&headingThreeCmd.label;" oncommand="EditorSetParagraphFormat('h3')"/>
<menuitem value="&headingFourCmd.label;" oncommand="EditorSetParagraphFormat('h4')"/>
<menuitem value="&headingFiveCmd.label;" oncommand="EditorSetParagraphFormat('h5')"/>
<menuitem value="&headingSixCmd.label;" oncommand="EditorSetParagraphFormat('h6')"/>
<menuitem value="&paragraphAddressCmd.label;" oncommand="EditorSetParagraphFormat('address')"/>
<menuitem value="&paragraphPreformatCmd.label;" oncommand="EditorSetParagraphFormat('pre')"/>
<menuitem value="&paragraphListCmd.label;" oncommand="EditorSetParagraphFormat('li')"/>
<menuitem value="&paragraphDfnTermCmd.label;" oncommand="EditorSetParagraphFormat('dt')"/>
<menuitem value="&paragraphDfnDescCmd.label;" oncommand="EditorSetParagraphFormat('dd')"/>
</menu>
</popup>
<popup id="FontFaceMenu">
<menu>
1999-08-21 02:58:32 +04:00
<menuitem value="&defaultVariableWidthCmd.label;" oncommand="EditorSetFontFace('')"/>
<menuitem value="&defaultFixedWidthCmd.label;" oncommand="EditorSetFontFace('tt')"/>
<menuseparator/>
1999-08-21 02:58:32 +04:00
<menuitem value="&arialHelveticaFont.label;" oncommand="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
<menuitem value="&timesFont.label;" oncommand="EditorSetFontFace('Times New Roman, Times, serif')"/>
<menuitem value="&courierFont.label;" oncommand="EditorSetFontFace('Courier New, Courier, mono')"/>
</menu>
</popup>
<popup id="FontSizeMenu">
<menu>
1999-08-21 02:58:32 +04:00
<menuitem value="&sizeMinusTwoCmd.label;" oncommand="EditorSetFontSize('-2')"/>
<menuitem value="&sizeMinusOneCmd.label;" oncommand="EditorSetFontSize('-1')"/>
<menuitem value="&sizeNormalCmd.label;" oncommand="EditorSetFontSize('0')"/>
<menuitem value="&sizePlusOneCmd.label;" oncommand="EditorSetFontSize('+1')"/>
<menuitem value="&sizePlusTwoCmd.label;" oncommand="EditorSetFontSize('+2')"/>
<menuitem value="&sizePlusThreeCmd.label;" oncommand="EditorSetFontSize('+3')"/>
<menuitem value="&sizePlusFourCmd.label;" oncommand="EditorSetFontSize('+4')"/>
</menu>
</popup>
<popup id="BackColorMenu">
<menu>
1999-08-21 02:58:32 +04:00
<menuitem value="&colorBlackCmd.label;" oncommand="EditorSetBackgroundColor('black')"/>
<menuitem value="&colorGrayCmd.label;" oncommand="EditorSetBackgroundColor('gray')"/>
<menuitem value="&colorSilverCmd.label;" oncommand="EditorSetBackgroundColor('silver')"/>
<menuitem value="&colorWhiteCmd.label;" oncommand="EditorSetBackgroundColor('white')"/>
<menuitem value="&colorRedCmd.label;" oncommand="EditorSetBackgroundColor('red')"/>
<menuitem value="&colorBlueCmd.label;" oncommand="EditorSetBackgroundColor('blue')"/>
<menuitem value="&colorGreenCmd.label;" oncommand="EditorSetBackgroundColor('green')"/>
<menuitem value="&colorCyanCmd.label;" oncommand="EditorSetBackgroundColor('cyan')"/>
<menuitem value="&colorYellowCmd.label;" oncommand="EditorSetBackgroundColor('yellow')"/>
<menuitem value="&colorMagentaCmd.label;" oncommand="EditorSetBackgroundColor('magenta')"/>
</menu>
</popup>
<popup id="TextColorMenu">
1999-08-03 02:29:19 +04:00
<menu class="popup">
1999-08-21 02:58:32 +04:00
<menuitem value="&colorBlackCmd.label;" oncommand="EditorSetFontColor('black')"/>
<menuitem value="&colorGrayCmd.label;" oncommand="EditorSetFontColor('gray')"/>
<menuitem value="&colorSilverCmd.label;" oncommand="EditorSetFontColor('silver')"/>
<menuitem value="&colorWhiteCmd.label;" oncommand="EditorSetFontColor('white')"/>
<menuitem value="&colorRedCmd.label;" oncommand="EditorSetFontColor('red')"/>
<menuitem value="&colorBlueCmd.label;" oncommand="EditorSetFontColor('blue')"/>
<menuitem value="&colorGreenCmd.label;" oncommand="EditorSetFontColor('green')"/>
<menuitem value="&colorCyanCmd.label;" oncommand="EditorSetFontColor('cyan')"/>
<menuitem value="&colorYellowCmd.label;" oncommand="EditorSetFontColor('yellow')"/>
<menuitem value="&colorMagentaCmd.label;" oncommand="EditorSetFontColor('magenta')"/>
</menu>
</popup>
<popup id="AlignmentWindow" oncreate="OnCreateAlignmentPopup()">
<window class="popup" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="vertical" flex="100%"
width="70" height="110">
<html:div flex="100%">
<html:button class="PopupButton" onclick="opener.EditorAlign('left'); window.close();">
<html:img align="middle" src="chrome://editor/skin/images/ED_Left.gif"/>
<html:span>&alignLeft.label;</html:span>
</html:button>
<html:button class="PopupButton" onclick="opener.EditorAlign('center'); window.close();">
<html:img align="middle" src="chrome://editor/skin/images/ED_Center.gif"/>
<html:span>&alignCenter.label;</html:span>
</html:button>
<html:button class="PopupButton" onclick="opener.EditorAlign('right'); window.close();">
<html:img align="middle" src="chrome://editor/skin/images/ED_Right.gif"/>
<html:span>&alignRight.label;</html:span>
</html:button>
<html:button class="PopupButton" onclick="opener.EditorAlign('justify'); window.close();">
<html:img align="middle" src="chrome://editor/skin/images/ED_Justify.gif"/>
<html:span>&alignJustify.label;</html:span>
</html:button>
</html:div>
<!-- Trying to use autosizing and boxes
<titledbutton class="PopupButton" value="&alignLeft.label;" style="min-width: 40px" onclick="opener.EditorAlign('left'); window.close();"/>
<titledbutton class="PopupButton" value="&alignCenter.label;" style="min-width: 40px" onclick="opener.EditorAlign('center'); window.close();"/>
<titledbutton class="PopupButton" value="&alignRight.label;" style="min-width: 40px" onclick="opener.EditorAlign('right'); window.close();"/>
-->
</window>
</popup>
<popup id="FontFaceWindow">
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" width="40" height="40">
<titledbutton value="&defaultVariableWidthCmd.label;" onclick="opener.EditorSetFontFace(''); window.close();"/>
<titledbutton value="&defaultFixedWidthCmd.label;" onclick="opener.EditorSetFontFace('tt'); window.close();"/>
<titledbutton value="&arialHelveticaFont.label;" onclick="opener.EditorSetFontFace('Arial, Helvetica, sans-serif'); window.close();"/>
<titledbutton value="&timesFont.label;" onclick="opener.EditorSetFontFace('Times New Roman, Times, serif'); window.close();"/>
<titledbutton value="&courierFont.label;" onclick="opener.EditorSetFontFace('Courier New, Courier, mono'); window.close();"/>
</window>
</popup>
</window>