1999-05-28 02:21:48 +04:00
|
|
|
<?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):
|
|
|
|
-->
|
|
|
|
|
1999-05-28 02:21:48 +04:00
|
|
|
<?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"?>
|
|
|
|
|
1999-08-10 18:18:16 +04:00
|
|
|
<!DOCTYPE window SYSTEM "chrome://editor/locale/EditorAppShell.dtd">
|
1999-05-28 02:21:48 +04:00
|
|
|
|
|
|
|
<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">
|
1999-05-28 02:21:48 +04:00
|
|
|
|
|
|
|
<html:script language="JavaScript" src="chrome://editor/content/EditorCommands.js">
|
|
|
|
</html:script>
|
|
|
|
|
1999-07-09 00:05:35 +04:00
|
|
|
<keyset id="defaultKeySet">
|
1999-08-11 00:55:14 +04:00
|
|
|
<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')" />
|
1999-07-09 00:05:35 +04:00
|
|
|
|
1999-08-11 00:55:14 +04:00
|
|
|
<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 -->
|
1999-07-09 00:05:35 +04:00
|
|
|
</keyset>
|
|
|
|
|
1999-05-28 02:21:48 +04:00
|
|
|
<broadcaster id="args" value="chrome://editor/content/EditorInitPagePlain.html"/>
|
|
|
|
<broadcaster id="canPrint"/>
|
|
|
|
|
1999-06-07 23:21:33 +04:00
|
|
|
<!-- 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"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
|
1999-07-31 15:30:46 +04:00
|
|
|
<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-07-31 15:30:46 +04:00
|
|
|
|
1999-08-03 02:29:19 +04:00
|
|
|
<toolbox id="EditorToolbars">
|
1999-07-31 15:30:46 +04:00
|
|
|
<menubar>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menu value="&fileMenu.label;" accesskey="&filemenu.accesskey;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&newCmd.label;"
|
|
|
|
accesskey="&filenew.accesskey;" key="neweditorkb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorNew()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&openCmd.label;"
|
|
|
|
accesskey="&fileopen.accesskey;" key="openeditorkb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorOpen()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&saveCmd.label;"
|
|
|
|
accesskey="&filesave.accesskey;" key="savekb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSave()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&saveAsCmd.label;"
|
|
|
|
accesskey="&filesaveas.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSaveAs()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&printSetupCmd.label;"
|
|
|
|
accesskey="&fileprintsetup.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand=""/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&printPreviewCmd.label;"
|
|
|
|
accesskey="&fileprintpreview.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorPrintPreview()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&printCmd.label;"
|
|
|
|
accesskey="&fileprint.accesskey;" key="printkb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorPrint()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&closeCmd.label;"
|
|
|
|
accesskey="&fileclose.accesskey;" key="closekb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorClose()"/>
|
1999-09-01 09:50:36 +04:00
|
|
|
<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>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menu>
|
|
|
|
|
1999-08-11 00:55:14 +04:00
|
|
|
<menu value="&editMenu.label;" accesskey="&editmenu.accesskey;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&undoCmd.label;"
|
|
|
|
accesskey="&editundo.accesskey;" key="undokb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorUndo()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&redoCmd.label;"
|
|
|
|
accesskey="&editredo.accesskey;" key="redokb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorRedo()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&cutCmd.label;"
|
|
|
|
accesskey="&editcut.accesskey;" key="cutkb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorCut()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="©Cmd.label;"
|
|
|
|
accesskey="&editcopy.accesskey;" key="copykb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorCopy()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&pasteCmd.label;"
|
|
|
|
accesskey="&editpaste.accesskey;" key="pastekb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorPaste()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&pasteAsQuotationCmd.label;"
|
|
|
|
accesskey="&editpastequotation.accesskey;" key="pastequotationkb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorPasteAsQuotation()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&clearCmd.label;"
|
|
|
|
accesskey="&editclear.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand=""/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&selectAllCmd.label;"
|
|
|
|
accesskey="&editselectall.accesskey;" key="selectallkb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSelectAll()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&findCmd.label;"
|
|
|
|
accesskey="&editfind.accesskey;" key="findkb"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorFind()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<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>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menu>
|
|
|
|
|
1999-08-11 00:55:14 +04:00
|
|
|
<menu value="&viewMenu.label;" accesskey="&viewmenu.accesskey;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&hideCompositionToolbarCmd.label;"
|
|
|
|
accesskey="&viewcompositiontb.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand=""/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<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>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menu>
|
|
|
|
|
1999-08-11 00:55:14 +04:00
|
|
|
<menu value="&insertMenu.label;" accesskey="&insertmenu.accesskey;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&insertLinkCmd.label;"
|
|
|
|
accesskey="&insertlink.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorInsertLink()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&insertTargetCmd.label;"
|
|
|
|
accesskey="&inserttarget.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand=""/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&insertImageCmd.label;"
|
|
|
|
accesskey="&insertimage.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorInsertImage()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&insertHLineCmd.label;"
|
|
|
|
accesskey="&inserthline.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorInsertHLine()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&insertTableCmd.label;"
|
|
|
|
accesskey="&inserttable.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorInsertTable()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&insertHTMLSourceCmd.label;"
|
|
|
|
accesskey="&insertsource.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorInsertHTML()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&insertLineBreakCmd.label;"
|
|
|
|
accesskey="&insertlinebreak.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand=""/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<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>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menu>
|
1999-08-03 02:29:19 +04:00
|
|
|
|
1999-08-11 00:55:14 +04:00
|
|
|
<menu value="&formatMenu.label;" accesskey="&formatmenu.accesskey;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menu value="&fontfaceMenu.label;" accesskey="&formatfontmenu.accesskey;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&defaultVariableWidthCmd.label;"
|
|
|
|
accesskey="&fontvarwidth.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontFace('')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&defaultFixedWidthCmd.label;"
|
|
|
|
accesskey="&fontfixedwidth.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontFace('tt')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuseparator/>
|
|
|
|
<menuitem value="&arialHelveticaFont.label;"
|
|
|
|
accesskey="&fonthelvetica.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="×Font.label;"
|
|
|
|
accesskey="&fonttimes.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<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>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menu value="&fontsizeMenu.label;" accesskey="&formatsizemenu.accesskey;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&sizeMinusTwoCmd.label;"
|
|
|
|
accesskey="&sizeminus2.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontSize('-2')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&sizeMinusOneCmd.label;"
|
|
|
|
accesskey="&sizeminus1.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontSize('-1')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&sizeNormalCmd.label;"
|
|
|
|
accesskey="&sizenormal.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontSize('0')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&sizePlusOneCmd.label;"
|
|
|
|
accesskey="&size1.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontSize('+1')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&sizePlusTwoCmd.label;"
|
|
|
|
accesskey="&size2.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontSize('+2')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&sizePlusThreeCmd.label;"
|
|
|
|
accesskey="&size3.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontSize('+3')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<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>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menu value="&fontStyleMenu.label;" accesskey="&formatstylemenu.accesskey;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&styleBoldCmd.label;"
|
|
|
|
accesskey="&stylebold.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorApplyStyle('b')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&styleItalicCmd.label;"
|
|
|
|
accesskey="&styleitalic.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorApplyStyle('i')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&styleUnderlineCmd.label;"
|
|
|
|
accesskey="&styleunderline.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorApplyStyle('u')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&styleStrikeThruCmd.label;"
|
|
|
|
accesskey="&stylestrikethru.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorApplyStyle('strike')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&styleSuperscriptCmd.label;"
|
|
|
|
accesskey="&stylesuperscript.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorApplyStyle('sup')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&styleSubscriptCmd.label;"
|
|
|
|
accesskey="&stylesubscript.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorApplyStyle('sub')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&styleBlinkCmd.label;"
|
|
|
|
accesskey="&styleblink.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorApplyStyle('blink')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<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>
|
1999-08-11 00:55:14 +04:00
|
|
|
<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')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&colorGrayCmd.label;"
|
|
|
|
accesskey="&colorgray.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontColor('gray')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&colorSilverCmd.label;"
|
|
|
|
accesskey="&colorsilver.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontColor('silver')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&colorWhiteCmd.label;"
|
|
|
|
accesskey="&colorwhite.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontColor('white')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&colorRedCmd.label;"
|
|
|
|
accesskey="&colorred.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontColor('red')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&colorBlueCmd.label;"
|
|
|
|
accesskey="&colorblue.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontColor('blue')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&colorGreenCmd.label;"
|
|
|
|
accesskey="&colorgreen.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontColor('green')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&colorCyanCmd.label;"
|
|
|
|
accesskey="&colorcyan.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontColor('cyan')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&colorYellowCmd.label;"
|
|
|
|
accesskey="&coloryellow.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontColor('yellow')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&colorMagentaCmd.label;"
|
|
|
|
accesskey="&colormagenta.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetFontColor('magenta')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<menuitem value="&removeAllStylesCmd.label;"
|
|
|
|
accesskey="&formatremovestyles.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorRemoveStyle('all')"/>
|
1999-07-31 06:48:17 +04:00
|
|
|
<menuseparator />
|
1999-08-11 00:55:14 +04:00
|
|
|
<menu value="¶graphMenu.label;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="¶graphNormalCmd.label;"
|
|
|
|
accesskey="&headingnone.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('normal')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&headingOneCmd.label;"
|
|
|
|
accesskey="&heading1.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('h1')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&headingTwoCmd.label;"
|
|
|
|
accesskey="&heading2.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('h2')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&headingThreeCmd.label;"
|
|
|
|
accesskey="&heading3.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('h3')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&headingFourCmd.label;"
|
|
|
|
accesskey="&heading4.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('h4')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&headingFiveCmd.label;"
|
|
|
|
accesskey="&heading5.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('h5')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&headingSixCmd.label;"
|
|
|
|
accesskey="&heading6.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('h6')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="¶graphAddressCmd.label;"
|
|
|
|
accesskey="¶graphaddress.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('address')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="¶graphPreformatCmd.label;"
|
|
|
|
accesskey="¶graphpreformat.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('pre')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="¶graphListCmd.label;"
|
|
|
|
accesskey="¶graphlist.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('li')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="¶graphDfnTermCmd.label;"
|
|
|
|
accesskey="¶graphterm.accesskey;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorSetParagraphFormat('dt')"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="¶graphDfnDescCmd.label;"
|
|
|
|
accesskey="¶graphdesc.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>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menu>
|
1999-07-31 06:48:17 +04:00
|
|
|
<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()"/>
|
1999-07-31 06:48:17 +04:00
|
|
|
<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>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menu>
|
1999-07-31 06:48:17 +04:00
|
|
|
<menu value="&debugMenu.label;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&outputTextCmd.label;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorGetText()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&outputHTMLCmd.label;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorGetHTML()"/>
|
1999-07-31 06:48:17 +04:00
|
|
|
<menuseparator />
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&insertTextCmd.label;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorInsertText('All good things come to those who wait. ')"/>
|
1999-07-31 06:48:17 +04:00
|
|
|
<menuseparator />
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&testSelectionCmd.label;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorTestSelection()"/>
|
|
|
|
<menuitem value="&testDocumentCmd.label;" oncommand="EditorTestDocument()"/>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&runUnitTestsCmd.label;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand="EditorUnitTests()"/>
|
1999-07-31 11:26:19 +04:00
|
|
|
</menupopup>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menu>
|
1999-07-31 06:48:17 +04:00
|
|
|
<menu value="&helpMenu.label;">
|
1999-07-31 11:26:19 +04:00
|
|
|
<menupopup>
|
1999-08-11 00:55:14 +04:00
|
|
|
<menuitem value="&aboutCmd.label;"
|
1999-08-21 02:58:32 +04:00
|
|
|
oncommand=""/>
|
1999-07-31 11:26:19 +04:00
|
|
|
</menupopup>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menu>
|
1999-07-31 15:30:46 +04:00
|
|
|
<spring flex="100%"/>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menubar>
|
|
|
|
|
1999-08-03 02:29:19 +04:00
|
|
|
<toolbar id="EditToolbar">
|
1999-08-02 02:56:52 +04:00
|
|
|
<titledbutton id="ParagraphPopup" value="¶graphToolbarMenu.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"/>
|
1999-07-03 01:08:33 +04:00
|
|
|
<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')">
|
1999-07-09 00:05:35 +04:00
|
|
|
<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')"/>
|
1999-08-02 02:37:58 +04:00
|
|
|
<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%"/>
|
1999-05-28 02:21:48 +04:00
|
|
|
</toolbar>
|
|
|
|
</toolbox>
|
|
|
|
|
1999-07-03 01:08:33 +04:00
|
|
|
<html:iframe type="content-primary" id="content-frame" src="about:blank" flex="100%"/>
|
1999-05-28 02:21:48 +04:00
|
|
|
|
|
|
|
<!-- Ripped off from navigator.xul; this should be a XUL fragment! -->
|
1999-08-03 02:29:19 +04:00
|
|
|
<box align="horizontal" id="EditorStatusBar">
|
1999-07-09 00:05:35 +04:00
|
|
|
<titledbutton value="&tempNotification.label;" onclick="doTests()"/>
|
1999-08-03 02:29:19 +04:00
|
|
|
<box id="EditorProgressBox" align="vertical" flex="100%">
|
1999-05-28 02:21:48 +04:00
|
|
|
<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>
|
1999-05-28 02:21:48 +04:00
|
|
|
</box>
|
|
|
|
|
|
|
|
<!-- Popup Menus and Windows - Not displayed in primary chrome -->
|
|
|
|
<popup id="ParagraphMenu">
|
|
|
|
<menu>
|
1999-08-21 02:58:32 +04:00
|
|
|
<menuitem value="¶graphNormalCmd.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="¶graphAddressCmd.label;" oncommand="EditorSetParagraphFormat('address')"/>
|
|
|
|
<menuitem value="¶graphPreformatCmd.label;" oncommand="EditorSetParagraphFormat('pre')"/>
|
|
|
|
<menuitem value="¶graphListCmd.label;" oncommand="EditorSetParagraphFormat('li')"/>
|
|
|
|
<menuitem value="¶graphDfnTermCmd.label;" oncommand="EditorSetParagraphFormat('dt')"/>
|
|
|
|
<menuitem value="¶graphDfnDescCmd.label;" oncommand="EditorSetParagraphFormat('dd')"/>
|
1999-05-28 02:21:48 +04:00
|
|
|
</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')"/>
|
1999-07-31 06:48:17 +04:00
|
|
|
<menuseparator/>
|
1999-08-21 02:58:32 +04:00
|
|
|
<menuitem value="&arialHelveticaFont.label;" oncommand="EditorSetFontFace('Arial, Helvetica, sans-serif')"/>
|
|
|
|
<menuitem value="×Font.label;" oncommand="EditorSetFontFace('Times New Roman, Times, serif')"/>
|
|
|
|
<menuitem value="&courierFont.label;" oncommand="EditorSetFontFace('Courier New, Courier, mono')"/>
|
1999-05-28 02:21:48 +04:00
|
|
|
</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')"/>
|
1999-05-28 02:21:48 +04:00
|
|
|
</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')"/>
|
1999-05-28 02:21:48 +04:00
|
|
|
</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')"/>
|
1999-05-28 02:21:48 +04:00
|
|
|
</menu>
|
|
|
|
</popup>
|
|
|
|
|
1999-07-09 00:05:35 +04:00
|
|
|
<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%">
|
1999-08-11 00:55:14 +04:00
|
|
|
<html:button class="PopupButton" onclick="opener.EditorAlign('left'); window.close();">
|
1999-07-09 00:05:35 +04:00
|
|
|
<html:img align="middle" src="chrome://editor/skin/images/ED_Left.gif"/>
|
|
|
|
<html:span>&alignLeft.label;</html:span>
|
|
|
|
</html:button>
|
1999-08-11 00:55:14 +04:00
|
|
|
<html:button class="PopupButton" onclick="opener.EditorAlign('center'); window.close();">
|
1999-07-09 00:05:35 +04:00
|
|
|
<html:img align="middle" src="chrome://editor/skin/images/ED_Center.gif"/>
|
|
|
|
<html:span>&alignCenter.label;</html:span>
|
|
|
|
</html:button>
|
1999-08-11 00:55:14 +04:00
|
|
|
<html:button class="PopupButton" onclick="opener.EditorAlign('right'); window.close();">
|
1999-07-09 00:05:35 +04:00
|
|
|
<html:img align="middle" src="chrome://editor/skin/images/ED_Right.gif"/>
|
|
|
|
<html:span>&alignRight.label;</html:span>
|
|
|
|
</html:button>
|
1999-08-11 00:55:14 +04:00
|
|
|
<html:button class="PopupButton" onclick="opener.EditorAlign('justify'); window.close();">
|
1999-07-09 00:05:35 +04:00
|
|
|
<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>
|
1999-05-28 02:21:48 +04:00
|
|
|
</popup>
|
|
|
|
|
|
|
|
<popup id="FontFaceWindow">
|
|
|
|
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" width="40" height="40">
|
1999-07-09 00:05:35 +04:00
|
|
|
<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="×Font.label;" onclick="opener.EditorSetFontFace('Times New Roman, Times, serif'); window.close();"/>
|
|
|
|
<titledbutton value="&courierFont.label;" onclick="opener.EditorSetFontFace('Courier New, Courier, mono'); window.close();"/>
|
1999-05-28 02:21:48 +04:00
|
|
|
</window>
|
|
|
|
</popup>
|
|
|
|
|
|
|
|
</window>
|