<?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"
  xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
  xsi:type="TaskPaneApp">

  <Id>b64f8288-7a0e-4059-803e-f599ad8f3423</Id>
  <Version>0.1.0.0</Version>
  <ProviderName>Interaktiv Office Course</ProviderName>
  <DefaultLocale>de-DE</DefaultLocale>
  <DisplayName DefaultValue="Interaktive Office-Kurse" />
  <Description DefaultValue="Interaktive Kurse für Microsoft Office – direkt im Seitenpanel, mit automatischer Prüfung der Übungen im Dokument." />
  <IconUrl DefaultValue="office-interaktive.david-hock-tech-solutions.cloud/app/icons/icon-64.png" />
  <HighResolutionIconUrl DefaultValue="office-interaktive.david-hock-tech-solutions.cloud/app/icons/icon-128.png" />
  <SupportUrl DefaultValue="office-interaktive.david-hock-tech-solutions.cloud/" />

  <Hosts>
    <Host Name="Document" />
    <Host Name="Presentation" />
    <Host Name="Workbook" />
  </Hosts>

  <!--
    Kein <Requirements>-Block: Er gilt für alle Hosts gemeinsam, und ein
    Office-Host muss sämtliche aufgeführten Anforderungssätze erfüllen, um das
    Add-in überhaupt installieren zu dürfen. Word kennt "PowerPointApi" nicht,
    PowerPoint kein "WordApi" und Excel weder das eine noch das andere –
    zusammen aufgeführt wäre das Add-in also nirgends installierbar, und je nur
    einer der Sätze würde die übrigen Hosts aussperren. Ein Attribut, das ein
    Oder ausdrücken würde, gibt es nicht: <Sets> kennt nur DefaultMinVersion.

    Alle drei Kurse prüfen die von ihnen benötigten Schnittstellen deshalb zur
    Laufzeit über Office.context.requirements.isSetSupported – siehe
    src/office/requirements.ts sowie word/capabilities.ts,
    powerpoint/capabilities.ts und excel/capabilities.ts. Was eine
    Office-Version nicht kann, wird in der betroffenen Aufgabe offen benannt,
    statt still übergangen zu werden.
  -->

  <DefaultSettings>
    <SourceLocation DefaultValue="office-interaktive.david-hock-tech-solutions.cloud/app/index.html" />
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Document">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="KursGruppe">
                <Label resid="Kurs.GroupLabel" />
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16" />
                  <bt:Image size="32" resid="Icon.32x32" />
                  <bt:Image size="80" resid="Icon.80x80" />
                </Icon>
                <Control xsi:type="Button" id="KursOeffnenButton">
                  <Label resid="Kurs.ButtonLabel" />
                  <Supertip>
                    <Title resid="Kurs.ButtonLabel" />
                    <Description resid="Kurs.ButtonTooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16" />
                    <bt:Image size="32" resid="Icon.32x32" />
                    <bt:Image size="80" resid="Icon.80x80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>KursTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
      <Host xsi:type="Presentation">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="KursGruppe">
                <Label resid="Kurs.GroupLabel" />
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16" />
                  <bt:Image size="32" resid="Icon.32x32" />
                  <bt:Image size="80" resid="Icon.80x80" />
                </Icon>
                <Control xsi:type="Button" id="KursOeffnenButton">
                  <Label resid="Kurs.ButtonLabel" />
                  <Supertip>
                    <Title resid="Kurs.ButtonLabel" />
                    <Description resid="Kurs.ButtonTooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16" />
                    <bt:Image size="32" resid="Icon.32x32" />
                    <bt:Image size="80" resid="Icon.80x80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>KursTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
      <Host xsi:type="Workbook">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="KursGruppe">
                <Label resid="Kurs.GroupLabel" />
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16" />
                  <bt:Image size="32" resid="Icon.32x32" />
                  <bt:Image size="80" resid="Icon.80x80" />
                </Icon>
                <Control xsi:type="Button" id="KursOeffnenButton">
                  <Label resid="Kurs.ButtonLabel" />
                  <Supertip>
                    <Title resid="Kurs.ButtonLabel" />
                    <Description resid="Kurs.ButtonTooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16" />
                    <bt:Image size="32" resid="Icon.32x32" />
                    <bt:Image size="80" resid="Icon.80x80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>KursTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="office-interaktive.david-hock-tech-solutions.cloud/app/icons/icon-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="office-interaktive.david-hock-tech-solutions.cloud/app/icons/icon-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="office-interaktive.david-hock-tech-solutions.cloud/app/icons/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="office-interaktive.david-hock-tech-solutions.cloud/" />
        <bt:Url id="Taskpane.Url" DefaultValue="office-interaktive.david-hock-tech-solutions.cloud/app/index.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Interaktive Office-Kurse sind bereit." />
        <bt:String id="Kurs.GroupLabel" DefaultValue="Kurse" />
        <bt:String id="Kurs.ButtonLabel" DefaultValue="Kurs öffnen" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Öffne den Kurs über die Schaltfläche „Kurs öffnen“ auf der Registerkarte „Start“." />
        <bt:String id="Kurs.ButtonTooltip" DefaultValue="Öffnet den passenden interaktiven Kurs im Seitenpanel." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
