<?xml version="1.0" encoding="UTF-8"?>
<!--
  A Dog Named Rover - Outlook add-in manifest (XML / "add-in only" format).
  Works on Outlook Classic (Windows), New Outlook (Windows), and Outlook on the web.

  URLs point at the production site (https://adognamedrover.com/addin).
  For local testing, run `node tools/serve.js` then:
      node tools/set-base-url.js https://localhost:3000/addin
  To switch back to production:
      node tools/set-base-url.js https://adognamedrover.com/addin
-->
<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:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides"
  xsi:type="MailApp">

  <Id>30e083a7-0908-4eaa-9f88-f2e07f1f6cdc</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Paras</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="A Dog Named Rover" />
  <Description DefaultValue="A super happy red dog lives on your ribbon. Click him for a friendly Hello, World. Woof!" />
  <IconUrl DefaultValue="https://adognamedrover.com/addin/assets/dog-64.png" />
  <HighResolutionIconUrl DefaultValue="https://adognamedrover.com/addin/assets/dog-128.png" />
  <SupportUrl DefaultValue="https://adognamedrover.com/" />

  <AppDomains>
    <AppDomain>https://adognamedrover.com</AppDomain>
  </AppDomains>

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

  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.3" />
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://adognamedrover.com/addin/src/commands.html" />
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>

  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
  </Rule>

  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>

    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="Commands.Url" />

          <!-- Button shows while reading a message -->
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="roverGroupRead">
                <Label resid="GroupLabel" />
                <Control xsi:type="Button" id="roverButtonRead">
                  <Label resid="ButtonLabel" />
                  <Supertip>
                    <Title resid="ButtonLabel" />
                    <Description resid="ButtonTip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon16" />
                    <bt:Image size="32" resid="Icon32" />
                    <bt:Image size="80" resid="Icon80" />
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>showHelloWorld</FunctionName>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>

          <!-- Button shows while composing a message -->
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="roverGroupCompose">
                <Label resid="GroupLabel" />
                <Control xsi:type="Button" id="roverButtonCompose">
                  <Label resid="ButtonLabel" />
                  <Supertip>
                    <Title resid="ButtonLabel" />
                    <Description resid="ButtonTip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon16" />
                    <bt:Image size="32" resid="Icon32" />
                    <bt:Image size="80" resid="Icon80" />
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>showHelloWorld</FunctionName>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon16" DefaultValue="https://adognamedrover.com/addin/assets/dog-16.png" />
        <bt:Image id="Icon32" DefaultValue="https://adognamedrover.com/addin/assets/dog-32.png" />
        <bt:Image id="Icon80" DefaultValue="https://adognamedrover.com/addin/assets/dog-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://adognamedrover.com/addin/src/commands.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="Rover" />
        <bt:String id="ButtonLabel" DefaultValue="Rover" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="ButtonTip" DefaultValue="Woof! Click Rover for a Hello, World." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
