summaryrefslogtreecommitdiffstats
path: root/comm/mail/base/content/msgAttachmentView.inc.xhtml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--comm/mail/base/content/msgAttachmentView.inc.xhtml102
1 files changed, 102 insertions, 0 deletions
diff --git a/comm/mail/base/content/msgAttachmentView.inc.xhtml b/comm/mail/base/content/msgAttachmentView.inc.xhtml
new file mode 100644
index 0000000000..934ff7bc18
--- /dev/null
+++ b/comm/mail/base/content/msgAttachmentView.inc.xhtml
@@ -0,0 +1,102 @@
+# 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/.
+
+ <!-- the message pane consists of 4 'boxes'. Box #4 is the attachment
+ box which can be toggled into a slim or an expanded view -->
+ <hbox align="center" id="attachmentBar"
+ context="attachment-toolbar-context-menu"
+ onclick="if (event.button == 0) { toggleAttachmentList(undefined, true); }">
+ <button type="checkbox" id="attachmentToggle"
+ onmousedown="event.preventDefault();"
+ onclick="event.stopPropagation();"
+ oncommand="toggleAttachmentList(this.checked, true);"/>
+ <hbox align="center" id="attachmentInfo">
+ <html:img id="attachmentIcon"
+ src="chrome://messenger/skin/icons/attach.svg"
+ alt="" />
+ <label id="attachmentCount"/>
+ <label id="attachmentName" crop="center"
+ role="button"
+ tooltiptext="&openAttachment.tooltip;"
+ tooltiptextopen="&openAttachment.tooltip;"
+ onclick="OpenAttachmentFromBar(event);"
+ ondragstart="attachmentNameDNDObserver.onDragStart(event);"/>
+ <label id="attachmentSize"/>
+ </hbox>
+ <spacer flex="1"/>
+
+ <vbox id="attachment-view-toolbox" class="inline-toolbox">
+ <hbox id="attachment-view-toolbar"
+ class="toolbar themeable-brighttext"
+ context="attachment-toolbar-context-menu">
+ <toolbaritem id="attachmentSaveAll"
+ title="&saveAllAttachmentsButton1.label;">
+ <toolbarbutton is="toolbarbutton-menu-button" id="attachmentSaveAllSingle"
+ type="menu"
+ class="toolbarbutton-1 message-header-view-button"
+ label="&saveAttachmentButton1.label;"
+ tooltiptext="&saveAttachmentButton1.tooltip;"
+ onclick="event.stopPropagation();"
+ oncommand="TryHandleAllAttachments('saveAs');"
+ hidden="true">
+ <menupopup id="attachmentSaveAllSingleMenu"
+ onpopupshowing="onShowSaveAttachmentMenuSingle();">
+ <menuitem id="button-openAttachment"
+ oncommand="TryHandleAllAttachments('open'); event.stopPropagation();"
+ label="&openAttachmentCmd.label;"
+ accesskey="&openAttachmentCmd.accesskey;"/>
+ <menuitem id="button-saveAttachment"
+ oncommand="TryHandleAllAttachments('saveAs'); event.stopPropagation();"
+ label="&saveAsAttachmentCmd.label;"
+ accesskey="&saveAsAttachmentCmd.accesskey;"/>
+ <menuseparator id="button-menu-separator"/>
+ <menuitem id="button-detachAttachment"
+ oncommand="TryHandleAllAttachments('detach'); event.stopPropagation();"
+ label="&detachAttachmentCmd.label;"
+ accesskey="&detachAttachmentCmd.accesskey;"/>
+ <menuitem id="button-deleteAttachment"
+ oncommand="TryHandleAllAttachments('delete'); event.stopPropagation();"
+ label="&deleteAttachmentCmd.label;"
+ accesskey="&deleteAttachmentCmd.accesskey;"/>
+ </menupopup>
+ </toolbarbutton>
+ <toolbarbutton is="toolbarbutton-menu-button" id="attachmentSaveAllMultiple"
+ type="menu"
+ class="toolbarbutton-1 message-header-view-button"
+ label="&saveAllAttachmentsButton1.label;"
+ tooltiptext="&saveAllAttachmentsButton1.tooltip;"
+ onclick="event.stopPropagation();"
+ oncommand="TryHandleAllAttachments('save');">
+ <menupopup id="attachmentSaveAllMultipleMenu"
+ onpopupshowing="onShowSaveAttachmentMenuMultiple();">
+ <menuitem id="button-openAllAttachments"
+ oncommand="TryHandleAllAttachments('open'); event.stopPropagation();"
+ label="&openAllAttachmentsCmd.label;"
+ accesskey="&openAllAttachmentsCmd.accesskey;"/>
+ <menuitem id="button-saveAllAttachments"
+ oncommand="TryHandleAllAttachments('save'); event.stopPropagation();"
+ label="&saveAllAttachmentsCmd.label;"
+ accesskey="&saveAllAttachmentsCmd.accesskey;"/>
+ <menuseparator id="button-menu-separator-all"/>
+ <menuitem id="button-detachAllAttachments"
+ oncommand="TryHandleAllAttachments('detach'); event.stopPropagation();"
+ label="&detachAllAttachmentsCmd.label;"
+ accesskey="&detachAllAttachmentsCmd.accesskey;"/>
+ <menuitem id="button-deleteAllAttachments"
+ oncommand="TryHandleAllAttachments('delete'); event.stopPropagation();"
+ label="&deleteAllAttachmentsCmd.label;"
+ accesskey="&deleteAllAttachmentsCmd.accesskey;"/>
+ </menupopup>
+ </toolbarbutton>
+ </toolbaritem>
+ </hbox>
+ </vbox>
+ </hbox>
+ <richlistbox is="attachment-list" id="attachmentList"
+ class="attachmentList"
+ seltype="multiple"
+ context="attachmentListContext"
+ itemcontext="attachmentItemContext"
+ role="listbox"
+ ondragstart="attachmentListDNDObserver.onDragStart(event);"/>