Bug 1541006 - Remove single use overlays from compose window. r=frg

This commit is contained in:
Ian Neal 2019-04-14 13:59:08 +02:00
Родитель b127c980bd
Коммит 0dd66d8dd6
6 изменённых файлов: 63 добавлений и 84 удалений

Просмотреть файл

@ -7,7 +7,13 @@
<!ENTITY fromAddr.label "From:">
<!ENTITY fromAddr.accesskey "r">
<!ENTITY subject.label "Subject:">
<!ENTITY toAddr.label "To:">
<!ENTITY ccAddr.label "Cc:">
<!ENTITY bccAddr.label "Bcc:">
<!ENTITY replyAddr.label "Reply-To:">
<!ENTITY newsgroupsAddr.label "Newsgroup:">
<!ENTITY followupAddr.label "Followup-To:">
<!ENTITY subject.label "Subject:">
<!ENTITY subject.accesskey "S">
<!ENTITY attachments.label "Attachments:">
<!ENTITY attachments.accesskey "c">

Просмотреть файл

@ -280,7 +280,6 @@
locale/@AB_CD@/messenger/markByDate.dtd (%chrome/mailnews/markByDate.dtd)
locale/@AB_CD@/messenger/messenger.dtd (%chrome/mailnews/messenger.dtd)
locale/@AB_CD@/messenger/messenger.properties (%chrome/mailnews/messenger.properties)
locale/@AB_CD@/messenger/messengercompose/addressingWidgetOverlay.dtd (%chrome/mailnews/compose/addressingWidgetOverlay.dtd)
locale/@AB_CD@/messenger/messengercompose/askSendFormat.dtd (%chrome/mailnews/compose/askSendFormat.dtd)
locale/@AB_CD@/messenger/messengercompose/askSendFormat.properties (%chrome/mailnews/compose/askSendFormat.properties)
locale/@AB_CD@/messenger/messengercompose/composeMsgs.properties (%chrome/mailnews/compose/composeMsgs.properties)

Просмотреть файл

@ -1,65 +0,0 @@
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE overlay SYSTEM "chrome://messenger/locale/messengercompose/addressingWidgetOverlay.dtd">
<overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://messenger/content/messengercompose/addressingWidgetOverlay.js"/>
<script type="application/javascript" src="chrome://messenger/content/addressbook/abDragDrop.js"/>
<!-- Addressing Widget -->
<listbox id="addressingWidget" seltype="multiple" rows="4"
onkeydown="awKeyDown(event, this)"
onclick="awClickEmptySpace(event.originalTarget, true)"
ondragover="DragAddressOverTargetControl(event);"
ondrop="DropAddressOverTargetControl(event);">
<listcols>
<listcol id="typecol-addressingWidget"/>
<listcol id="textcol-addressingWidget" flex="1"/>
</listcols>
<listitem class="addressingWidgetItem" allowevents="true">
<listcell class="addressingWidgetCell" align="stretch">
<menulist id="addressCol1#1" disableonsend="true"
class="aw-menulist menulist-compact" flex="1"
onkeypress="awMenulistKeyPress(event, this)"
oncommand="gContentChanged=true; awSetAutoComplete(this.id.slice(this.id.lastIndexOf('#') + 1));">
<menupopup>
<menuitem value="addr_to" label="&toAddr.label;"/>
<menuitem value="addr_cc" label="&ccAddr.label;"/>
<menuitem value="addr_bcc" label="&bccAddr.label;"/>
<menuitem value="addr_reply" label="&replyAddr.label;"/>
<menuitem value="addr_newsgroups" label="&newsgroupsAddr.label;"/>
<menuitem value="addr_followup" label="&followupAddr.label;"/>
</menupopup>
</menulist>
</listcell>
<listcell class="addressingWidgetCell">
<textbox id="addressCol2#1" class="plain textbox-addressingWidget uri-element"
aria-labelledby="addressCol1#1"
type="autocomplete" flex="1" maxrows="4"
newlines="replacewithcommas"
autocompletesearch="mydomain addrbook ldap news" timeout="300"
autocompletesearchparam="{}"
completedefaultindex="true" forcecomplete="true"
minresultsforpopup="2" ignoreblurwhilesearching="true"
ontextentered="awRecipientTextCommand(eventParam, this)"
onerrorcommand="awRecipientErrorCommand(eventParam, this)"
oninput="gContentChanged=true; setupAutocomplete();" disableonsend="true"
onkeypress="awRecipientKeyPress(event, this)"
onkeydown="awRecipientKeyDown(event, this)">
<image class="person-icon" onclick="this.parentNode.select();"/>
</textbox>
</listcell>
</listitem>
</listbox>
</overlay>

Просмотреть файл

