<?xml version="1.0" encoding="UTF-8"?>
<!--
  Leadership Under Uncertainty — Word task pane add-in: the tradecraft review

  Install:
  - One person: Word > Insert > Add-ins > More Add-ins > My Add-ins > Upload My Add-in,
    then choose this file (docs/distribution/install-word-addin.md walks through it).
  - An organization: Microsoft 365 admin centre > Settings > Integrated apps > Upload custom apps.
  - No AppSource listing is needed for either.

  The pane is served from the research site (SourceLocation below) and needs
  no key: it uses the public review, POST /api/v1/public/tradecraft-review.
  A key set in the pane's settings switches it to the keyed route.
-->
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:type="TaskPaneApp">
  <Id>50e2fcff-5d68-47c1-aa58-f5fe9e4db0d1</Id>
  <Version>1.1.0</Version>
  <ProviderName>Leadership Under Uncertainty</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Tradecraft review" />
  <Description DefaultValue="Reads a note, memo or briefing against the analytic standards of Intelligence Community Directive 203, scores it, names what would improve it most and marks each paragraph that falls short." />
  <IconUrl DefaultValue="https://api.leadershipunderuncertainty.org/static/addin-icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://api.leadershipunderuncertainty.org/static/addin-icon-64.png" />
  <SupportUrl DefaultValue="https://leadershipunderuncertainty.org/about" />

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

  <DefaultSettings>
    <SourceLocation DefaultValue="https://api.leadershipunderuncertainty.org/addin/taskpane.html" />
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
                    xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
                    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="ReviewGroup">
                <Label resid="ReviewGroup.Label" />
                <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="ReviewButton">
                  <Label resid="ReviewButton.Label" />
                  <Supertip>
                    <Title resid="ReviewButton.Label" />
                    <Description resid="ReviewButton.Tooltip" />
                  </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>ReviewPane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://api.leadershipunderuncertainty.org/static/addin-icon-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://api.leadershipunderuncertainty.org/static/addin-icon-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://api.leadershipunderuncertainty.org/static/addin-icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://api.leadershipunderuncertainty.org/addin/taskpane.html" />
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://leadershipunderuncertainty.org/tradecraft-review" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="ReviewGroup.Label" DefaultValue="Leadership Under Uncertainty" />
        <bt:String id="ReviewButton.Label" DefaultValue="Review note" />
        <bt:String id="GetStarted.Title" DefaultValue="Tradecraft review" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="ReviewButton.Tooltip" DefaultValue="Read the selected text, or the whole document, against the analytic standards of ICD 203." />
        <bt:String id="GetStarted.Description" DefaultValue="Select a passage, or nothing for the whole document, and choose Review note on the Home tab. No key is needed." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
