mailnews/base/content/msgAccountCentral.xhtml
author Paul Morris <paul@thunderbird.net>
Mon, 13 Jan 2020 11:50:24 -0500
changeset 37223 8d524b01c605ad4acba95b5924842fbe60e06c94
parent 36934 d58d6a653555e55d244c7a13beba7ba09ffa38df
child 37346 3d6cb3e7f57414dd148679609a8a70e33fcc3426
permissions -rw-r--r--
Bug 1608610 - Integrate messenger-overlay-accountCentral.xhtml. r=Fallen

<?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/accountCentral.css" type="text/css"?>
<?xml-stylesheet href="chrome://lightning-common/skin/accountCentral.css" type="text/css"?>

<!DOCTYPE window [
  <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
   %brandDTD;
  <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
   %globalDTD;
  <!ENTITY % acctCentralDTD SYSTEM "chrome://messenger/locale/msgAccountCentral.dtd">
   %acctCentralDTD;
  <!ENTITY % lightningDTD SYSTEM "chrome://lightning/locale/lightning.dtd">
   %lightningDTD;
]>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"
        onload="OnInit();">

  <stringbundle id="bundle_brand"
                src="chrome://branding/locale/brand.properties"/>
  <stringbundle id="bundle_messenger"
                src="chrome://messenger/locale/messenger.properties"/>
  <stringbundle id="bundle_prefs"
                src="chrome://messenger/locale/prefs.properties"/>
  <script src="chrome://messenger/content/accountUtils.js"/>
  <script src="chrome://messenger/content/commandglue.js"/>
  <script src="chrome://messenger/content/mailWindowOverlay.js"/>
  <script src="chrome://messenger/content/mailWindow.js"/>
  <script src="chrome://messenger/content/msgMail3PaneWindow.js"/>
  <script src="chrome://messenger/content/msgAccountCentral.js"/>
  <script src="chrome://messenger/content/mailCore.js"/>

  <hbox id="acctCentralLayout" flex="1">
    <vbox id="acctCentralRows" flex="2">
      <hbox id="acctCentralHeaderRow">
        <label id="accountCentralTitle"/>
      </hbox>
      <spacer id="acctCentralHeaderSpacer" flex="2"/>

      <hbox id="emailHeader" class="acctCentralTitleRow" collapsed="true">
        <hbox class="acctCentralRowTitleBox" flex="1">
          <description>&emailSectionHdr.label;</description>
        </hbox>
      </hbox>

      <spacer id="readMessagesSpacer" flex="1" collapsed="true"/>
      <hbox id="readMessages" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&readMsgsLink.label;"
                 chromedir="&locale.dir;"
                 onclick="ReadMessages();"/>
        </hbox>
      </hbox>

      <spacer id="composeMessageSpacer" flex="1" collapsed="true"/>
      <hbox id="composeMessage" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&composeMsgLink.label;"
                 chromedir="&locale.dir;"
                 onclick="ComposeAMessage(event);"/>
        </hbox>
      </hbox>

      <spacer id="junkSettingsMailSpacer" flex="1" collapsed="true"/>
      <hbox id="junkSettingsMail" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&junkSettings.label;"
                 onclick="JunkSettings();"/>
        </hbox>
      </hbox>

      <spacer id="newsHeaderSpacer" flex="1" collapsed="true"/>
      <hbox id="newsHeader" class="acctCentralTitleRow" collapsed="true">
        <hbox class="acctCentralRowTitleBox" flex="1">
          <description>&newsSectionHdr.label;</description>
        </hbox>
      </hbox>

      <spacer id="subscribeNewsgroupsSpacer" flex="1" collapsed="true"/>
      <hbox id="subscribeNewsgroups" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&subscribeNewsLink.label;"
                 chromedir="&locale.dir;"
                 onclick="Subscribe();"/>
        </hbox>
      </hbox>

      <spacer id="junkSettingsNewsSpacer" flex="1" collapsed="true"/>
      <hbox id="junkSettingsNews" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&junkSettings.label;"
                 onclick="JunkSettings();"/>
        </hbox>
      </hbox>

      <spacer id="rssHeaderSpacer" flex="1" collapsed="true"/>
      <hbox id="rssHeader" class="acctCentralTitleRow" collapsed="true">
        <hbox class="acctCentralRowTitleBox" flex="1">
          <description>&feedsSectionHdr.label;</description>
        </hbox>
      </hbox>

      <spacer id="subscribeRSSSpacer" flex="1" collapsed="true"/>
      <hbox id="subscribeRSS" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&subscribeFeeds.label;"
                 chromedir="&locale.dir;"
                 onclick="Subscribe();"/>
        </hbox>
      </hbox>

      <spacer id="messagesSectionSpacer" class="big" flex="5" collapsed="true"/>

      <hbox id="accountsHeader" class="acctCentralTitleRow" collapsed="true">
        <hbox class="acctCentralRowTitleBox" flex="1">
          <description>&accountsSectionHdr.label;</description>
        </hbox>
      </hbox>

      <spacer id="accountSettingsSpacer" flex="1" collapsed="true"/>
      <hbox id="accountSettings" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&settingsLink.label;"
                 chromedir="&locale.dir;"
                 onclick="ViewSettings(null);"/>
        </hbox>
      </hbox>

      <spacer id="createAccountSpacer" flex="1" collapsed="true"/>
      <hbox id="createAccount" class="acctCentralRow" collapsed="true">
        <hbox>