@ -1,12 +0,0 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<overlay
xmlns:nc="http://home.netscape.com/NC-rdf#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- plug in your mail compose window extras here.
see http://www.mozilla.org/mailnews/arch/composewindowextras.html -->
</overlay>

Просмотреть файл

@ -13,12 +13,10 @@
<?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/contentAreaContextOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/messengercompose/msgComposeContextOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/messengercompose/addressingWidgetOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
<?xul-overlay href="chrome://editor/content/editorSmileyOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/messengercompose/mailComposeOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/messengercompose/mailComposeExtrasOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/mailOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/platformMailnewsOverlay.xul"?>
@ -68,9 +66,11 @@
<script type="application/javascript" src="chrome://messenger/content/mail-offline.js"/>
<script type="application/javascript" src="chrome://editor/content/editor.js"/>
<script type="application/javascript" src="chrome://messenger/content/messengercompose/MsgComposeCommands.js"/>
<script type="application/javascript" src="chrome://messenger/content/messengercompose/addressingWidgetOverlay.js"/>
<!-- drag and drop -->
<script type="application/javascript" src="chrome://global/content/nsDragAndDrop.js"/>
<script type="application/javascript" src="chrome://messenger/content/addressbook/abDragDrop.js"/>
<commandset id="composeCommands">
<commandset id="msgComposeCommandUpdate"
@ -563,7 +563,60 @@
<menupopup id="msgIdentityPopup"/>
</menulist>
</hbox>
<listbox id="addressingWidget" flex="1"/>
<!-- Addressing Widget -->
<listbox id="addressingWidget" flex="1"
seltype="multiple" rows="4"
onkeydown="awKeyDown(event, this);"
onclick="awClickEmptySpace(event.originalTarget, true);"
ondragover="DragAddressOverTargetControl(event);"
ondrop="DropAddressOverTargetControl(event);">
<listcols>
<listcol id="typecol-addressingWidget"/>
<listcol id="textcol-addressingWidget" flex="1"/>
</listcols>
<listitem class="addressingWidgetItem" allowevents="true">
<listcell class="addressingWidgetCell" align="stretch">
<menulist id="addressCol1#1" disableonsend="true"
class="aw-menulist menulist-compact" flex="1"
onkeypress="awMenulistKeyPress(event, this);"
oncommand="gContentChanged=true; awSetAutoComplete(this.id.slice(this.id.lastIndexOf('#') + 1));">
<menupopup>
<menuitem value="addr_to" label="&toAddr.label;"/>
<menuitem value="addr_cc" label="&ccAddr.label;"/>
<menuitem value="addr_bcc" label="&bccAddr.label;"/>
<menuitem value="addr_reply" label="&replyAddr.label;"/>
<menuitem value="addr_newsgroups"
label="&newsgroupsAddr.label;"/>
<menuitem value="addr_followup"
label="&followupAddr.label;"/>
</menupopup>
</menulist>
</listcell>
<listcell class="addressingWidgetCell">
<textbox id="addressCol2#1"
class="plain textbox-addressingWidget uri-element"
aria-labelledby="addressCol1#1"
type="autocomplete" flex="1" maxrows="4"
newlines="replacewithcommas"
autocompletesearch="mydomain addrbook ldap news"
timeout="300" autocompletesearchparam="{}"
completedefaultindex="true" forcecomplete="true"
minresultsforpopup="2" ignoreblurwhilesearching="true"
ontextentered="awRecipientTextCommand(eventParam, this);"
onerrorcommand="awRecipientErrorCommand(eventParam, this);"
oninput="gContentChanged=true; setupAutocomplete();"
disableonsend="true"
onkeypress="awRecipientKeyPress(event, this);"
onkeydown="awRecipientKeyDown(event, this);">
<image class="person-icon"
onclick="this.parentNode.select();"/>
</textbox>
</listcell>
</listitem>
</listbox>
<hbox align="center">
<label value="&subject.label;" accesskey="&subject.accesskey;" control="msgSubject"/>
<textbox id="msgSubject" flex="1" class="toolbar" disableonsend="true"

Просмотреть файл

@ -12,5 +12,3 @@ messenger.jar:
content/messenger/messengercompose/msgComposeContextOverlay.xul (content/msgComposeContextOverlay.xul)
content/messenger/messengercompose/MsgComposeCommands.js (content/MsgComposeCommands.js)
content/messenger/messengercompose/addressingWidgetOverlay.js (content/addressingWidgetOverlay.js)
content/messenger/messengercompose/addressingWidgetOverlay.xul (content/addressingWidgetOverlay.xul)
content/messenger/messengercompose/mailComposeExtrasOverlay.xul (content/mailComposeExtrasOverlay.xul)