editoroverlay.xul

来自「现在很火的邮件客户端软件thunderbird的源码」· XUL 代码 · 共 784 行 · 第 1/4 页

XUL
784
字号
<?xml version="1.0"?> <!-- ***** BEGIN LICENSE BLOCK *****   - Version: MPL 1.1/GPL 2.0/LGPL 2.1   -   - The contents of this file are subject to the Mozilla 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/MPL/   -   - 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 the Initial Developer are Copyright (C) 1999   - the Initial Developer. All Rights Reserved.   -   - Contributor(s):   -   Ryan Cassin (rcassin@supernova.org)   -   Daniel Glazman (glazman@netscape.com)   -   Aaron Kaluszka (ask@swva.net)   -   Stephen Donner (technutz@netscape.net)   -   - Alternatively, the contents of this file may be used under the terms of   - either of the GNU General Public License Version 2 or later (the "GPL"),   - or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),   - in which case the provisions of the GPL or the LGPL are applicable instead   - of those above. If you wish to allow use of your version of this file only   - under the terms of either the GPL or the LGPL, and not to allow others to   - use your version of this file under the terms of the MPL, indicate your   - decision by deleting the provisions above and replace them with the notice   - and other provisions required by the GPL or the LGPL. If you do not delete   - the provisions above, a recipient may use your version of this file under   - the terms of any one of the MPL, the GPL or the LGPL.   -   - ***** END LICENSE BLOCK ***** --><!DOCTYPE overlay [<!ENTITY % editorOverlayDTD SYSTEM "chrome://editor/locale/editorOverlay.dtd">%editorOverlayDTD;<!ENTITY % utilityOverlayDTD SYSTEM  "chrome://communicator/locale/utilityOverlay.dtd">%utilityOverlayDTD;]><overlay id="editorOverlay"         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"><script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/><script type="application/x-javascript" src="chrome://editor/content/ComposerCommands.js"/><script type="application/x-javascript" src="chrome://global/content/XPCNativeWrapper.js"/>  <keyset id="editorKeys">    <key id="boldkb"         key="&stylebold.keybinding;"       observes="cmd_bold" modifiers="accel"/>    <key id="italickb"       key="&styleitalic.keybinding;"     observes="cmd_italic" modifiers="accel"/>    <key id="underlinekb"    key="&styleunderline.keybinding;"  observes="cmd_underline" modifiers="accel"/>    <key id="fixedwidthkb"   key="&formatfontfixed.keybinding;" observes="cmd_tt" modifiers="accel"/>    <key id="increaseindentkb"  key="&formatindent.keybinding;"  observes="cmd_indent"  modifiers="accel"/>    <key id="decreaseindentkb"  key="&formatoutdent.keybinding;"  observes="cmd_outdent"  modifiers="accel"/>    <key id="pastequotationkb"  key="&editpastequotation.keybinding;"   observes="cmd_pasteQuote"  modifiers="accel, shift"/>    <key id="removestyleskb"       key="&formatremovestyles.keybinding;"   observes="cmd_removeStyles"  modifiers="accel, shift"/>    <key id="removestyleskb2"       key=" "   observes="cmd_removeStyles"  modifiers="accel"/>    <key id="removelinkskb"        key="&formatremovelinks.keybinding;"    observes="cmd_removeLinks"  modifiers="accel, shift"/>    <key id="removenamedanchorskb" key="&formatremovenamedanchors.keybinding;"    observes="cmd_removeNamedAnchors"  modifiers="accel, shift"/>    <key id="decreasefontsizekb"   key="&decreaseFontSize.keybinding;"     observes="cmd_decreaseFont"  modifiers="accel"/>    <key id="increasefontsizekb"   key="&increaseFontSize.keybinding;"     observes="cmd_increaseFont"  modifiers="accel"/>    <key                           key="&increaseFontSize.keybinding;"     observes="cmd_increaseFont"  modifiers="accel,shift"/>    <key                           key="&increaseFontSize.keybinding2;"    observes="cmd_increaseFont"  modifiers="accel"/>    <key id="insertlinkkb"         key="&insertlink.keybinding;"           observes="cmd_link"          modifiers="accel"/>  </keyset>  <!-- commands updated when the editor gets created -->  <commandset id="commonEditorMenuItems"          commandupdater="true"          events="create"          oncommandupdate="goUpdateComposerMenuItems(this)">    <command id="cmd_open"                                          oncommand="goDoCommand('cmd_open')"/>    <command id="cmd_openRemote"   label="&openremoteCmd.label;"    oncommand="goDoCommand('cmd_openRemote')"/>    <command id="cmd_printSetup"   oncommand="goDoCommand('cmd_printSetup')"/>    <command id="cmd_print"                                         oncommand="goDoCommand('cmd_print')"/>    <command id="cmd_quit"         oncommand="goDoCommand('cmd_quit')"/>  </commandset>  <commandset id="composerMenuItems"          commandupdater="true"          events="create, mode_switch"          oncommandupdate="goUpdateComposerMenuItems(this)"  >    <!-- format menu -->    <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_form"             oncommand="goDoCommand('cmd_form')"/>    <command id="cmd_inputtag"         oncommand="goDoCommand('cmd_inputtag')"/>    <command id="cmd_inputimage"       oncommand="goDoCommand('cmd_inputimage')"/>    <command id="cmd_textarea"         oncommand="goDoCommand('cmd_textarea')"/>    <command id="cmd_select"           oncommand="goDoCommand('cmd_select')"/>    <command id="cmd_button"           oncommand="goDoCommand('cmd_button')"/>    <command id="cmd_label"            oncommand="goDoCommand('cmd_label')"/>    <command id="cmd_fieldset"         oncommand="goDoCommand('cmd_fieldset')"/>    <command id="cmd_isindex"          oncommand="goDoCommand('cmd_isindex')"/>    <command id="cmd_objectProperties" oncommand="goDoCommand('cmd_objectProperties')"/>    <command id="cmd_insertChars"      oncommand="goDoCommand('cmd_insertChars')"    label="&insertCharsCmd.label;"/>    <command id="cmd_insertHTMLWithDialog" oncommand="goDoCommand('cmd_insertHTMLWithDialog')"  label="&insertHTMLCmd.label;"/>    <command id="cmd_insertBreak"      oncommand="goDoCommand('cmd_insertBreak')"/>    <command id="cmd_insertBreakAll"   oncommand="goDoCommand('cmd_insertBreakAll')"/>    <command id="cmd_NormalMode"       oncommand="goDoCommand('cmd_NormalMode')"     label="&NormalMode.label;"/>    <command id="cmd_AllTagsMode"      oncommand="goDoCommand('cmd_AllTagsMode')"    label="&AllTagsMode.label;"/>    <command id="cmd_HTMLSourceMode"   oncommand="goDoCommand('cmd_HTMLSourceMode')"/>    <command id="cmd_PreviewMode"      oncommand="goDoCommand('cmd_PreviewMode')"    label="&PreviewMode.label;"/>    <!-- only used in context popup menu -->    <command id="cmd_editLink"         oncommand="goDoCommand('cmd_editLink')"/>    <!-- dummy command used just to disable things in non-HTML modes -->    <command id="cmd_renderedHTMLEnabler"/>  </commandset>    <commandset id="composerSaveMenuItems"          commandupdater="true"          events="create, save"          oncommandupdate="goUpdateComposerMenuItems(this)"  >    <command id="cmd_save"           label="&saveCmd.label;"           oncommand="goDoCommand('cmd_save')"/>    <command id="cmd_saveAs"         label="&saveAsCmd.label;"         oncommand="goDoCommand('cmd_saveAs')"/>    <command id="cmd_exportToText"   label="&exportToTextCmd.label;"   oncommand="goDoCommand('cmd_exportToText')"/>    <command id="cmd_saveAndChangeEncoding"  label="&saveAsChangeEncodingCmd.label;"  oncommand="goDoCommand('cmd_saveAndChangeEncoding')"/>    <command id="cmd_publish"        label="&publishCmd.label;"        oncommand="goDoCommand('cmd_publish')"/>    <command id="cmd_publishAs"      label="&publishAsCmd.label;"      oncommand="goDoCommand('cmd_publishAs')"/>    <command id="cmd_revert"         label="&fileRevert.label;"        oncommand="goDoCommand('cmd_revert')"/>    <command id="cmd_preview"                                          oncommand="goDoCommand('cmd_preview')"/>    <command id="cmd_editSendPage"   label="&sendPageCmd.label;"                                     accesskey="&sendPage.accesskey;"  oncommand="goDoCommand('cmd_editSendPage')"/>  </commandset>  <!-- edit menu commands. These get updated by code in globalOverlay.js -->  <commandset id="composerEditMenuItems"          commandupdater="true"          events="create, mode_switch"          oncommandupdate="goUpdateComposerMenuItems(this)"  >    <command id="cmd_undo"/>    <command id="cmd_redo"/>    <command id="cmd_cut"/>    <command id="cmd_copy"/>    <command id="cmd_paste"/>      <command id="cmd_pasteNoFormatting" oncommand="goDoCommand('cmd_pasteNoFormatting')"             label="&pasteNoFormatting.label;" accesskey="&pasteNoFormatting.accesskey;"/>    <command id="cmd_delete"/>    <command id="cmd_selectAll"/>    <command id="cmd_preferences"   oncommand="goDoCommand('cmd_preferences')"/>    <command id="cmd_find"          oncommand="goDoCommand('cmd_find')"/>    <command id="cmd_findNext"      oncommand="goDoCommand('cmd_findNext')"     label="&findAgainCmd.label;"/>    <command id="cmd_findPrev"      oncommand="goDoCommand('cmd_findPrev')"     label="&findPrevCmd.label;"/>    <command id="cmd_spelling"      oncommand="goDoCommand('cmd_spelling')"/>    <command id="cmd_validate"      label="&validateCmd.label;" accesskey="&validate.accesskey;" oncommand="goDoCommand('cmd_validate')"/>    <command id="cmd_checkLinks"    oncommand="goDoCommand('cmd_checkLinks')"/>    <command id="cmd_pasteQuote"    oncommand="goDoCommand('cmd_pasteQuote')" label="&pasteAsQuotationCmd.label;"/>    <command id="cmd_publishSettings" label="&publishSettings.label;" accesskey="&publishSettings.accesskey;" oncommand="goDoCommand('cmd_publishSettings')"/>  </commandset>  <!-- style related commands that update on creation, and on selection change -->  <commandset id="composerStyleMenuItems"          commandupdater="true"          events="create, style, mode_switch"          oncommandupdate="goUpdateComposerMenuItems(this)"  >    <command id="cmd_bold"          state="false"     oncommand="doStyleUICommand('cmd_bold')"/>    <command id="cmd_italic"        state="false"     oncommand="doStyleUICommand('cmd_italic')"/>    <command id="cmd_underline"     state="false"     oncommand="doStyleUICommand('cmd_underline')"/>    <command id="cmd_tt"            state="false"     oncommand="doStyleUICommand('cmd_tt')"/>    <command id="cmd_smiley"/>    <command id="cmd_strikethrough" state="false"     oncommand="doStyleUICommand('cmd_strikethrough');"/>    <command id="cmd_superscript"   state="false"     oncommand="doStyleUICommand('cmd_superscript');"/>    <command id="cmd_subscript"     state="false"     oncommand="doStyleUICommand('cmd_subscript');"/>    <command id="cmd_nobreak"       state="false"     oncommand="doStyleUICommand('cmd_nobreak');"/>    <command id="cmd_em"            state="false"     oncommand="doStyleUICommand('cmd_em')"/>    <command id="cmd_strong"        state="false"     oncommand="doStyleUICommand('cmd_strong')"/>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?