<?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>837e5a83-1445-4bdc-91e4-5f17ecd08e61</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Rihards Edels</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Find by Meaning" />
  <Description DefaultValue="Ctrl+F that understands what you mean. Describe a passage in plain words and jump to it. It shows your own text and never writes anything." />
  <IconUrl DefaultValue="https://findbymeaning.pages.dev/assets/icon-64.png" />
  <HighResolutionIconUrl DefaultValue="https://findbymeaning.pages.dev/assets/icon-128.png" />
  <SupportUrl DefaultValue="https://findbymeaning.pages.dev/support" />
  <AppDomains>
    <AppDomain>https://findbymeaning.pages.dev</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Document" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="WordApi" MinVersion="1.3" />
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://findbymeaning.pages.dev/taskpane" />
  </DefaultSettings>
  <!-- Word.run requires ReadWriteDocument even for code that only reads and selects text. The add-in never writes to the document (a test enforces it). -->
  <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="Taskpane.Url" />
          </GetStarted>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="JevGroup">
                <Label resid="Group.Label" />
                <Icon>
                  <bt:Image size="16" resid="Icon.16" />
                  <bt:Image size="32" resid="Icon.32" />
                  <bt:Image size="80" resid="Icon.80" />
                </Icon>
                <Control xsi:type="Button" id="JevTaskpaneButton">
                  <Label resid="Button.Label" />
                  <Supertip>
                    <Title resid="Button.Label" />
                    <Description resid="Button.Tooltip" />
                  </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">
                    <TaskpaneId>JevTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://findbymeaning.pages.dev/assets/icon-16.png" />
        <bt:Image id="Icon.32" DefaultValue="https://findbymeaning.pages.dev/assets/icon-32.png" />
        <bt:Image id="Icon.80" DefaultValue="https://findbymeaning.pages.dev/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://findbymeaning.pages.dev/taskpane" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Find by meaning" />
        <bt:String id="Group.Label" DefaultValue="Find by Meaning" />
        <bt:String id="Button.Label" DefaultValue="Find by meaning" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Search this document by meaning. Open it from the Home tab." />
        <bt:String id="Button.Tooltip" DefaultValue="Open the Find by meaning pane" />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
