<?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="TaskPaneApp">
  <Id>8149a9b7-65a6-48d0-bad7-d6d88c5afd01</Id>
  <Version>1.0.0.1</Version>
  <ProviderName>Dust</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Dust"/>
  <Description DefaultValue="Dust suite for Office."/>
  <IconUrl DefaultValue="https://dust.tt/static/favicon.png"/>
  <HighResolutionIconUrl DefaultValue="https://dust.tt/static/favicon@2x.png"/>
  <SupportUrl DefaultValue="https://dust.tt/home/support"/>
  <Hosts>
    <Host Name="Workbook"/>
    <Host Name="Document"/>
    <Host Name="Presentation"/>
  </Hosts>
  <!--
    Shared runtime with a long lifetime: closing the task pane only hides it, so reopening it is
    instant instead of reloading the app. Every <Runtime> resid MUST be the resid of the task pane
    URL of the ShowTaskpane actions, or Office does not load the shared runtime.
    https://learn.microsoft.com/en-us/office/dev/add-ins/develop/configure-your-add-in-to-use-a-shared-runtime
  -->
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="SharedRuntime" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://addins.dust.tt/office/taskpane.html"/>
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <Runtimes>
          <Runtime resid="Dust.Taskpane" lifetime="long"/>
        </Runtimes>
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Dust.Excel.Group">
                <Label resid="Dust.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Dust.Icon16"/>
                  <bt:Image size="32" resid="Dust.Icon32"/>
                  <bt:Image size="80" resid="Dust.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="Dust.Excel.Button">
                  <Label resid="Dust.Label"/>
                  <Supertip>
                    <Title resid="Dust.Label"/>
                    <Description resid="Dust.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Dust.Icon16"/>
                    <bt:Image size="32" resid="Dust.Icon32"/>
                    <bt:Image size="80" resid="Dust.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Dust.Taskpane"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
      <Host xsi:type="Document">
        <Runtimes>
          <Runtime resid="Dust.Taskpane" lifetime="long"/>
        </Runtimes>
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Dust.Word.Group">
                <Label resid="Dust.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Dust.Icon16"/>
                  <bt:Image size="32" resid="Dust.Icon32"/>
                  <bt:Image size="80" resid="Dust.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="Dust.Word.Button">
                  <Label resid="Dust.Label"/>
                  <Supertip>
                    <Title resid="Dust.Label"/>
                    <Description resid="Dust.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Dust.Icon16"/>
                    <bt:Image size="32" resid="Dust.Icon32"/>
                    <bt:Image size="80" resid="Dust.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Dust.Taskpane"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
      <Host xsi:type="Presentation">
        <Runtimes>
          <Runtime resid="Dust.Taskpane" lifetime="long"/>
        </Runtimes>
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Dust.PowerPoint.Group">
                <Label resid="Dust.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Dust.Icon16"/>
                  <bt:Image size="32" resid="Dust.Icon32"/>
                  <bt:Image size="80" resid="Dust.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="Dust.PowerPoint.Button">
                  <Label resid="Dust.Label"/>
                  <Supertip>
                    <Title resid="Dust.Label"/>
                    <Description resid="Dust.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Dust.Icon16"/>
                    <bt:Image size="32" resid="Dust.Icon32"/>
                    <bt:Image size="80" resid="Dust.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="Dust.Taskpane"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Dust.Icon16" DefaultValue="https://dust.tt/static/favicon.png"/>
        <bt:Image id="Dust.Icon32" DefaultValue="https://dust.tt/static/favicon@2x.png"/>
        <bt:Image id="Dust.Icon80" DefaultValue="https://dust.tt/static/favicon@3x.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Dust.Taskpane" DefaultValue="https://addins.dust.tt/office/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Dust.Label" DefaultValue="Dust"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Dust.Tooltip" DefaultValue="Open Dust."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
