summaryrefslogtreecommitdiffstats
path: root/comm/mail/base/content/msgAttachmentView.inc.xhtml
blob: 934ff7bc1851cb60cae7652d5cee49255748d067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
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);"/>