summaryrefslogtreecommitdiffstats
path: root/comm/mailnews/import/content/importDialog.xhtml
blob: c3147d8c99d54a8e69f125a203487864c9e5a4a3 (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?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/. -->

<?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/input-fields.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/colors.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/themeableDialog.css" type="text/css"?>

<!DOCTYPE html [ <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
%brandDTD;
<!ENTITY % importDTD SYSTEM "chrome://messenger/locale/importDialog.dtd" >
%importDTD; ]>

<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  lightweightthemes="true"
  width="720"
  height="520"
  scrolling="false"
>
  <head>
    <title>&importDialog.windowTitle;</title>
    <script
      defer="defer"
      src="chrome://messenger/content/globalOverlay.js"
    ></script>
    <script
      defer="defer"
      src="chrome://global/content/editMenuOverlay.js"
    ></script>
    <script
      defer="defer"
      src="chrome://messenger-newsblog/content/feed-subscriptions.js"
    ></script>
    <script
      defer="defer"
      src="chrome://messenger/content/importDialog.js"
    ></script>
  </head>
  <html:body
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  >
    <stringbundle
      id="bundle_importMsgs"
      src="chrome://messenger/locale/importMsgs.properties"
    />
    <stringbundle
      id="bundle_addressbook"
      src="chrome://messenger/locale/addressbook/addressBook.properties"
    />
    <stringbundle
      id="bundle_morkImportMsgs"
      src="chrome://messenger/locale/morkImportMsgs.properties"
    />
    <stringbundle
      id="bundle_vcardImportMsgs"
      src="chrome://messenger/locale/vCardImportMsgs.properties"
    />
    <stringbundle
      id="bundle_feeds"
      src="chrome://messenger-newsblog/locale/newsblog.properties"
    />

    <hbox
      class="box-header"
      id="header"
      title="&importTitle.label;"
      description="&importShortDesc.label;"
    />

    <vbox id="stateBox" flex="1" style="min-height: 30em">
      <vbox class="wizard-box">
        <description>&importDescription1.label;</description>
        <description>&importDescription2.label;</description>
        <separator />
        <radiogroup id="importFields">
          <radio
            id="allRadio"
            value="all"
            label="&importAll.label;"
            accesskey="&importAll.accesskey;"
          />
          <separator />
          <label control="importFields">&select.label;</label>
          <separator class="thin" />
          <vbox class="indent">
            <radio
              id="addressbookRadio"
              value="addressbook"
              label="&importAddressbook.label;"
              accesskey="&importAddressbook.accesskey;"
            />
            <radio
              id="mailRadio"
              value="mail"
              label="&importMail.label;"
              accesskey="&importMail.accesskey;"
            />
            <radio
              id="feedsRadio"
              value="feeds"
              label="&importFeeds.label;"
              accesskey="&importFeeds.accesskey;"
            />
            <radio
              id="settingsRadio"
              value="settings"
              label="&importSettings.label;"
              accesskey="&importSettings.accesskey;"
            />
            <radio
              id="filtersRadio"
              value="filters"
              label="&importFilters.label;"
              accesskey="&importFilters.accesskey;"
            />
          </vbox>
        </radiogroup>
      </vbox>
      <vbox class="wizard-box" hidden="true">
        <vbox>
          <vbox id="moduleBox">
            <vbox>
              <label
                id="fileLabel"
                control="moduleList"
                value="&selectDescription.label;"
                accesskey="&selectDescription.accesskey;"
              />
              <label
                id="accountLabel"
                control="moduleList"
                value="&selectDescriptionB.label;"
                accesskey="&selectDescription.accesskey;"
                hidden="true"
              />
            </vbox>
            <richlistbox
              id="moduleList"
              height="200px"
              onselect="ImportSelectionChanged(); enableAdvance();"
            />
          </vbox>
          <label id="noModuleLabel" hidden="true">&noModulesFound.label;</label>
        </vbox>
        <vbox>
          <hbox flex="1">
            <description
              flex="1"
              control="moduleList"
              id="description"
              class="box-padded"
            />
          </hbox>
          <hbox
            id="acctName-box"
            flex="1"
            class="input-container"
            style="visibility: hidden"
          >
            <label
              control="acctName"
              class="box-padded"
              accesskey="&acctName.accesskey;"
              value="&acctName.label;"
            />
            <html:input
              id="acctName"
              type="text"
              class="input-inline"
              aria-labelledby="acctName"
            />
          </hbox>
        </vbox>
      </vbox>
      <vbox class="wizard-box" hidden="true">
        <spacer flex="1" />
        <html:fieldset>
          <label id="progressTitle" class="header">&title.label;</label>
          <label
            class="indent"
            id="progressStatus"
            value="&processing.label;"
          />
          <vbox class="box-padded">
            <html:progress id="progressMeter" value="5" max="100" />
          </vbox>
        </html:fieldset>
      </vbox>
      <vbox class="wizard-box" flex="1" hidden="true">
        <description id="status" />
        <hbox style="overflow: auto" class="inset" flex="1">
          <description id="results" flex="1" />
        </hbox>
      </vbox>
    </vbox>

    <separator />

    <separator class="groove" />

    <hbox class="box-padded">
      <spacer flex="1" />
      <button
        id="back"
        label="&back.label;"
        disabled="true"
        oncommand="back();"
      />
      <button
        id="forward"
        label="&forward.label;"
        nextval="&forward.label;"
        finishedval="&finish.label;"
        oncommand="next();"
      />
      <separator orient="vertical" />
      <button id="cancel" label="&cancel.label;" oncommand="window.close();" />
    </hbox>
  </html:body>
</html>