1999-09-02 08:49:24 +04:00
|
|
|
<?xml version="1.0"?>
|
1999-09-08 18:04:41 +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) 1999 Netscape Communications Corporation. All
|
|
|
|
- Rights Reserved.
|
|
|
|
-
|
|
|
|
- Contributor(s):
|
|
|
|
-->
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-05-07 14:53:42 +04:00
|
|
|
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
|
|
|
|
1999-09-02 08:49:24 +04:00
|
|
|
<!DOCTYPE window SYSTEM "chrome://editor/locale/editorOverlay.dtd">
|
|
|
|
|
2000-03-22 06:20:53 +03:00
|
|
|
<?xml-stylesheet href="chrome://editor/skin/EditorToolbars.css" type="text/css"?>
|
|
|
|
|
1999-09-02 08:49:24 +04:00
|
|
|
<overlay id="editorOverlay"
|
|
|
|
xmlns:html="http://www.w3.org/TR/REC-html40"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
2000-04-14 07:19:31 +04:00
|
|
|
<script language="JavaScript" src="chrome://editor/content/editorOverlay.js"/>
|
2000-05-07 14:53:42 +04:00
|
|
|
<script language="JavaScript" src="chrome://global/content/globalOverlay.js"/>
|
|
|
|
<script language="JavaScript" src="chrome://editor/content/ComposerCommands.js"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
|
1999-11-25 01:28:58 +03:00
|
|
|
<keyset id="platformOverlayKeyset" />
|
|
|
|
|
1999-09-02 08:49:24 +04:00
|
|
|
<keyset id="defaultKeySet">
|
1999-11-24 02:24:57 +03:00
|
|
|
|
1999-10-14 04:13:27 +04:00
|
|
|
<!-- defined in globalOverlay -->
|
2000-02-16 04:49:50 +03:00
|
|
|
<key id="key_newNavigator"/>
|
|
|
|
<key id="key_newMessage"/>
|
1999-10-14 04:13:27 +04:00
|
|
|
<key id="key_newBlankPage"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
<key id="openeditorkb" xulkey="true" key="&fileopen.keybinding;" observes="cmd_open" />
|
|
|
|
<key id="openremoteeditorkb" xulkey="true" key="&fileopenremote.keybinding;" observes="cmd_openRemote" />
|
|
|
|
<key id="savekb" xulkey="true" key="&filesave.keybinding;" observes="cmd_save"/>
|
|
|
|
<key id="closekb" xulkey="true" key="&fileclose.keybinding;" observes="cmd_close" />
|
|
|
|
<key id="printkb" xulkey="true" key="&fileprint.keybinding;" observes="cmd_print" />
|
|
|
|
<key id="exitkb" xulkey="true" key="&fileexit.keybinding;" observes="cmd_quit" />
|
1999-12-03 18:56:22 +03:00
|
|
|
|
2000-02-16 04:49:50 +03:00
|
|
|
<key id="key_undo"/>
|
|
|
|
<key id="key_redo"/>
|
|
|
|
<key id="key_cut"/>
|
|
|
|
<key id="key_copy"/>
|
|
|
|
<key id="key_paste"/>
|
|
|
|
<key id="pastequotationkb" xulkey="true" shift="true" key="&editpaste.keybinding;" observes="cmd_pasteQuote" />
|
|
|
|
<key id="key_delete"/>
|
|
|
|
<key id="key_selectAll"/>
|
2000-05-02 07:24:11 +04:00
|
|
|
<key id="findkb" xulkey="true" key="&editfind.keybinding;" observes="cmd_find" />
|
|
|
|
<key id="findnextkb" xulkey="true" key="&editfindnext.keybinding;" observes="cmd_findNext" />
|
2000-05-02 01:49:52 +04:00
|
|
|
<key id="checkspellingkb" xulkey="true" key="&editcheckspelling.keybinding;" observes="cmd_spelling" />
|
2000-02-16 04:49:50 +03:00
|
|
|
<key id="key_preferences"/>
|
1999-12-03 18:56:22 +03:00
|
|
|
|
2000-05-02 07:24:11 +04:00
|
|
|
<key id="boldkb" xulkey="true" key="&stylebold.keybinding;" observes="cmd_bold"/>
|
|
|
|
<key id="italickb" xulkey="true" key="&styleitalic.keybinding;" observes="cmd_italic"/>
|
|
|
|
<key id="underlinekb" xulkey="true" key="&styleunderline.keybinding;" observes="cmd_underline"/>
|
1999-12-03 18:56:22 +03:00
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
<key id="increaseindentkb" xulkey="true" key="&formatindent.keybinding;" observes="cmd_indent" />
|
|
|
|
<key id="decreaseindentkb" xulkey="true" key="&formatoutdent.keybinding;" observes="cmd_outdent" />
|
1999-12-03 18:56:22 +03:00
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
<key id="removestyleskb" shift="true" xulkey="true" key="&formatremovestyles.keybinding;" observes="cmd_removeStyles" />
|
|
|
|
<key id="decreasefontsizekb" shift="true" xulkey="true" key="&decreaseFontSize.keybinding;" observes="cmd_decreaseFont" />
|
|
|
|
<key id="increasefontsizekb" shift="true" xulkey="true" key="&increaseFontSize.keybinding;" observes="cmd_increaseFont" />
|
1999-09-02 08:49:24 +04:00
|
|
|
|
|
|
|
</keyset>
|
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
<!-- commands updated when the editor gets created -->
|
|
|
|
<commandset id="composerMenuItems"
|
|
|
|
commandupdater="true"
|
|
|
|
events="create"
|
|
|
|
oncommandupdate="goUpdateComposerMenuItems(this)"
|
|
|
|
>
|
|
|
|
<command id="cmd_sendPage"/>
|
|
|
|
|
|
|
|
<command id="cmd_open" oncommand="goDoCommand('cmd_open')"/>
|
|
|
|
<command id="cmd_openRemote" value="&openremoteCmd.label;" oncommand="goDoCommand('cmd_openRemote')"/>
|
|
|
|
<command id="cmd_close" value="&closeCmd.label;" oncommand="goDoCommand('cmd_close')"/>
|
|
|
|
|
|
|
|
<command id="cmd_printSetup" value="&printSetupCmd.label;" oncommand="goDoCommand('cmd_printSetup')"/>
|
|
|
|
<command id="cmd_printPreview" value="&printPreviewCmd.label;" oncommand="goDoCommand('cmd_printPreview')"/>
|
|
|
|
<command id="cmd_print" oncommand="goDoCommand('cmd_print')"/>
|
|
|
|
|
2000-05-04 04:33:44 +04:00
|
|
|
<command id="cmd_quit" value="&exitCmd.label;" oncommand="goDoCommand('cmd_quit')"/>
|
2000-05-02 01:49:52 +04:00
|
|
|
|
|
|
|
<!-- format menu -->
|
2000-05-02 07:24:11 +04:00
|
|
|
<command id="cmd_listProperties" oncommand="goDoCommand('cmd_listProperties')"/>
|
|
|
|
<command id="cmd_pageProperties" oncommand="goDoCommand('cmd_pageProperties')"/>
|
|
|
|
<command id="cmd_colorProperties" oncommand="goDoCommand('cmd_colorProperties')"/>
|
|
|
|
|
|
|
|
<command id="cmd_link" oncommand="goDoCommand('cmd_link')"/>
|
|
|
|
<command id="cmd_anchor" oncommand="goDoCommand('cmd_anchor')"/>
|
|
|
|
<command id="cmd_image" oncommand="goDoCommand('cmd_image')"/>
|
|
|
|
<command id="cmd_hline" oncommand="goDoCommand('cmd_hline')"/>
|
|
|
|
<command id="cmd_table" oncommand="goDoCommand('cmd_table')"/>
|
|
|
|
<command id="cmd_insertChars" oncommand="goDoCommand('cmd_insertChars')" value="&insertCharsCmd.label;"/>
|
2000-05-12 10:54:52 +04:00
|
|
|
<command id="cmd_editTable"/>
|
2000-05-02 07:24:11 +04:00
|
|
|
<command id="cmd_insertHTML" oncommand="goDoCommand('cmd_insertHTML')" value="&HTMLSourceCmd.label;"/>
|
|
|
|
<command id="cmd_editHTML" oncommand="goDoCommand('cmd_editHTML')" value="&HTMLSourceCmd.label;"/>
|
|
|
|
<command id="cmd_insertBreak" oncommand="goDoCommand('cmd_insertBreak')" value="&insertLineBreakCmd.label;"/>
|
|
|
|
<command id="cmd_insertBreakAll" oncommand="goDoCommand('cmd_insertBreakAll')" value="&insertBreakBelowImagesCmd.label;"/>
|
2000-05-02 01:49:52 +04:00
|
|
|
</commandset>
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
<commandset id="composerSaveMenuItems"
|
|
|
|
commandupdater="true"
|
|
|
|
events="create, save"
|
|
|
|
oncommandupdate="goUpdateComposerMenuItems(this)"
|
|
|
|
>
|
|
|
|
<command id="cmd_save" value="&saveCmd.label;" oncommand="goDoCommand('cmd_save')"/>
|
|
|
|
<command id="cmd_saveAs" value="&saveAsCmd.label;" oncommand="goDoCommand('cmd_saveAs')"/>
|
2000-05-12 02:45:29 +04:00
|
|
|
<command id="cmd_saveAsCharset" value="&saveAsCharsetCmd.label;" oncommand="goDoCommand('cmd_saveAsCharset')"/>
|
2000-05-10 03:03:41 +04:00
|
|
|
<command id="cmd_revert" value="&fileRevert.label;" oncommand="goDoCommand('cmd_revert')"/>
|
2000-05-02 01:49:52 +04:00
|
|
|
|
|
|
|
<command id="cmd_preview" oncommand="goDoCommand('cmd_preview')"/>
|
|
|
|
</commandset>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- edit menu commands. These get updated by code in globalOverlay.js -->
|
|
|
|
<commandset id="composerEditMenuItems"
|
|
|
|
commandupdater="true"
|
|
|
|
events="create"
|
|
|
|
oncommandupdate="goUpdateComposerMenuItems(this)"
|
|
|
|
>
|
2000-05-12 17:09:41 +04:00
|
|
|
<command id="cmd_undo" value="&undoCmd.label;"/>
|
|
|
|
<command id="cmd_redo" value="&redoCmd.label;"/>
|
|
|
|
<command id="cmd_cut" value="&cutCmd.label;"/>
|
|
|
|
<command id="cmd_copy" value="©Cmd.label;"/>
|
|
|
|
<command id="cmd_paste" value="&pasteCmd.label;"/>
|
|
|
|
<command id="cmd_delete" value="&clearCmd.label;"/>
|
|
|
|
<command id="cmd_selectAll" value="&selectAllCmd.label;"/>
|
2000-05-02 01:49:52 +04:00
|
|
|
|
2000-05-12 03:49:30 +04:00
|
|
|
<command id="cmd_preferences" oncommand="goDoCommand('cmd_preferences')"/>
|
2000-05-02 01:49:52 +04:00
|
|
|
|
2000-05-02 07:24:11 +04:00
|
|
|
<command id="cmd_find" oncommand="goDoCommand('cmd_find')"/>
|
|
|
|
<command id="cmd_findNext" oncommand="goDoCommand('cmd_findNext')" value="&findAgainCmd.label;"/>
|
|
|
|
<command id="cmd_spelling" oncommand="goDoCommand('cmd_spelling')"/>
|
|
|
|
<command id="cmd_pasteQuote" oncommand="goDoCommand('cmd_pasteQuote')" value="&pasteAsQuotationCmd.label;"/>
|
2000-05-02 01:49:52 +04:00
|
|
|
|
|
|
|
</commandset>
|
|
|
|
|
|
|
|
<!-- style related commands that update on creation, and on selection change -->
|
|
|
|
<commandset id="composerStyleMenuItems"
|
|
|
|
commandupdater="true"
|
|
|
|
events="create, style"
|
|
|
|
oncommandupdate="goUpdateComposerMenuItems(this)"
|
|
|
|
>
|
|
|
|
<command id="cmd_bold" state="false" oncommand="goDoCommand('cmd_bold')"/>
|
|
|
|
<command id="cmd_italic" state="false" oncommand="goDoCommand('cmd_italic')"/>
|
|
|
|
<command id="cmd_underline" state="false" oncommand="goDoCommand('cmd_underline')"/>
|
|
|
|
|
|
|
|
<command id="cmd_strikethrough" state="false" oncommand="goDoCommand('cmd_strikethrough')"/>
|
|
|
|
<command id="cmd_superscript" state="false" oncommand="goDoCommand('cmd_superscript')"/>
|
|
|
|
<command id="cmd_subscript" state="false" oncommand="goDoCommand('cmd_subscript')"/>
|
|
|
|
<command id="cmd_nobreak" state="false" oncommand="goDoCommand('cmd_nobreak')"/>
|
|
|
|
|
|
|
|
<command id="cmd_em" state="false" oncommand="goDoCommand('cmd_em')"/>
|
|
|
|
<command id="cmd_strong" state="false" oncommand="goDoCommand('cmd_strong')"/>
|
|
|
|
<command id="cmd_cite" state="false" oncommand="goDoCommand('cmd_cite')"/>
|
|
|
|
<command id="cmd_abbr" state="false" oncommand="goDoCommand('cmd_abbr')"/>
|
|
|
|
<command id="cmd_acronym" state="false" oncommand="goDoCommand('cmd_acronym')"/>
|
|
|
|
<command id="cmd_code" state="false" oncommand="goDoCommand('cmd_code')"/>
|
|
|
|
<command id="cmd_samp" state="false" oncommand="goDoCommand('cmd_samp')"/>
|
|
|
|
<command id="cmd_var" state="false" oncommand="goDoCommand('cmd_var')"/>
|
|
|
|
|
|
|
|
<command id="cmd_ul" state="false" oncommand="goDoCommand('cmd_ul')"/>
|
|
|
|
<command id="cmd_ol" state="false" oncommand="goDoCommand('cmd_ol')"/>
|
|
|
|
|
|
|
|
<command id="cmd_indent" oncommand="goDoCommand('cmd_indent')"/>
|
|
|
|
<command id="cmd_outdent" oncommand="goDoCommand('cmd_outdent')"/>
|
|
|
|
|
|
|
|
<!-- the state attribute gets filled with the paragraph format before the command is exectued -->
|
|
|
|
<command id="cmd_paragraphState" state="" oncommand="goDoCommand('cmd_paragraphState')"/>
|
|
|
|
<command id="cmd_align" state="" oncommand="goDoCommand('cmd_align')"/>
|
|
|
|
|
2000-05-10 03:03:41 +04:00
|
|
|
<command id="cmd_advancedProperties" oncommand="goDoCommand('cmd_advancedProperties')"/>
|
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
<command id="cmd_increaseFont" oncommand="goDoCommand('cmd_increaseFont')"/>
|
|
|
|
<command id="cmd_decreaseFont" oncommand="goDoCommand('cmd_decreaseFont')"/>
|
2000-02-16 04:49:50 +03:00
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
<command id="cmd_removeStyles" oncommand="goDoCommand('cmd_removeStyles')"/>
|
|
|
|
</commandset>
|
|
|
|
|
2000-05-12 17:09:41 +04:00
|
|
|
<!-- commands updated when the table menu gets created -->
|
|
|
|
<commandset id="composerTableMenuItems" oncommandupdate="goUpdateTableMenuItems(this)">
|
|
|
|
<command id="cmd_SelectTable" oncommand="goDoCommand('cmd_SelectTable')"/>
|
|
|
|
<command id="cmd_SelectRow" oncommand="goDoCommand('cmd_SelectRow')"/>
|
|
|
|
<command id="cmd_SelectColumn" oncommand="goDoCommand('cmd_SelectColumn')"/>
|
|
|
|
<command id="cmd_SelectCell" oncommand="goDoCommand('cmd_SelectCell')"/>
|
|
|
|
<command id="cmd_SelectAllCells" oncommand="goDoCommand('cmd_SelectAllCells')"/>
|
|
|
|
<command id="cmd_InsertTable" oncommand="goDoCommand('cmd_InsertTable')"/>
|
|
|
|
<command id="cmd_InsertRowAbove" oncommand="goDoCommand('cmd_InsertRowAbove')"/>
|
|
|
|
<command id="cmd_InsertRowBelow" oncommand="goDoCommand('cmd_InsertRowBelow')"/>
|
|
|
|
<command id="cmd_InsertColumnBefore" oncommand="goDoCommand('cmd_InsertColumnBefore')"/>
|
|
|
|
<command id="cmd_InsertColumnAfter" oncommand="goDoCommand('cmd_InsertColumnAfter')"/>
|
|
|
|
<command id="cmd_InsertCellBefore" oncommand="goDoCommand('cmd_InsertCellBefore')"/>
|
|
|
|
<command id="cmd_InsertCellAfter" oncommand="goDoCommand('cmd_InsertCellAfter')"/>
|
|
|
|
<command id="cmd_DeleteTable" oncommand="goDoCommand('cmd_DeleteTable')"/>
|
|
|
|
<command id="cmd_DeleteRow" oncommand="goDoCommand('cmd_DeleteRow')"/>
|
|
|
|
<command id="cmd_DeleteColumn" oncommand="goDoCommand('cmd_DeleteColumn')"/>
|
|
|
|
<command id="cmd_DeleteCell" oncommand="goDoCommand('cmd_DeleteCell')"/>
|
|
|
|
<command id="cmd_DeleteCellContents" oncommand="goDoCommand('cmd_DeleteCellContents')"/>
|
|
|
|
<command id="cmd_NormalizeTable" oncommand="goDoCommand('cmd_NormalizeTable')"/>
|
|
|
|
<command id="cmd_tableJoinCells" oncommand="goDoCommand('cmd_tableJoinCells')"/>
|
|
|
|
<command id="cmd_tableSplitCell" oncommand="goDoCommand('cmd_tableSplitCell')"/>
|
|
|
|
<command id="cmd_editTable" oncommand="goDoCommand('cmd_editTable')"/>
|
|
|
|
</commandset>
|
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
|
|
|
|
<broadcasterset id="broadcasterset">
|
2000-05-05 03:39:14 +04:00
|
|
|
<!-- Broadcasters/commands with no other home -->
|
|
|
|
<!-- view menu -->
|
2000-05-06 03:17:38 +04:00
|
|
|
<command id="cmd_newNavigator"/>
|
|
|
|
<command id="cmd_newMessage"/>
|
|
|
|
<command id="cmd_newCard"/>
|
|
|
|
<command id="cmd_newEditor"/>
|
|
|
|
<command id="cmd_newEditorTemplate"/>
|
|
|
|
<command id="cmd_newEditorDraft"/>
|
|
|
|
|
2000-05-05 03:39:14 +04:00
|
|
|
<command id="cmd_viewCompToolbar" oncommand="goToggleToolbar('EditToolbar','cmd_viewCompToolbar');" checked="true"/>
|
|
|
|
<command id="cmd_viewFormatToolbar" oncommand="goToggleToolbar('FormatToolbar','cmd_viewFormatToolbar');" checked="true"/>
|
|
|
|
<command id="cmd_viewEditModeToolbar" oncommand="goToggleToolbar('EditModeToolbar','cmd_viewEditModeToolbar');" checked="true"/>
|
|
|
|
<command id="cmd_viewtaskbar" oncommand="goToggleToolbar('taskbar','cmd_viewtaskbar');" checked="true"/>
|
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
<!-- Obsolete; these will go away -->
|
|
|
|
<command id="Editor:Font:Face" face=""/>
|
|
|
|
<command id="Editor:Font:Size" fontsize=""/>
|
1999-10-14 04:13:27 +04:00
|
|
|
</broadcasterset>
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-03-15 17:37:12 +03:00
|
|
|
<!-- Editor menu items -->
|
|
|
|
<menu id="fileMenu" value="&fileMenu.label;" accesskey="&filemenu.accesskey;">
|
1999-09-02 08:49:24 +04:00
|
|
|
<menupopup>
|
2000-03-15 17:37:12 +03:00
|
|
|
<!-- Note: globalOverlay.xul uses menu_newEditor, but we want different menu item text
|
|
|
|
so we use our own id, value, and accesskey but connect to the same global key and broadcaster node
|
|
|
|
-->
|
|
|
|
<menuitem id="menu_newBlankPage" value="&newBlankPageCmd.label;" accesskey="&newBlankPage.accesskey;" key="key_newBlankPage" observes="cmd_newEditor"/>
|
|
|
|
<menu id="menu_New" value="&newMenu.label;" accesskey="&newMenu.accesskey;">
|
|
|
|
<menupopup id="menu_NewPopup">
|
2000-02-16 04:49:50 +03:00
|
|
|
<!-- From globalOverlay.xul -->
|
2000-05-03 09:17:43 +04:00
|
|
|
<!-- Probably won't implement these
|
2000-03-15 17:37:12 +03:00
|
|
|
<menuitem id="menu_newEditorTemplate" observes="cmd_newEditorTemplate"/>
|
|
|
|
<menuitem id="menu_newEditorDraft" observes="cmd_newEditorDraft"/>
|
|
|
|
<menuseparator/>
|
2000-05-03 09:17:43 +04:00
|
|
|
-->
|
2000-03-15 17:37:12 +03:00
|
|
|
<menuitem id="menu_newNavigator" observes="cmd_newNavigator"/>
|
|
|
|
<menuitem id="menu_newMessage" observes="cmd_newMessage"/>
|
|
|
|
<menuitem id="menu_newCard" observes="cmd_newCard"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem accesskey="&fileopenremote.accesskey;" key="openremoteeditorkb" observes="cmd_openRemote"/>
|
2000-05-03 09:17:43 +04:00
|
|
|
<menuitem accesskey="&fileopen.accesskey;" key="openeditorkb" observes="cmd_open" value="&openFileCmd.label;"/>
|
|
|
|
<menu accesskey="&filerecentmenu.accesskey;" value="&fileRecentMenu.label;" oncreate="InitRecentFilesMenu()">
|
|
|
|
<!-- Items appended at runtime -->
|
|
|
|
<menupopup id="menupopup_RecentFiles">
|
|
|
|
<menuitem value="(recent file menu)"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-05-10 03:03:41 +04:00
|
|
|
<menuitem accesskey="&filerevert.accesskey;" observes="cmd_revert"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
<menuseparator />
|
2000-05-10 03:03:41 +04:00
|
|
|
<menuitem accesskey="&fileclose.accesskey;" key="closekb" observes="cmd_close"/>
|
|
|
|
<menuitem accesskey="&filesave.accesskey;" key="savekb" observes="cmd_save"/>
|
|
|
|
<menuitem accesskey="&filesaveas.accesskey;" observes="cmd_saveAs"/>
|
2000-05-12 02:45:29 +04:00
|
|
|
<menuitem accesskey="&filesaveascharset.accesskey;" observes="cmd_saveAsCharset"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
<menuseparator />
|
2000-02-25 03:55:20 +03:00
|
|
|
<!-- FRAME, LINK should go here, but nav must put them in global files -->
|
|
|
|
<menuitem id="menu_sendPage" observes="cmd_sendPage"/>
|
2000-05-12 17:09:41 +04:00
|
|
|
<menuitem id="menu_preview" value="&previewCmd.label;" accesskey="&filepreview.accesskey;" observes="cmd_preview"/>
|
2000-02-10 08:14:52 +03:00
|
|
|
<menuseparator />
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem accesskey="&fileprintsetup.accesskey;" observes="cmd_printSetup" />
|
|
|
|
<menuitem accesskey="&fileprintpreview.accesskey;" observes="cmd_printPreview"/>
|
|
|
|
<menuitem accesskey="&fileprint.accesskey;" key="printkb" observes="cmd_print" value="&printCmd.label;"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
<menuseparator />
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem accesskey="&fileexit.accesskey;" key="exitkb" observes="cmd_quit"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menupopup>
|
2000-03-15 17:37:12 +03:00
|
|
|
</menu>
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-03-15 17:37:12 +03:00
|
|
|
<menu id="editMenu" value="&editMenu.label;" accesskey="&editmenu.accesskey;">
|
|
|
|
<menupopup id="edEditMenuPopup" oncreate="EditorInitEditMenu()">
|
2000-02-16 04:49:50 +03:00
|
|
|
<!-- from globalOverlay.xul -->
|
|
|
|
<menuitem id="menu_undo"/>
|
|
|
|
<menuitem id="menu_redo"/>
|
2000-02-15 12:46:28 +03:00
|
|
|
<menuseparator id="edEditMenuSep1" />
|
2000-02-16 04:49:50 +03:00
|
|
|
<menuitem id="menu_cut"/>
|
|
|
|
<menuitem id="menu_copy"/>
|
|
|
|
<menuitem id="menu_paste"/>
|
|
|
|
<menuitem id="menu_delete"/>
|
2000-02-15 12:46:28 +03:00
|
|
|
<menuseparator id="edEditMenuSep2" />
|
2000-02-16 04:49:50 +03:00
|
|
|
<menuitem id="menu_selectAll"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
<menuseparator class="hide-in-IM"/>
|
2000-05-02 07:24:11 +04:00
|
|
|
<menuitem id="menu_find" accesskey="&editfind.accesskey;" key="findkb" observes="cmd_find" value="&findCmd.label;"/>
|
2000-02-16 04:49:50 +03:00
|
|
|
<menuitem id="menu_findnext" accesskey="&editfindnext.accesskey;" key="findnextkb" observes="cmd_findNext"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
<menuseparator class="hide-in-IM" />
|
2000-05-02 07:24:11 +04:00
|
|
|
<menuitem id="menu_checkspelling" accesskey="&editcheckspelling.accesskey;" key="checkspellingkb" observes="cmd_spelling" value="&checkSpellingCmd.label;"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
<menuseparator class="hide-in-IM"/>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem class="hide-in-IM" id="menu_editHTML" accesskey="&HTMLsource.accesskey;" observes="cmd_editHTML"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
<menuseparator/>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem id="menu_preferences" observes="cmd_preferences"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menupopup>
|
2000-03-15 17:37:12 +03:00
|
|
|
</menu>
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-03-15 17:37:12 +03:00
|
|
|
<!-- view menu items -->
|
|
|
|
<menu id="viewToolbar" value="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;">
|
|
|
|
<menupopup>
|
2000-03-17 06:03:13 +03:00
|
|
|
|
|
|
|
<menuitem value="&compositionToolbarCmd.label;" accesskey="&compositiontb.accesskey;" observes="cmd_viewCompToolbar" />
|
|
|
|
<menuitem value="&formattingToolbarCmd.label;" accesskey="&formattingtb.accesskey;" observes="cmd_viewFormatToolbar" />
|
2000-05-10 03:03:41 +04:00
|
|
|
<menuitem value="&editmodeToolbarCmd.label;" accesskey="&editmodetb.accesskey;" observes="cmd_viewEditModeToolbar" />
|
2000-03-17 06:03:13 +03:00
|
|
|
<menuitem value="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" observes="cmd_viewtaskbar" />
|
2000-03-15 17:37:12 +03:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-03-31 08:18:29 +04:00
|
|
|
<menuitem id="viewSourceMenuitem" value="&viewPageSource.label;" accesskey="&viewpagesource.accesskey;" oncommand="EditorViewSource();"/>
|
|
|
|
<menuitem id="viewParagraphMarks" value="&viewParagraphMarks.label;" accesskey="&viewparagraphmarks.accesskey;" oncommand="EditorToggleParagraphMarks();" persist="checked"/>
|
2000-03-15 17:37:12 +03:00
|
|
|
|
|
|
|
<menu id="charsetMenu" value="&dcharMenu.label;" accesskey="&viewcharsetmenu.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&dcharIso1Cmd.label;" accesskey="&charsetLatin1.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-1');"/>
|
|
|
|
<menuitem value="&dcharIso15Cmd.label;" accesskey="&charsetLatin9.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-15');"/>
|
|
|
|
<menuitem value="&dcharIso2Cmd.label;" accesskey="&charsetLatin2.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-2');"/>
|
|
|
|
<menuitem value="&dcharIso3Cmd.label;" accesskey="&charsetLatin3.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-3');"/>
|
|
|
|
<menuitem value="&dcharIso4Cmd.label;" accesskey="&charsetLatin4.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-4');"/>
|
|
|
|
<menuitem value="&dcharIsoGreekCmd.label;" accesskey="&charsetGreek.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-7');"/>
|
|
|
|
<menuitem value="&dcharIso9Cmd.label;" accesskey="&charsetLatin5.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-9');"/>
|
|
|
|
<menuitem value="&dcharIso10Cmd.label;" accesskey="&charsetLatin6.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-10');"/>
|
|
|
|
<menuitem value="&dcharIso13Cmd.label;" accesskey="&charsetLatin7.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-13');"/>
|
|
|
|
<menuitem value="&dcharIso14Cmd.label;" accesskey="&charsetLatin8.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-14');"/>
|
1999-11-03 03:48:26 +03:00
|
|
|
</menupopup>
|
2000-03-15 17:37:12 +03:00
|
|
|
</menu>
|
|
|
|
<menu id="charsetMenu1" value="&dcharMenu1.label;" accesskey="&viewcharsetmenu1.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&dcharJapanCmd.label;" accesskey="&charsetJIS.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-2022-JP');"/>
|
|
|
|
<menuitem value="&dcharJapanShiftjsCmd.label;" accesskey="&charsetshiftJIS.accesskey;" oncommand="EditorSetDocumentCharacterSet('Shift_JIS');"/>
|
|
|
|
<menuitem value="&dcharJapanEucCmd.label;" accesskey="&charsetJapaneseEUC.accesskey;" oncommand="EditorSetDocumentCharacterSet('EUC-JP');"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&dcharTradChiBigCmd.label;" accesskey="&charsetChineseBig5.accesskey;" oncommand="EditorSetDocumentCharacterSet('Big5');"/>
|
|
|
|
<menuitem value="&dcharTriChiEucCmd.label;" accesskey="&charsetChineseEUC.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-euc-tw');"/>
|
|
|
|
<menuitem value="&dcharSimpChiGbCmd.label;" accesskey="&charsetChineseSimplified.accesskey;" oncommand="EditorSetDocumentCharacterSet('GB2312');"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&dcharKoreanCmd.label;" accesskey="&charsetKorean.accesskey;" oncommand="EditorSetDocumentCharacterSet('EUC-KR');"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&dcharUtf7Cmd.label;" accesskey="&charsetUTF7.accesskey;" oncommand="EditorSetDocumentCharacterSet('UTF-7');"/>
|
|
|
|
<menuitem value="&dcharUtf8Cmd.label;" accesskey="&charsetUTF8.accesskey;" oncommand="EditorSetDocumentCharacterSet('UTF-8');"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<menu id="charsetMenu2" value="&dcharMenu2.label;" accesskey="&viewcharsetmenu2.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&dcharRusCmd.label;" accesskey="&charsetRussian.accesskey;" oncommand="EditorSetDocumentCharacterSet('KOI8-R');"/>
|
|
|
|
<menuitem value="&dcharIsoCyrCmd.label;" accesskey="&charsetISOCyrillic.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-5');"/>
|
|
|
|
<menuitem value="&dcharWinCyrCmd.label;" accesskey="&charsetWinCyrillic.accesskey;" oncommand="EditorSetDocumentCharacterSet('windows-1251');"/>
|
|
|
|
<menuitem value="&dcharEcmaCyrCmd.label;" accesskey="&charsetECMACyrillic.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-IR-111');"/>
|
|
|
|
<menuitem value="&dcharDosCyrCmd.label;" accesskey="&charsetDOSCyrillic.accesskey;" oncommand="EditorSetDocumentCharacterSet('IBM866');"/>
|
|
|
|
<menuitem value="&dcharMacCyrCmd.label;" accesskey="&charsetMacCyrillic.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-mac-cyrillic');"/>
|
|
|
|
<menuitem value="&dcharUkrCmd.label;" accesskey="&charsetUkrainian.accesskey;" oncommand="EditorSetDocumentCharacterSet('KOI8-U');"/>
|
|
|
|
<menuitem value="&dcharMacUkrCmd.label;" accesskey="&charsetMacUkrainian.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-mac-ukrainian');"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<menu id="charsetMenu3" value="&dcharMenu3.label;" accesskey="&viewcharsetmenu3.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&dcharWinVietCmd.label;" accesskey="&charsetWinVietnamese.accesskey;" oncommand="EditorSetDocumentCharacterSet('windows-1258');"/>
|
|
|
|
<menuitem value="&dcharVietTcnCmd.label;" accesskey="&charsetVietnameseTCN.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-viet-tcvn5712');"/>
|
|
|
|
<menuitem value="&dcharVietViCmd.label;" accesskey="&charsetVietnameseVIS.accesskey;" oncommand="EditorSetDocumentCharacterSet('VISCII');"/>
|
|
|
|
<menuitem value="&dcharVieVpCmd.label;" accesskey="&charsetVietnameseVPS.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-viet-vps');"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&dcharThaiCmd.label;" accesskey="&charsetThai.accesskey;" oncommand="EditorSetDocumentCharacterSet('TIS-620');"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&dcharArmCmd.label;" accesskey="&charsetArmenian.accesskey;" oncommand="EditorSetDocumentCharacterSet('ARMSCII-8');"/>
|
2000-02-25 03:55:20 +03:00
|
|
|
|
2000-02-23 03:13:21 +03:00
|
|
|
<!--
|
2000-03-15 17:37:12 +03:00
|
|
|
<menuseparator />
|
|
|
|
|
|
|
|
<menuitem value="&dcharIso6Cmd.label;" accesskey="&charsetArabic.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-6');"/>
|
|
|
|
<menuitem value="&dcharCp1256Cmd.label;" accesskey="&charsetWinArabic.accesskey;" oncommand="EditorSetDocumentCharacterSet('windows-1256');"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&dcharIso8Cmd.label;" accesskey="&charsetHebrew.accesskey;" oncommand="EditorSetDocumentCharacterSet('ISO-8859-8');"/>
|
|
|
|
|
|
|
|
<menuitem value="&dcharCp1255Cmd.label;" accesskey="&charsetWinHebrew.accesskey;" oncommand="EditorSetDocumentCharacterSet('windows-1255');"/>
|
2000-02-23 03:13:21 +03:00
|
|
|
-->
|
2000-02-25 03:55:20 +03:00
|
|
|
|
2000-03-15 17:37:12 +03:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<menu id="charsetMenu4" value="&dcharMenu4.label;" accesskey="&viewcharsetmenu4.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&dcharMacRomCmd.label;" accesskey="&charsetMacRoman.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-mac-roman');"/>
|
|
|
|
<menuitem value="&dcharMacCenEuroCmd.label;" accesskey="&charsetMacCentralEurope.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-mac-ce');"/>
|
|
|
|
<menuitem value="&dcharMacTurCmd.label;" accesskey="&charsetMacTurkish.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-mac-turkish');"/>
|
|
|
|
<menuitem value="&dcharMacCroaCmd.label;" accesskey="&charsetMacCroatian.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-mac-croatian');"/>
|
|
|
|
<menuitem value="&dcharMacRomanianCmd.label;" accesskey="&charsetMacRomanian.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-mac-romanian');"/>
|
|
|
|
<menuitem value="&dcharMacIceCmd.label;" accesskey="&charsetMacIcelandic.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-mac-icelandic');"/>
|
|
|
|
<menuitem value="&dcharMacGreekCmd.label;" accesskey="&charsetMacGreek.accesskey;" oncommand="EditorSetDocumentCharacterSet('x-mac-greek');"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<menu id="charsetMenu5" value="&dcharMenu5.label;" accesskey="&viewcharsetmenu4.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&dcharWinLat1Cmd.label;" accesskey="&charsetWinLatin1.accesskey;" oncommand="EditorSetDocumentCharacterSet('windows-1252');"/>
|
|
|
|
<menuitem value="&dcharWinLat2Cmd.label;" accesskey="&charsetWinLatin2.accesskey;" oncommand="EditorSetDocumentCharacterSet('windows-1250');"/>
|
|
|
|
<menuitem value="&dcharWinLat5Cmd.label;" accesskey="&charsetWinLatin5.accesskey;" oncommand="EditorSetDocumentCharacterSet('windows-1254');"/>
|
|
|
|
<menuitem value="&dcharWinBalRimCmd.label;" accesskey="&charsetWinBaltic.accesskey;" oncommand="EditorSetDocumentCharacterSet('windows-1257');"/>
|
|
|
|
<menuitem value="&dcharWinGreekCmd.label;" accesskey="&charsetWinGreek.accesskey;" oncommand="EditorSetDocumentCharacterSet('windows-1253');"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-05-02 07:24:11 +04:00
|
|
|
<!-- Insert menu -->
|
2000-03-15 17:37:12 +03:00
|
|
|
<menu id="insertMenu" value="&insertMenu.label;" accesskey="&insertmenu.accesskey;">
|
1999-09-02 08:49:24 +04:00
|
|
|
<menupopup>
|
2000-05-02 07:24:11 +04:00
|
|
|
<menuitem accesskey="&insertlink.accesskey;" observes="cmd_link" value="&insertLinkCmd.label;" />
|
2000-05-04 18:02:03 +04:00
|
|
|
<menuitem accesskey="&insertanchor.accesskey;" observes="cmd_anchor" value="&insertAnchorCmd.label;"/>
|
2000-05-02 07:24:11 +04:00
|
|
|
<menuitem accesskey="&insertimage.accesskey;" observes="cmd_image" value="&insertImageCmd.label;"/>
|
|
|
|
<menuitem accesskey="&inserthline.accesskey;" observes="cmd_hline" value="&insertHLineCmd.label;"/>
|
|
|
|
<menuitem accesskey="&inserttable.accesskey;" observes="cmd_table" value="&insertTableCmd.label;"/>
|
|
|
|
<menuitem accesskey="&HTMLsource.accesskey;" observes="cmd_insertHTML" key="inserthtmlkb"/>
|
|
|
|
<menuitem accesskey="&insertchars.accesskey;" observes="cmd_insertChars" />
|
1999-09-02 08:49:24 +04:00
|
|
|
<menuseparator />
|
2000-05-02 07:24:11 +04:00
|
|
|
<menuitem accesskey="&insertlinebreak.accesskey;" observes="cmd_insertBreak"/>
|
|
|
|
<menuitem accesskey="&insertbreak.accesskey;" observes="cmd_insertBreakAll"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menupopup>
|
2000-03-15 17:37:12 +03:00
|
|
|
</menu>
|
1999-12-04 04:46:23 +03:00
|
|
|
|
2000-03-15 17:37:12 +03:00
|
|
|
<!-- Format Menu -->
|
2000-02-10 08:14:52 +03:00
|
|
|
<menupopup id="formatMenuPopup" oncreate="EditorInitFormatMenu()">
|
1999-09-02 08:49:24 +04:00
|
|
|
<!-- Font face submenu -->
|
2000-04-28 09:59:16 +04:00
|
|
|
<menu id="fontFaceMenu" value="&fontfaceMenu.label;" accesskey="&formatfontmenu.accesskey;"
|
|
|
|
position="1">
|
|
|
|
<menupopup oncommand="EditorSetFontFace(event.target.data)">
|
|
|
|
<menuitem value="&fontVarWidth.label;" accesskey="&fontvarwidth.accesskey;" data=""/>
|
|
|
|
<menuitem value="&fontFixedWidth.label;" accesskey="&fontfixedwidth.accesskey;" data="tt"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem value="&fontHelveticaFont.label;" accesskey="&fonthelvetica.accesskey;" data="Arial, Helvetica, sans-serif"/>
|
|
|
|
<menuitem value="&fontTimes.label;" accesskey="&fonttimes.accesskey;" data="Times New Roman, Times, serif"/>
|
|
|
|
<menuitem value="&fontCourier.label;" accesskey="&fontcourier.accesskey;" data="Courier New, Courier, mono"/>
|
|
|
|
</menupopup>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menu>
|
|
|
|
|
|
|
|
<!-- Font size submenu -->
|
1999-12-04 04:46:23 +03:00
|
|
|
<menu id="fontSizeMenu" value="&fontsizeMenu.label;"
|
|
|
|
accesskey="&formatsizemenu.accesskey;"
|
|
|
|
position="2">
|
2000-04-28 09:59:16 +04:00
|
|
|
<menupopup>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem value="&decreaseFontSize.label;" accesskey="&decreasefontsize.accesskey;" observes="cmd_decreaseFont" key="decreasefontsizekb"/>
|
|
|
|
<menuitem value="&increaseFontSize.label;" accesskey="&increasefontsize.accesskey;" observes="cmd_increaseFont" key="increasefontsizekb"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
<menuseparator/>
|
|
|
|
<menuitem value="&size-xx-smallCmd.label;" accesskey="&size-xx-small.accesskey;" oncommand="EditorSetFontSize('xx-small')"/>
|
|
|
|
<menuitem value="&size-x-smallCmd.label;" accesskey="&size-x-small.accesskey;" oncommand="EditorSetFontSize('x-small')"/>
|
|
|
|
<menuitem value="&size-smallCmd.label;" accesskey="&size-small.accesskey;" oncommand="EditorSetFontSize('small')"/>
|
|
|
|
<menuitem value="&size-mediumCmd.label;" accesskey="&size-medium.accesskey;" oncommand="EditorSetFontSize('medium')"/>
|
|
|
|
<menuitem value="&size-largeCmd.label;" accesskey="&size-large.accesskey;" oncommand="EditorSetFontSize('large')"/>
|
|
|
|
<menuitem value="&size-x-largeCmd.label;" accesskey="&size-x-large.accesskey;" oncommand="EditorSetFontSize('x-large')"/>
|
|
|
|
<menuitem value="&size-xx-largeCmd.label;" accesskey="&size-xx-large.accesskey;" oncommand="EditorSetFontSize('xx-large')"/>
|
|
|
|
</menupopup>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menu>
|
|
|
|
|
|
|
|
<!-- Font style submenu -->
|
1999-12-04 04:46:23 +03:00
|
|
|
<menu id="fontStyleMenu" value="&fontStyleMenu.label;"
|
|
|
|
accesskey="&formatstylemenu.accesskey;"
|
|
|
|
position="3">
|
2000-05-02 01:49:52 +04:00
|
|
|
<menupopup oncreate="initFontStyleMenu(this)" oncommand="goDoCommand(event.target.observes)">
|
|
|
|
<menuitem value="&styleBoldCmd.label;" accesskey="&stylebold.accesskey;" observes="cmd_bold" key="boldkb"/>
|
|
|
|
<menuitem value="&styleItalicCmd.label;" accesskey="&styleitalic.accesskey;" observes="cmd_italic" key="italickb" />
|
|
|
|
<menuitem value="&styleUnderlineCmd.label;" accesskey="&styleunderline.accesskey;" observes="cmd_underline" key="underlinekb"/>
|
|
|
|
<menuitem value="&styleStrikeThruCmd.label;" accesskey="&stylestrikethru.accesskey;" observes="cmd_strikethrough"/>
|
|
|
|
<menuitem value="&styleSuperscriptCmd.label;" accesskey="&stylesuperscript.accesskey;" observes="cmd_superscript"/>
|
|
|
|
<menuitem value="&styleSubscriptCmd.label;" accesskey="&stylesubscript.accesskey;" observes="cmd_subscript"/>
|
|
|
|
<menuitem value="&styleNonbreakingCmd.label;" accesskey="&stylenonbreaking.accesskey;" observes="cmd_nobreak"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
<menuseparator/>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem value="&styleEm.label;" accesskey="&styleEm.accesskey;" observes="cmd_em"/>
|
|
|
|
<menuitem value="&styleStrong.label;" accesskey="&styleStrong.accesskey;" observes="cmd_strong"/>
|
|
|
|
<menuitem value="&styleCite.label;" accesskey="&styleCite.accesskey;" observes="cmd_cite"/>
|
|
|
|
<menuitem value="&styleAbbr.label;" accesskey="&styleAbbr.accesskey;" observes="cmd_abbr"/>
|
|
|
|
<menuitem value="&styleAcronym.label;" accesskey="&styleAcronym.accesskey;" observes="cmd_acronym"/>
|
|
|
|
<menuitem value="&styleCode.label;" accesskey="&styleCode.accesskey;" observes="cmd_code"/>
|
|
|
|
<menuitem value="&styleSamp.label;" accesskey="&styleSamp.accesskey;" observes="cmd_samp"/>
|
|
|
|
<menuitem value="&styleVar.label;" accesskey="&styleVar.accesskey;" observes="cmd_var"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
1999-12-04 04:46:23 +03:00
|
|
|
|
|
|
|
<!-- Font color submenu -->
|
|
|
|
<menu id="fontColorMenu" value="&fontColorMenu.label;"
|
|
|
|
accesskey="&formatcolormenu.accesskey;"
|
|
|
|
position="4">
|
2000-03-15 17:37:12 +03:00
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&colorBlackCmd.label;" accesskey="&colorblack.accesskey;" oncommand="EditorSetFontColor('black')"/>
|
|
|
|
<menuitem value="&colorGrayCmd.label;" accesskey="&colorgray.accesskey;" oncommand="EditorSetFontColor('gray')"/>
|
|
|
|
<menuitem value="&colorSilverCmd.label;" accesskey="&colorsilver.accesskey;" oncommand="EditorSetFontColor('silver')"/>
|
|
|
|
<menuitem value="&colorWhiteCmd.label;" accesskey="&colorwhite.accesskey;" oncommand="EditorSetFontColor('white')"/>
|
|
|
|
<menuitem value="&colorRedCmd.label;" accesskey="&colorred.accesskey;" oncommand="EditorSetFontColor('red')"/>
|
|
|
|
<menuitem value="&colorBlueCmd.label;" accesskey="&colorblue.accesskey;" oncommand="EditorSetFontColor('blue')"/>
|
|
|
|
<menuitem value="&colorGreenCmd.label;" accesskey="&colorgreen.accesskey;" oncommand="EditorSetFontColor('green')"/>
|
|
|
|
<menuitem value="&colorCyanCmd.label;" accesskey="&colorcyan.accesskey;" oncommand="EditorSetFontColor('cyan')"/>
|
|
|
|
<menuitem value="&colorYellowCmd.label;" accesskey="&coloryellow.accesskey;" oncommand="EditorSetFontColor('yellow')"/>
|
|
|
|
<menuitem value="&colorMagentaCmd.label;" accesskey="&colormagenta.accesskey;" oncommand="EditorSetFontColor('magenta')"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
|
|
|
|
<!-- Background color submenu. "value" is set in InitFormatMenu() -->
|
|
|
|
<menu id="backgroundColorMenu"
|
|
|
|
accesskey="&formatbkgdcolormenu.accesskey;"
|
|
|
|
position="5">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&colorBlackCmd.label;" accesskey="&colorblack.accesskey;" oncommand="EditorSetBackgroundColor('black')"/>
|
|
|
|
<menuitem value="&colorGrayCmd.label;" accesskey="&colorgray.accesskey;" oncommand="EditorSetBackgroundColor('gray')"/>
|
|
|
|
<menuitem value="&colorSilverCmd.label;" accesskey="&colorsilver.accesskey;" oncommand="EditorSetBackgroundColor('silver')"/>
|
|
|
|
<menuitem value="&colorWhiteCmd.label;" accesskey="&colorwhite.accesskey;" oncommand="EditorSetBackgroundColor('white')"/>
|
|
|
|
<menuitem value="&colorRedCmd.label;" accesskey="&colorred.accesskey;" oncommand="EditorSetBackgroundColor('red')"/>
|
|
|
|
<menuitem value="&colorBlueCmd.label;" accesskey="&colorblue.accesskey;" oncommand="EditorSetBackgroundColor('blue')"/>
|
|
|
|
<menuitem value="&colorGreenCmd.label;" accesskey="&colorgreen.accesskey;" oncommand="EditorSetBackgroundColor('green')"/>
|
|
|
|
<menuitem value="&colorCyanCmd.label;" accesskey="&colorcyan.accesskey;" oncommand="EditorSetBackgroundColor('cyan')"/>
|
|
|
|
<menuitem value="&colorYellowCmd.label;" accesskey="&coloryellow.accesskey;" oncommand="EditorSetBackgroundColor('yellow')"/>
|
|
|
|
<menuitem value="&colorMagentaCmd.label;" accesskey="&colormagenta.accesskey;" oncommand="EditorSetBackgroundColor('magenta')"/>
|
|
|
|
</menupopup>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menu>
|
2000-03-15 17:37:12 +03:00
|
|
|
|
|
|
|
<!-- Font color submenu
|
|
|
|
THIS WORKS ONLY IN Windows/Linux (use arbitrary XUL in submenu)
|
|
|
|
<menu id="fontColorMenu" value="&fontColorMenu.label;"
|
|
|
|
accesskey="&formatcolormenu.accesskey;"
|
|
|
|
position="4">
|
|
|
|
<menupopup>
|
|
|
|
<colorpicker id="menuTextCP" palettename="standard"
|
2000-04-14 07:19:31 +04:00
|
|
|
oncommand="EditorSelectTextColor('menuTextCP',null);"/>
|
2000-03-15 17:37:12 +03:00
|
|
|
<menuitem value="&colorPicker.default.label;"
|
|
|
|
accesskey="&colorPicker.default.accesskey;"
|
|
|
|
oncommand="EditorRemoveTextColor(null)"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
|
|
|
|
<menu id="backgroundColorMenu"
|
1999-12-04 04:46:23 +03:00
|
|
|
accesskey="&formatbkgdcolormenu.accesskey;"
|
|
|
|
position="5">
|
2000-03-15 17:37:12 +03:00
|
|
|
<menupopup>
|
|
|
|
<colorpicker id="menuBackCP" palettename="standard"
|
2000-04-14 07:19:31 +04:00
|
|
|
oncommand="EditorSelectBackColor('menuBackCP',null);"/>
|
2000-03-15 17:37:12 +03:00
|
|
|
<menuitem value="&colorPicker.default.label;"
|
|
|
|
accesskey="&colorPicker.default.accesskey;"
|
|
|
|
oncommand="EditorRemoveBackColor(null)"/>
|
|
|
|
</menupopup>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menu>
|
2000-03-15 17:37:12 +03:00
|
|
|
-->
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-05-15 07:05:56 +04:00
|
|
|
<menuseparator position="6"/>
|
1999-12-04 04:46:23 +03:00
|
|
|
<menuitem id="removeAllStylesMenuitem" value="&removeAllStylesCmd.label;"
|
2000-02-16 04:49:50 +03:00
|
|
|
accesskey="&formatremovestyles.accesskey;" key="removestyleskb"
|
2000-05-15 07:05:56 +04:00
|
|
|
oncommand="goDoCommand('cmd_removeStyles')" position="7"/>
|
2000-05-12 17:09:41 +04:00
|
|
|
<menuitem id="removeLinksMenuitem" value="&removeLinksCmd.label;"
|
|
|
|
accesskey="&formatremovelinks.accesskey;"
|
2000-05-15 07:05:56 +04:00
|
|
|
oncommand="EditorRemoveLinks()" position="8"/>
|
|
|
|
<menuseparator position="9"/>
|
1999-12-04 04:46:23 +03:00
|
|
|
|
1999-09-02 08:49:24 +04:00
|
|
|
<!-- Heading submenu -->
|
1999-12-04 04:46:23 +03:00
|
|
|
<menu id="headingMenu" value="&headingMenu.label;"
|
|
|
|
accesskey="&formatheadingmenu.accesskey;"
|
2000-05-15 07:05:56 +04:00
|
|
|
position="10">
|
2000-05-02 01:49:52 +04:00
|
|
|
<menupopup oncommand="EditorSetParagraphFormat('cmd_paragraphState', event.target.data)">
|
2000-04-28 09:59:16 +04:00
|
|
|
<menuitem value="&normalCmd.label;" accesskey="&normal.accesskey;" data=""/>
|
|
|
|
<menuitem value="&heading1Cmd.label;" accesskey="&heading1.accesskey;" data="H1"/>
|
|
|
|
<menuitem value="&heading2Cmd.label;" accesskey="&heading2.accesskey;" data="H2"/>
|
|
|
|
<menuitem value="&heading3Cmd.label;" accesskey="&heading3.accesskey;" data="H3"/>
|
|
|
|
<menuitem value="&heading4Cmd.label;" accesskey="&heading4.accesskey;" data="H4"/>
|
|
|
|
<menuitem value="&heading5Cmd.label;" accesskey="&heading5.accesskey;" data="H5"/>
|
|
|
|
<menuitem value="&heading6Cmd.label;" accesskey="&heading6.accesskey;" data="H6"/>
|
|
|
|
</menupopup>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menu>
|
|
|
|
|
1999-09-18 03:13:59 +04:00
|
|
|
<!-- Paragraph Style submenu -->
|
1999-12-04 04:46:23 +03:00
|
|
|
<menu id="paragraphMenu" value="¶graphMenu.label;"
|
|
|
|
accesskey="&formatparagraphmenu.accesskey;"
|
2000-05-15 07:05:56 +04:00
|
|
|
position="11">
|
2000-05-02 01:49:52 +04:00
|
|
|
<menupopup oncommand="EditorSetParagraphFormat('cmd_paragraphState', event.target.data)">
|
2000-04-28 09:59:16 +04:00
|
|
|
<menuitem value="&normalCmd.label;" accesskey="&normal.accesskey;" data=""/>
|
|
|
|
<menuitem value="¶graphParagraphCmd.label;" accesskey="¶graphparagraph.accesskey;" data="P"/>
|
|
|
|
<menuitem value="¶graphBlockquoteCmd.label;" accesskey="¶graphblockquote.accesskey;" data="BLOCKQUOTE"/>
|
|
|
|
<menuitem value="¶graphAddressCmd.label;" accesskey="¶graphaddress.accesskey;" data="ADDRESS"/>
|
|
|
|
<menuitem value="¶graphPreformatCmd.label;" accesskey="¶graphpreformat.accesskey;" data="PRE"/>
|
|
|
|
<menuitem value="¶graphDfnTermCmd.label;" accesskey="¶graphterm.accesskey;" data="DT"/>
|
|
|
|
<menuitem value="¶graphDfnDescCmd.label;" accesskey="¶graphdesc.accesskey;" data="DD"/>
|
|
|
|
</menupopup>
|
1999-09-02 08:49:24 +04:00
|
|
|
</menu>
|
|
|
|
|
1999-09-21 05:36:30 +04:00
|
|
|
<!-- List Style (opens dialog) -->
|
2000-05-15 07:05:56 +04:00
|
|
|
<menuitem id="listProps" value="&listProps.label;" accesskey="&formatlistmenu.accesskey;"
|
|
|
|
position="12" observes="cmd_listProperties"/>
|
|
|
|
<menu id="alignMenu" value="&alignMenu.label;" accesskey="&formatalignmenu.accesskey;"
|
|
|
|
position="13">
|
2000-03-15 17:37:12 +03:00
|
|
|
<!-- Align submenu -->
|
2000-05-02 01:49:52 +04:00
|
|
|
<menupopup oncommand="EditorAlign('cmd_align', event.target.getAttribute('data'))">
|
|
|
|
<menuitem value="&alignLeft.label;" accesskey="&alignleft.accesskey;" data="left"/>
|
|
|
|
<menuitem value="&alignCenter.label;" accesskey="&aligncenter.accesskey;" data="center"/>
|
|
|
|
<menuitem value="&alignRight.label;" accesskey="&alignright.accesskey;" data="right"/>
|
|
|
|
<menuitem value="&alignJustify.label;" accesskey="&alignjustify.accesskey;" data="justify"/>
|
2000-03-15 17:37:12 +03:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-05-15 07:05:56 +04:00
|
|
|
<menuseparator position="14"/>
|
1999-09-21 05:36:30 +04:00
|
|
|
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem id="increaseIndent" value="&increaseIndent.label;" accesskey="&increaseindent.accesskey;" key="increaseindentkb"
|
2000-05-15 07:05:56 +04:00
|
|
|
observes="cmd_indent" position="15"/>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem id="decreaseIndent" value="&decreaseIndent.label;" accesskey="&decreaseindent.accesskey;" key="decreaseindentkb"
|
2000-05-15 07:05:56 +04:00
|
|
|
observes="cmd_outdent" position="16"/>
|
|
|
|
<menuseparator position="17"/>
|
2000-02-10 08:14:52 +03:00
|
|
|
<!-- Merge Table Menu and separator in Messenger Composer here -->
|
|
|
|
<!-- Merge property items here -->
|
1999-12-04 04:46:23 +03:00
|
|
|
</menupopup>
|
|
|
|
|
2000-02-10 08:14:52 +03:00
|
|
|
<!-- Items to append at the bottom of the formatMenuPopup -->
|
2000-05-12 17:09:41 +04:00
|
|
|
<menuitem id="objectProperties" value="&properties.label;" accesskey="&properties.accesskey;" oncommand="EditorObjectProperties()"/>
|
1999-12-04 04:46:23 +03:00
|
|
|
<menuitem id="pageProperties" value="&pageProperties.label;"
|
|
|
|
accesskey="&pageproperties.accesskey;"
|
2000-05-02 01:49:52 +04:00
|
|
|
oncommand="goDoCommand('cmd_pageProperties')"/>
|
2000-02-10 08:14:52 +03:00
|
|
|
<menuitem id="colorsAndBackground" value="&colorsAndBackground.label;"
|
|
|
|
accesskey="&colorsandbackground.accesskey;"
|
2000-05-02 01:49:52 +04:00
|
|
|
oncommand="goDoCommand('cmd_colorProperties')"/>
|
1999-12-04 04:46:23 +03:00
|
|
|
|
2000-05-12 17:09:41 +04:00
|
|
|
<menu id="tableMenu" value="&tableMenu.label;" accesskey="&tablemenu.accesskey;">
|
|
|
|
<menupopup oncreate="EditorInitTableMenu()">
|
|
|
|
<menu id="tableInsertMenu" value="&tableInsertMenu.label;" accesskey="&tableinsertmenu.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&insertTableCmd.label;" accesskey="&tabletable.accesskey;" observes="cmd_InsertTable"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&tableRowAbove.label;" accesskey="&tablerow.accesskey;" observes="cmd_InsertRowAbove"/>
|
|
|
|
<menuitem value="&tableRowBelow.label;" accesskey="&tablerowbelow.accesskey;" observes="cmd_InsertRowBelow"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&tableColumnBefore.label;" accesskey="&tablecolumn.accesskey;" observes="cmd_InsertColumnBefore"/>
|
|
|
|
<menuitem value="&tableColumnAfter.label;" accesskey="&tablecolumnafter.accesskey;" observes="cmd_InsertColumnAfter"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&tableCellBefore.label;" accesskey="&tablecell.accesskey;" observes="cmd_InsertCellBefore"/>
|
|
|
|
<menuitem value="&tableCellAfter.label;" accesskey="&tablecellafter.accesskey;" observes="cmd_InsertCellAfter"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-05-15 07:05:56 +04:00
|
|
|
<menu id="tableSelectMenu" value="&tableSelectMenu.label;"
|
|
|
|
accesskey="&tableselectmenu.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem id="menu_SelectTable" value="&tableTable.label;" accesskey="&tabletable.accesskey;" observes="cmd_SelectTable" />
|
|
|
|
<menuitem id="menu_SelectRow" value="&tableRow.label;" accesskey="&tablerow.accesskey;" observes="cmd_SelectRow" />
|
|
|
|
<menuitem id="menu_SelectColumn" value="&tableColumn.label;" accesskey="&tablecolumn.accesskey;" observes="cmd_SelectColumn" />
|
|
|
|
<menuitem id="menu_SelectCell" value="&tableCell.label;" accesskey="&tablecell.accesskey;" observes="cmd_SelectCell" />
|
|
|
|
<menuitem id="menu_SelectAllCells" value="&tableAllCells.label;" accesskey="&tableallcells.accesskey;" observes="cmd_SelectAllCells" />
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-05-12 17:09:41 +04:00
|
|
|
<menu id="tableDeleteMenu" value="&tableDeleteMenu.label;" accesskey="&tabledeletemenu.accesskey;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&tableTable.label;" accesskey="&tabletable.accesskey;" observes="cmd_DeleteTable"/>
|
|
|
|
<menuitem value="&tableRow.label;" accesskey="&tablerow.accesskey;" observes="cmd_DeleteRow"/>
|
|
|
|
<menuitem value="&tableColumn.label;" accesskey="&tablecolumn.accesskey;" observes="cmd_DeleteColumn"/>
|
|
|
|
<menuitem id="menu_DeleteCell" value="&tableCell.label;" accesskey="&tablecell.accesskey;" observes="cmd_DeleteCell"/>
|
|
|
|
<menuitem id="menu_DeleteCellContents" value="&tableCellContents.label;" accesskey="&tablecellcontents.accesskey;" observes="cmd_DeleteCellContents"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem id="menu_NormalizeTable" value="&tableFix.label;" accesskey="&tablefix.accesskey;" observes="cmd_NormalizeTable"/>
|
|
|
|
<!-- menu value is set in InitTableMenu -->
|
|
|
|
<menuitem id="menu_tableJoinCells" accesskey="&tablejoincells.accesskey;" observes="cmd_tableJoinCells"/>
|
|
|
|
<menuitem id="menu_tableSlitCell" value="&tableSplitCell.label;" accesskey="&tablesplitcell.accesskey;" observes="cmd_tableSplitCell"/>
|
|
|
|
<!-- this is shared with Format Menu -->
|
|
|
|
<menuitem id="menu_tableProperties" value="&tableProperties.label;" accesskey="&properties.accesskey;" observes="cmd_editTable"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
1999-12-03 18:56:22 +03:00
|
|
|
|
2000-05-10 03:03:41 +04:00
|
|
|
<popup id="TextColorPopup" popupanchor="bottomleft" tooltip="aTooltip" ignorekeys="true">
|
2000-05-02 07:24:11 +04:00
|
|
|
<text class="ColorPickerLabel" id="TextColorCaption" value="&textColorCaption.label;" flex="1"/>
|
|
|
|
<!-- TODO: Add "Last color picked" button and text -->
|
|
|
|
<box valign="middle" autostretch="never">
|
|
|
|
<text class="color-button"/>
|
|
|
|
<text class="label" value="&lastPickedColor.label;"/>
|
|
|
|
</box>
|
|
|
|
<colorpicker id="TextColorPicker" palettename="standard" onclick="EditorSelectTextColor('TextColorPicker','TextColorPopupButton');"/>
|
|
|
|
<box valign="middle" autostretch="never">
|
|
|
|
<text class="label" value="&colorLabel.label;"/>
|
|
|
|
<textfield id="TextColorInput" flex="1" style="width: 1em"/>
|
|
|
|
<button class="dialog" value="&ok.label;" oncommand="SetManualTextColor()"/>
|
|
|
|
</box>
|
|
|
|
<button class="dialog" value="&colorPicker.default.label;" oncommand="EditorRemoveTextColor('TextColorPopupButton');"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</popup>
|
1999-12-04 04:46:23 +03:00
|
|
|
|
2000-05-10 03:03:41 +04:00
|
|
|
<popup id="BackColorPopup" popupanchor="bottomleft" oncreate="InitBackColorPopup()" ignorekeys="true">
|
2000-04-15 06:03:52 +04:00
|
|
|
<!-- Text is filled in at runtime according to what background element will be set -->
|
2000-05-02 07:24:11 +04:00
|
|
|
<text class="ColorPickerLabel" id="BackColorCaption" value="Background Color" flex="1"/>
|
|
|
|
<!-- TODO: Add "Last color picked" button and text -->
|
|
|
|
<box valign="middle" autostretch="never">
|
|
|
|
<text class="color-button"/>
|
|
|
|
<text class="label" value="&lastPickedColor.label;"/>
|
|
|
|
</box>
|
|
|
|
<colorpicker id="BackColorPicker" palettename="standard" onclick="EditorSelectBackColor('BackColorPicker','BackColorPopupButton');"/>
|
|
|
|
<box valign="middle" autostretch="never">
|
|
|
|
<text class="label" value="&colorLabel.label;"/>
|
|
|
|
<textfield id="BackColorInput" flex="1" style="width: 1em"/>
|
|
|
|
<button class="dialog" value="Ok" oncommand="SetManualBackColor()"/>
|
|
|
|
</box>
|
|
|
|
<button class="dialog" value="&colorPicker.default.label;" oncommand="EditorRemoveBackColor('BackColorPopupButton');"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</popup>
|
|
|
|
|
|
|
|
<menupopup id="AlignmentPopup">
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem oncommand="EditorAlign('cmd_align', 'left')">
|
2000-04-28 09:59:16 +04:00
|
|
|
<button class="borderless" id="text-align-left" align="left" value="&alignLeft.label;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</menuitem>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem oncommand="EditorAlign('cmd_align', 'center')">
|
2000-04-28 09:59:16 +04:00
|
|
|
<button class="borderless" id="text-align-center" align="left" value="&alignCenter.label;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</menuitem>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem oncommand="EditorAlign('cmd_align', 'right')">
|
2000-04-28 09:59:16 +04:00
|
|
|
<button class="borderless" id="text-align-right" align="left" value="&alignRight.label;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</menuitem>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem oncommand="EditorAlign('cmd_align', 'justify')">
|
2000-04-28 09:59:16 +04:00
|
|
|
<button class="borderless" id="text-align-justify" align="left" value="&alignJustify.label;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</menuitem>
|
|
|
|
</menupopup>
|
|
|
|
|
|
|
|
<!-- InsertPopup is used by messengercompose.xul -->
|
|
|
|
<menupopup id="InsertPopup">
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem oncommand="goDoCommand('cmd_link')">
|
2000-04-28 09:59:16 +04:00
|
|
|
<button class="borderless" id="linkButton-dark" darkcolor="true" align="left" value="&linkToolbarCmd.label;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</menuitem>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem oncommand="goDoCommand('cmd_anchor')">
|
2000-04-28 09:59:16 +04:00
|
|
|
<button class="borderless" id="namedAnchorButton-dark" align="left" value="&anchorToolbarCmd.label;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</menuitem>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem oncommand="goDoCommand('cmd_image')">
|
2000-04-28 09:59:16 +04:00
|
|
|
<button class="borderless" id="imageButton-dark" align="left" value="&imageToolbarCmd.label;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</menuitem>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem oncommand="goDoCommand('cmd_hline')">
|
2000-04-28 09:59:16 +04:00
|
|
|
<button class="borderless" id="hlineButton-dark" align="left" value="&hruleToolbarCmd.label;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</menuitem>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menuitem oncommand="goDoCommand('cmd_table')">
|
2000-04-28 09:59:16 +04:00
|
|
|
<button class="borderless" id="tableButton-dark" align="left" value="&tableToolbarCmd.label;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
</menuitem>
|
|
|
|
</menupopup>
|
1999-12-02 01:49:15 +03:00
|
|
|
|
2000-04-15 06:03:52 +04:00
|
|
|
<!-- Editor toolbar items -->
|
|
|
|
<!-- note that we override the submenu item label "Blank Window" with "New" used for the menu -->
|
2000-05-07 14:53:42 +04:00
|
|
|
<button class="button-toolbar-2 top" id="newButton"
|
|
|
|
value="&newMenu.label;" observes="cmd_newEditor"
|
|
|
|
tooltip="aTooltip" tooltiptext="&newToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="openButton"
|
|
|
|
value="&openToolbarCmd.label;" observes="cmd_open"
|
|
|
|
tooltip="aTooltip" tooltiptext="&openToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="saveButton"
|
|
|
|
observes="cmd_save"
|
|
|
|
tooltip="aTooltip" tooltiptext="&saveToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="previewButton"
|
|
|
|
value="&previewToolbarCmd.label;" observes="cmd_preview"
|
|
|
|
tooltip="aTooltip" tooltiptext="&previewToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="printButton"
|
|
|
|
value="&printToolbarCmd.label;" observes="cmd_print"
|
|
|
|
tooltip="aTooltip" tooltiptext="&printToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="findButton"
|
|
|
|
value="&findToolbarCmd.label;" observes="cmd_find"
|
|
|
|
tooltip="aTooltip" tooltiptext="&findToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="spellingButton"
|
|
|
|
value="&spellToolbarCmd.label;" observes="cmd_spelling"
|
|
|
|
tooltip="aTooltip" tooltiptext="&spellToolbarCmd.tooltip;"/>
|
|
|
|
|
|
|
|
<button class="button-toolbar-2 top" id="imageButton"
|
|
|
|
value="&imageToolbarCmd.label;" observes="cmd_image"
|
|
|
|
tooltip="aTooltip" tooltiptext="&imageToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="hlineButton"
|
|
|
|
value="&hruleToolbarCmd.label;" observes="cmd_hline"
|
|
|
|
tooltip="aTooltip" tooltiptext="&hruleToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="tableButton"
|
|
|
|
value="&tableToolbarCmd.label;" observes="cmd_table"
|
|
|
|
tooltip="aTooltip" tooltiptext="&tableToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="linkButton"
|
|
|
|
value="&linkToolbarCmd.label;" observes="cmd_link"
|
|
|
|
tooltip="aTooltip" tooltiptext="&linkToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar-2 top" id="namedAnchorButton"
|
|
|
|
value="&anchorToolbarCmd.label;" observes="cmd_anchor"
|
|
|
|
tooltip="aTooltip" tooltiptext="&anchorToolbarCmd.tooltip;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
|
2000-04-28 09:59:16 +04:00
|
|
|
<!-- Formatting toolbar items. "data" are HTML tagnames, don't translate -->
|
|
|
|
<menulist id="ParagraphSelect">
|
2000-05-02 07:24:11 +04:00
|
|
|
<observes element="cmd_paragraphState" attribute="state" onbroadcast="onParagraphFormatChange('cmd_paragraphState')"/>
|
2000-05-02 01:49:52 +04:00
|
|
|
<menupopup oncommand="EditorSetParagraphFormat('cmd_paragraphState', event.target.data)">
|
2000-04-28 09:59:16 +04:00
|
|
|
<menuitem value="&normalCmd.label;" data=""/>
|
|
|
|
<menuitem value="¶graphParagraphCmd.label;" data="P"/>
|
|
|
|
<menuitem value="&heading1Cmd.label;" data="H1"/>
|
|
|
|
<menuitem value="&heading2Cmd.label;" data="H2"/>
|
|
|
|
<menuitem value="&heading3Cmd.label;" data="H3"/>
|
|
|
|
<menuitem value="&heading4Cmd.label;" data="H4"/>
|
|
|
|
<menuitem value="&heading5Cmd.label;" data="H5"/>
|
|
|
|
<menuitem value="&heading6Cmd.label;" data="H6"/>
|
|
|
|
<menuitem value="¶graphBlockquoteCmd.label;" data="BLOCKQUOTE"/>
|
|
|
|
<menuitem value="¶graphAddressCmd.label;" data="ADDRESS"/>
|
|
|
|
<menuitem value="¶graphPreformatCmd.label;" data="PRE"/>
|
|
|
|
<menuitem value="¶graphDfnTermCmd.label;" data="DT"/>
|
|
|
|
<menuitem value="¶graphDfnDescCmd.label;" data="DD"/>
|
|
|
|
</menupopup>
|
|
|
|
</menulist>
|
2000-04-15 06:03:52 +04:00
|
|
|
|
|
|
|
<!-- TODO: Use actual "face" value when combobox can display arbitrary HTML -->
|
2000-04-28 09:59:16 +04:00
|
|
|
<!-- "data" are HTML tagnames, don't translate -->
|
|
|
|
<menulist id="FontFaceSelect">
|
2000-04-15 06:03:52 +04:00
|
|
|
<observes element="Editor:Font:Face" attribute="face" onbroadcast="onFontFaceChange()"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
<menupopup oncommand="EditorSetFontFace(event.target.data)">
|
|
|
|
<menuitem value="&fontVarWidth.label;" data=""/>
|
|
|
|
<menuitem value="&fontFixedWidth.label;" data="tt"/>
|
|
|
|
<menuseparator/>
|
|
|
|
<menuitem value="&fontHelveticaFont.label;" data="Arial, Helvetica, sans-serif"/>
|
|
|
|
<menuitem value="&fontTimes.label;" data="Times New Roman, Times, serif"/>
|
|
|
|
<menuitem value="&fontCourier.label;" data="Courier New, Courier, mono"/>
|
|
|
|
</menupopup>
|
|
|
|
</menulist>
|
|
|
|
|
|
|
|
<menulist id="FontSizeSelect" oncommand="EditorSelectFontSize()">
|
2000-04-15 06:03:52 +04:00
|
|
|
<observes element="Editor:Font:Size" attribute="fontsize" onbroadcast="onFontSizeChange()"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&size-xx-smallCmd.label;"/>
|
|
|
|
<menuitem value="&size-x-smallCmd.label;"/>
|
|
|
|
<menuitem value="&size-smallCmd.label;"/>
|
|
|
|
<menuitem value="&size-mediumCmd.label;"/>
|
|
|
|
<menuitem value="&size-largeCmd.label;"/>
|
|
|
|
<menuitem value="&size-x-largeCmd.label;"/>
|
|
|
|
<menuitem value="&size-xx-largeCmd.label;"/>
|
|
|
|
</menupopup>
|
|
|
|
</menulist>
|
2000-04-15 06:03:52 +04:00
|
|
|
|
2000-04-28 09:59:16 +04:00
|
|
|
<stack id="ColorButtons" autostretch="never">
|
2000-05-02 07:24:11 +04:00
|
|
|
<text class="color-button" id="BackColorPopupButton" popup="BackColorPopup"/>
|
|
|
|
<text class="color-button" id="TextColorPopupButton" popup="TextColorPopup"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
</stack>
|
2000-05-04 18:02:03 +04:00
|
|
|
|
|
|
|
<!-- A BUG IN CSS/BOXES MAKES THIS ASSERT WHEN CLASS= IS PRESENT AND WE TRY TO COLLAPSE THE TOOLBOX -->
|
2000-05-07 14:53:42 +04:00
|
|
|
<button class="button-toolbar" id="DecreaseFontSizeButton" observes="cmd_decreaseFont"
|
|
|
|
tooltip="aTooltip" tooltiptext="&decreaseFontSizeToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar" id="IncreaseFontSizeButton" observes="cmd_increaseFont"
|
|
|
|
tooltip="aTooltip" tooltiptext="&increaseFontSizeToolbarCmd.tooltip;"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
|
2000-05-07 14:53:42 +04:00
|
|
|
<button class="button-toolbar" id="boldButton" oncommand="goDoCommand('cmd_bold')"
|
|
|
|
tooltip="aTooltip" tooltiptext="&boldToolbarCmd.tooltip;">
|
2000-05-02 01:49:52 +04:00
|
|
|
<observes element="cmd_bold" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_bold')"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
</button>
|
2000-05-07 14:53:42 +04:00
|
|
|
<button class="button-toolbar" id="italicButton" align="center" oncommand="goDoCommand('cmd_italic')"
|
|
|
|
tooltip="aTooltip" tooltiptext="&italicToolbarCmd.tooltip;">
|
2000-05-02 01:49:52 +04:00
|
|
|
<observes element="cmd_italic" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_italic')"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
</button>
|
2000-05-07 14:53:42 +04:00
|
|
|
<button class="button-toolbar" id="underlineButton" align="center" oncommand="goDoCommand('cmd_underline')"
|
|
|
|
tooltip="aTooltip" tooltiptext="&underlineToolbarCmd.tooltip;">
|
2000-05-02 01:49:52 +04:00
|
|
|
<observes element="cmd_underline" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_underline')"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
</button>
|
2000-04-15 06:03:52 +04:00
|
|
|
|
2000-05-07 14:53:42 +04:00
|
|
|
<button class="button-toolbar" id="ulButton" oncommand="goDoCommand('cmd_ul')"
|
|
|
|
tooltip="aTooltip" tooltiptext="&bulletListToolbarCmd.tooltip;">
|
2000-05-02 01:49:52 +04:00
|
|
|
<observes element="cmd_ul" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_ul')"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
</button>
|
2000-04-15 06:03:52 +04:00
|
|
|
|
2000-05-07 14:53:42 +04:00
|
|
|
<button class="button-toolbar" id="olButton" oncommand="goDoCommand('cmd_ol')"
|
|
|
|
tooltip="aTooltip" tooltiptext="&numberListToolbarCmd.tooltip;">
|
2000-05-02 01:49:52 +04:00
|
|
|
<observes element="cmd_ol" attribute="state" onbroadcast="onButtonUpdate(this.parentNode, 'cmd_ol')"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
</button>
|
2000-04-15 06:03:52 +04:00
|
|
|
|
2000-05-07 14:53:42 +04:00
|
|
|
<button class="button-toolbar format" id="outdentButton" observes="cmd_outdent"
|
|
|
|
tooltip="aTooltip" tooltiptext="&outdentToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar format" id="indentButton" observes="cmd_indent"
|
|
|
|
tooltip="aTooltip" tooltiptext="&indentToolbarCmd.tooltip;"/>
|
|
|
|
<button class="button-toolbar format popup" id="AlignPopupButton" disabled="true"
|
|
|
|
tooltip="aTooltip" tooltiptext="&alignmentToolbarCmd.tooltip;"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
|
|
|
|
<!-- Edit Mode toolbar -->
|
2000-05-10 03:03:41 +04:00
|
|
|
<button id="NormalModeButton" class="EditModeButton plain" type="text" selected="1" value="&normalMode.label;" onclick="SetEditMode(1)"/>
|
|
|
|
<button id="TagModeButton" class="EditModeButton plain" type="text" selected="0" value="&showAllTags.label;" onclick="SetEditMode(2)"/>
|
|
|
|
<button id="SourceModeButton" class="EditModeButton plain" type="text" selected="0" value="&sourceMode.label;" onclick="SetEditMode(3)"/>
|
|
|
|
<button id="PreviewModeButton" class="EditModeButton plain" type="text" selected="0" value="&previewMode.label;" onclick="SetEditMode(0)"/>
|
2000-05-12 06:37:40 +04:00
|
|
|
<!-- button id="ToggleEditModeType" class="plain" onclick="ToggleEditModeType()"/ -->
|
|
|
|
<image id="ToggleEditModeType" onclick="ToggleEditModeType()"/>
|
2000-05-10 03:03:41 +04:00
|
|
|
|
|
|
|
<!-- InsertPopupButton is used by messengercompose.xul -->
|
|
|
|
<button class="plain format popup" id="InsertPopupButton"/>
|
2000-04-28 09:59:16 +04:00
|
|
|
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-04-15 06:03:52 +04:00
|
|
|
<!-- Paste as quotation is used by mail compose,
|
|
|
|
but in composer it has to go in the debug menu
|
|
|
|
-->
|
2000-05-09 05:49:11 +04:00
|
|
|
<menuitem id="menu_pasteQuote" accesskey="&editpastequotation.accesskey;" observes="cmd_pasteQuote"/>
|
1999-09-02 08:49:24 +04:00
|
|
|
|
2000-04-15 06:03:52 +04:00
|
|
|
<!-- DEBUG only -->
|
|
|
|
<menu id="debugMenu" value="&debugMenu.label;">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="&newEditorTestPage.label;" oncommand="window.openDialog('chrome://editor/content','_blank','chrome,all,dialog=no','chrome://editor/content/EditorInitPage.html')"/>
|
|
|
|
<menuitem value="&textEditorCmd.label;" oncommand="EditorNewPlaintext();" />
|
|
|
|
<menuitem value="&outputTextCmd.label;"
|
|
|
|
oncommand="EditorGetText()"/>
|
|
|
|
<menuitem value="&outputHTMLCmd.label;"
|
|
|
|
oncommand="EditorGetHTML()"/>
|
|
|
|
<menuitem value="&outputXIFCmd.label;"
|
|
|
|
oncommand="EditorGetXIF()"/>
|
|
|
|
<menuseparator />
|
2000-04-19 02:39:10 +04:00
|
|
|
<menuitem value="&pasteAsQuotationCmd.label;"
|
|
|
|
accesskey="&editpastequotation.accesskey;"
|
2000-05-03 09:14:11 +04:00
|
|
|
oncommand="goDoCommand('cmd_pasteQuote')"/>
|
2000-04-19 02:39:10 +04:00
|
|
|
<menuitem value="&editRewrapCmd.label;"
|
2000-04-21 02:45:54 +04:00
|
|
|
oncommand="editorShell.Rewrap(false)"/>
|
2000-04-19 02:39:10 +04:00
|
|
|
<menuitem value="&editStripQuotesCmd.label;"
|
|
|
|
oncommand="editorShell.StripCites()"/>
|
2000-04-15 06:03:52 +04:00
|
|
|
<menuitem value="&insertTextCmd.label;"
|
|
|
|
oncommand="EditorInsertText('All good things come to those who wait. ')"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&testSelectionCmd.label;"
|
|
|
|
oncommand="EditorTestSelection()"/>
|
|
|
|
<menuitem value="&testTableLayoutCmd.label;"
|
|
|
|
oncommand="EditorTestTableLayout()"/>
|
|
|
|
<menuitem value="&showEmbeddedCmd.label;"
|
|
|
|
oncommand="EditorShowEmbeddedObjects()"/>
|
|
|
|
<menuitem value="&dumpContentCmd.label;"
|
|
|
|
oncommand="EditorDumpContent()"/>
|
|
|
|
<menuitem value="&testDocumentCmd.label;"
|
|
|
|
oncommand="EditorTestDocument()"/>
|
|
|
|
<menuitem value="&runUnitTestsCmd.label;"
|
|
|
|
oncommand="EditorUnitTests()"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&startLogCmd.label;"
|
|
|
|
oncommand="EditorStartLog()"/>
|
|
|
|
<menuitem value="&stopLogCmd.label;"
|
|
|
|
oncommand="EditorStopLog()"/>
|
|
|
|
<menuitem value="&runLogCmd.label;"
|
|
|
|
oncommand="EditorRunLog()"/>
|
|
|
|
<menuseparator />
|
|
|
|
<menuitem value="&setFocusCmd.label;"
|
|
|
|
accesskey="&toolsetfocus.accesskey;"
|
|
|
|
oncommand="window.focus()"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
<!-- end DEBUG only -->
|
|
|
|
|
1999-09-02 08:49:24 +04:00
|
|
|
</overlay>
|