<?xml version="1.0" encoding="UTF-8"?>
<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"
  xsi:type="MailApp">

  <Id>3e9d51c6-8f4a-4b17-9d2e-51ac7b6f0d84</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Kontor</ProviderName>
  <DefaultLocale>de-DE</DefaultLocale>
  <DisplayName DefaultValue="Kontor für Outlook" />
  <Description DefaultValue="Zusammenfassen, antworten, Termine erkennen. Meldet sich am eigenen Server an." />
  <IconUrl DefaultValue="https://office.schnee.co.at/outlook/assets/icon-64.png" />
  <HighResolutionIconUrl DefaultValue="https://office.schnee.co.at/outlook/assets/icon-128.png" />
  <SupportUrl DefaultValue="https://office.schnee.co.at/" />

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>

  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.5" />
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://office.schnee.co.at/addins/outlook/taskpane.html" />
        <RequestedHeight>420</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://office.schnee.co.at/addins/outlook/taskpane.html" />
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>

  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
  </Rule>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.5">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="Taskpane.Url" />

          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="KontorLesen">
                <Label resid="Gruppe.Label" />
                <Control xsi:type="Button" id="KontorLesenKnopf">
                  <Label resid="Knopf.Label" />
                  <Supertip>
                    <Title resid="Knopf.Label" />
                    <Description resid="Knopf.Beschreibung" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16" />
                    <bt:Image size="32" resid="Icon.32" />
                    <bt:Image size="80" resid="Icon.80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SupportsPinning>true</SupportsPinning>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="KontorSchreiben">
                <Label resid="Gruppe.Label" />
                <Control xsi:type="Button" id="KontorSchreibenKnopf">
                  <Label resid="Knopf.Label" />
                  <Supertip>
                    <Title resid="Knopf.Label" />
                    <Description resid="Knopf.Beschreibung" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16" />
                    <bt:Image size="32" resid="Icon.32" />
                    <bt:Image size="80" resid="Icon.80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://office.schnee.co.at/outlook/assets/icon-16.png" />
        <bt:Image id="Icon.32" DefaultValue="https://office.schnee.co.at/outlook/assets/icon-32.png" />
        <bt:Image id="Icon.80" DefaultValue="https://office.schnee.co.at/outlook/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://office.schnee.co.at/addins/outlook/taskpane.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Gruppe.Label" DefaultValue="Kontor" />
        <bt:String id="Knopf.Label" DefaultValue="Kontor öffnen" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Knopf.Beschreibung" DefaultValue="Nachricht zusammenfassen, Antwort entwerfen, Termine erkennen" />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
