<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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/1.0"
  xsi:type="MailApp">

  <Id>f36f086c-d53c-489e-a381-b1a3a10227c9</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>LawManage</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="LawManage" />
  <Description DefaultValue="Link emails to LawManage matters, manage contacts, and open matter documents directly from Outlook." />

  <IconUrl DefaultValue="https://outlook-uat.lawmanage.app/assets/icon-64.png" />
  <HighResolutionIconUrl DefaultValue="https://outlook-uat.lawmanage.app/assets/icon-128.png" />
  <SupportUrl DefaultValue="https://lawmanage.app/support" />

  <AppDomains>
    <AppDomain>https://outlook-uat.lawmanage.app</AppDomain>
    <AppDomain>https://login.microsoftonline.com</AppDomain>
  </AppDomains>

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

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

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://outlook-uat.lawmanage.app/taskpane.html" />
        <RequestedHeight>450</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">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">

      <Requirements>
        <bt:Sets DefaultMinVersion="1.8">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>

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

            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="GroupLabel" />
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <Label resid="ReadButton.Label" />
                    <Supertip>
                      <Title resid="ReadButton.Label" />
                      <Description resid="ReadButton.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">
                      <SourceLocation resid="Taskpane.Url" />
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                  <Control xsi:type="Button" id="msgReadFileButton">
                    <Label resid="FileButton.Label" />
                    <Supertip>
                      <Title resid="FileButton.Label" />
                      <Description resid="FileButton.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="ExecuteFunction">
                      <FunctionName>fileToSuggestedMatter</FunctionName>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>

            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgComposeGroup">
                  <Label resid="GroupLabel" />
                  <Control xsi:type="Button" id="msgComposeOpenPaneButton">
                    <Label resid="ComposeButton.Label" />
                    <Supertip>
                      <Title resid="ComposeButton.Label" />
                      <Description resid="ComposeButton.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">
                      <SourceLocation resid="Taskpane.Url" />
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>

          </DesktopFormFactor>
        </Host>
      </Hosts>

      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16x16" DefaultValue="https://outlook-uat.lawmanage.app/assets/icon-16.png" />
          <bt:Image id="Icon.32x32" DefaultValue="https://outlook-uat.lawmanage.app/assets/icon-32.png" />
          <bt:Image id="Icon.80x80" DefaultValue="https://outlook-uat.lawmanage.app/assets/icon-80.png" />
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://outlook-uat.lawmanage.app/commands.html" />
          <bt:Url id="Taskpane.Url" DefaultValue="https://outlook-uat.lawmanage.app/taskpane.html" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="GroupLabel" DefaultValue="LawManage" />
          <bt:String id="ReadButton.Label" DefaultValue="Open Matters" />
          <bt:String id="FileButton.Label" DefaultValue="File to matter" />
          <bt:String id="ComposeButton.Label" DefaultValue="Matters" />
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="ReadButton.Tooltip" DefaultValue="Open the LawManage pane to link this email to a matter." />
          <bt:String id="FileButton.Tooltip" DefaultValue="File this email to the sender's matter in one click, or be pointed at the pane when the match isn't certain." />
          <bt:String id="ComposeButton.Tooltip" DefaultValue="Open the LawManage pane to pick recipients from your contacts and link this email to a matter." />
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>

</OfficeApp>
