<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
  xsi:type="MailApp">
  <Id>939e6cf5-3fe9-428e-976d-c5cbbaa2b447</Id>
  <Version>1.0.0.2</Version>
  <ProviderName>SecureCloud für Outlook</ProviderName>
  <DefaultLocale>de-DE</DefaultLocale>
  <DisplayName DefaultValue="SecureCloud für Outlook" />
  <Description DefaultValue="SecureCloud für Outlook Add-in" />
  <IconUrl DefaultValue="https://outlook-addin.securecloud.team/static/assets/Logo64.png" />
  <HighResolutionIconUrl
    DefaultValue="https://outlook-addin.securecloud.team/static/assets/Logo128.png" />
  <SupportUrl DefaultValue="https://support.securecloud.de/" />
  <AppDomains>
    <AppDomain>https://outlook-addin.securecloud.team</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.11" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://outlook-addin.securecloud.team/static/src/index.html" />
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </Rule>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides"
    xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1"
      xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.11">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <Runtimes>
            <Runtime resid="sc.Commands.Url">
              <Override type="javascript" resid="sc.CommandsJS.Url"/>
            </Runtime>
          </Runtimes>
          <DesktopFormFactor>
            <FunctionFile resid="sc.Commands.Url" />
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgComposeGroup">
                  <Label resid="GroupLabel" />
                  <Control xsi:type="Button" id="ActionButton">
                    <Label resid="SendLinkButton.Label" />
                    <Supertip>
                      <Title resid="SendLinkButton.Label" />
                      <Description resid="SendLinkButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="SecureCloud80.Icon" />
                      <bt:Image size="32" resid="SecureCloud80.Icon" />
                      <bt:Image size="80" resid="SecureCloud80.Icon" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>AttachFile</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="SettingsComposeButton">
                    <Label resid="SettingsComposeButton.Label" />
                    <Supertip>
                      <Title resid="SettingsComposeButton.Label" />
                      <Description resid="SettingsComposeButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="SecureCloud80.Icon" />
                      <bt:Image size="32" resid="SecureCloud80.Icon" />
                      <bt:Image size="80" resid="SecureCloud80.Icon" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>OpenSettings</FunctionName>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>

            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="GroupLabel" />
                  <Control xsi:type="Button" id="UploadAttachmentButton">
                    <Label resid="UploadAttachmentButton.Label" />
                    <Supertip>
                      <Title resid="UploadAttachmentButton.Label" />
                      <Description resid="UploadAttachmentButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="SecureCloud80.Icon" />
                      <bt:Image size="32" resid="SecureCloud80.Icon" />
                      <bt:Image size="80" resid="SecureCloud80.Icon" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>UploadAttachment</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="UploadMailButton">
                    <Label resid="UploadMailButton.Label" />
                    <Supertip>
                      <Title resid="UploadMailButton.Label" />
                      <Description resid="UploadMailButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="SecureCloud80.Icon" />
                      <bt:Image size="32" resid="SecureCloud80.Icon" />
                      <bt:Image size="80" resid="SecureCloud80.Icon" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>UploadMail</FunctionName>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="SettingsReadButton">
                    <Label resid="SettingsReadButton.Label" />
                    <Supertip>
                      <Title resid="SettingsReadButton.Label" />
                      <Description resid="SettingsReadButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="SecureCloud80.Icon" />
                      <bt:Image size="32" resid="SecureCloud80.Icon" />
                      <bt:Image size="80" resid="SecureCloud80.Icon" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>OpenSettings</FunctionName>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="LaunchEvent">
              <LaunchEvents>
                <LaunchEvent Type="OnMessageAttachmentsChanged"
                  FunctionName="onMessageAttachmentsChangedHandler" />
              </LaunchEvents>
              <SourceLocation resid="sc.Commands.Url" />
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="SecureCloud80.Icon"
            DefaultValue="https://outlook-addin.securecloud.team/static/assets/Logo32.png" />
        </bt:Images>
        <bt:Urls>
          <bt:Url id="sc.Commands.Url"
            DefaultValue="https://outlook-addin.securecloud.team/static/src/commands.html" />
          <bt:Url id="sc.CommandsJS.Url"
            DefaultValue="https://outlook-addin.securecloud.team/static/src/commands.js" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="SecureCloud" />
          <bt:String id="SendLinkButton.Label" DefaultValue="Freigabe-Link einfügen" />
          <bt:String id="SettingsComposeButton.Label" DefaultValue="Einstellungen" />
          <bt:String id="SettingsReadButton.Label" DefaultValue="Einstellungen" />
          <bt:String id="UploadAttachmentButton.Label" DefaultValue="Anhang sichern" />
          <bt:String id="UploadMailButton.Label" DefaultValue="Mail sichern" />
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="SendLinkButton.Tooltip"
            DefaultValue="Insert a share link into the message." />
          <bt:String id="SettingsComposeButton.Tooltip"
            DefaultValue="Open the settings for the compose view." />
          <bt:String id="SettingsReadButton.Tooltip"
            DefaultValue="Open the settings for the read view." />
          <bt:String id="UploadAttachmentButton.Tooltip"
            DefaultValue="Save attachments to the cloud." />
          <bt:String id="UploadMailButton.Tooltip"
            DefaultValue="Save the email as HTML to the cloud." />
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
