<?xml version="1.0" encoding="UTF-8"?>
<!--
  Loupe for Word.

  Three ways this reaches a lawyer, and only one of them needs a store listing:

    sideload      drop this file in a trusted-catalogue folder, or upload it in
                  Word's "Upload My Add-in". Nothing to review, nothing to pay
                  for. This is how a pilot starts.
    central       a firm's Microsoft 365 administrator deploys this manifest to
                  named users or the whole tenant. No store, no review. This is
                  how a firm rolls it out.
    AppSource     Microsoft's public catalogue. Needed only for strangers to
                  find it by searching, and it costs a review cycle.

  So the answer to "does this have to be in beta first" is no. A pilot and a
  firm-wide deployment both work from this file alone.
-->
<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>5f4d9b2e-7a31-4c88-9f10-2b6e8c14d7a3</Id>
  <Version>0.1.0.0</Version>
  <ProviderName>Loupe</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Loupe"/>
  <Description DefaultValue="Check every authority and every link in this document before it is filed."/>
  <IconUrl DefaultValue="https://loupe.legal/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://loupe.legal/assets/icon-64.png"/>
  <SupportUrl DefaultValue="https://loupe.legal/"/>

  <AppDomains>
    <AppDomain>https://loupe.legal</AppDomain>
  </AppDomains>

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

  <Requirements>
    <Sets DefaultMinVersion="1.3">
      <Set Name="WordApi" MinVersion="1.3"/>
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://loupe.legal/taskpane.html"/>
  </DefaultSettings>

  <!-- The document is read, and findings are written back as comments only when
       the lawyer asks for them. Nothing is changed without being asked. -->
  <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>
          <FunctionFile resid="Commands.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Loupe.Group">
                <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="Loupe.Check">
                  <Label resid="Check.Label"/>
                  <Supertip>
                    <Title resid="Check.Label"/>
                    <Description resid="Check.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>Loupe.Taskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://loupe.legal/assets/icon-16.png"/>
        <bt:Image id="Icon.32" DefaultValue="https://loupe.legal/assets/icon-32.png"/>
        <bt:Image id="Icon.80" DefaultValue="https://loupe.legal/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://loupe.legal/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://loupe.legal/taskpane.html"/>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://loupe.legal/"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Loupe is ready"/>
        <bt:String id="Group.Label" DefaultValue="Loupe"/>
        <bt:String id="Check.Label" DefaultValue="Check citations"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Open the Loupe pane from the Home tab to check every authority and link in this document."/>
        <bt:String id="Check.Tooltip" DefaultValue="Check every authority and every link in this document against the source that settles it."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