#ifdef MOZ_THUNDERBIRD
          <label class="acctCentralText"
                 value="&setupNewAcct.label;"
                 chromedir="&locale.dir;"/>
#else
          <label class="acctCentralText acctCentralLinkText"
                 value="&newAcctLink.label;"
                 chromedir="&locale.dir;"
                 onclick="CreateNewAccount();"/>
#endif
        </hbox>
      </hbox>
#ifdef MOZ_THUNDERBIRD
      <hbox id="createAccounts" class="acctCentralRow" collapsed="true">
        <vbox id="createAccountsList">
          <label id="createAccountMail"
                 class="acctCentralNewAcctText acctCentralLinkText"
                 value="&emailSectionHdr.label;"
                 chromedir="&locale.dir;"
                 onclick="CreateNewAccountTB('mail');"/>
          <label id="createAccountChat"
                 class="acctCentralNewAcctText acctCentralLinkText"
                 value="&chat.label;"
                 chromedir="&locale.dir;"
                 onclick="openIMAccountWizard();"/>
          <label id="createAccountNewsgroups"
                 class="acctCentralNewAcctText acctCentralLinkText"
                 value="&newsSectionHdr.label;"
                 chromedir="&locale.dir;"
                 onclick="CreateNewAccountTB('newsgroups');"/>
          <label id="createAccountRSS"
                 class="acctCentralNewAcctText acctCentralLinkText"
                 value="&feedsSectionHdr.label;"
                 chromedir="&locale.dir;"
                 onclick="CreateNewAccountTB('feeds');"/>
#ifdef HAVE_MOVEMAIL
          <label id="createAccountMovemail"
                 class="acctCentralNewAcctText acctCentralLinkText"
                 value="&movemail.label;"
                 chromedir="&locale.dir;"
                 onclick="CreateNewAccountTB('movemail');"/>
#endif
        </vbox>
      </hbox>
#endif

      <spacer id="calendar-newCalendar-separator" flex="1"/>
      <hbox id="calendar-newCalendar-row" class="acctCentralRow">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&lightning.acctCentral.newCalendar.label;"
                 onclick="window.parent.cal.window.openCalendarWizard(window);"/>
        </hbox>
      </hbox>

      <spacer id="accountsSectionSpacer" class="big" flex="5" collapsed="true"/>

      <hbox id="advancedFeaturesHeader" class="acctCentralTitleRow" collapsed="true">
        <hbox class="acctCentralRowTitleBox" flex="1">
          <description>&advFeaturesSectionHdr.label;</description>
        </hbox>
      </hbox>

      <spacer id="searchMessagesSpacer" flex="1" collapsed="true"/>
      <hbox id="searchMessages" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&searchMsgsLink.label;"
                 chromedir="&locale.dir;"
                 onclick="SearchMessages();"/>
        </hbox>
      </hbox>

      <spacer id="createFiltersSpacer" flex="1" collapsed="true"/>
      <hbox id="createFilters" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&filtersLink.label;"
                 chromedir="&locale.dir;"
                 onclick="CreateMsgFilters();"/>
        </hbox>
      </hbox>

      <spacer id="subscribeImapFoldersSpacer" flex="1" collapsed="true"/>
      <hbox id="subscribeImapFolders" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&subscribeImapFolders.label;"
                 chromedir="&locale.dir;"
                 onclick="Subscribe();"/>
        </hbox>
      </hbox>

      <spacer id="offlineSettingsSpacer" flex="1" collapsed="true"/>
      <hbox id="offlineSettings" class="acctCentralRow" collapsed="true">
        <hbox>
          <label class="acctCentralText acctCentralLinkText"
                 value="&offlineLink.label;"
                 chromedir="&locale.dir;"
                 onclick="ViewSettings('am-offline.xhtml');"/>
        </hbox>
      </hbox>
    </vbox>
    <vbox flex="3"/>
  </hbox>
</window>