<?xml version="1.0" encoding="UTF-8"?>
<!--
  TimeView for Office - Task pane add-in for Word, Excel and PowerPoint.

  Rendered per environment by tools/build-manifest.mjs; the double-brace tokens
  come from config/environments.js. Do not edit the generated manifest.

  Outlook is a separate add-in in outlook.template.xml, because an add-in only
  manifest cannot span add-in types. See docs/decisions.md 2.3.
-->
<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>17e9bb7b-9303-4624-80d8-62e9a50d6342</Id>
  <!-- Office rejects a manifest version below 1.0, independent of the npm package version. -->
  <Version>1.0.0.0</Version>
  <ProviderName>TimeSolutions A/S</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="TimeView (Test)"/>
  <Description DefaultValue="Save this document to a TimeView customer or task, and register time, without leaving Office."/>
  <IconUrl DefaultValue="https://office-add-in.timeviewtest.dk/assets/icon-80.png"/>
  <HighResolutionIconUrl DefaultValue="https://office-add-in.timeviewtest.dk/assets/icon-color-192.png"/>
  <SupportUrl DefaultValue="https://www.timesolutions.dk"/>

  <AppDomains>
    <AppDomain>https://office-add-in.timeviewtest.dk</AppDomain>
  </AppDomains>

  <!--
    Word, Excel and PowerPoint only. Without this element a task pane add-in is
    installable in every task pane host, which would include OneNote and Project
    where TimeView has no document to file.
  -->
  <Hosts>
    <Host Name="Document"/>
    <Host Name="Workbook"/>
    <Host Name="Presentation"/>
  </Hosts>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://office-add-in.timeviewtest.dk/taskpane.html"/>
  </DefaultSettings>

  <!-- Reading the file to upload it, and writing back the TimeView document stamp. -->
  <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.Url"/>
          </GetStarted>
          <FunctionFile resid="Commands.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="tvWordGroup">
                <Label resid="GroupLabel"/>
                <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="tvWordOpenPane">
                  <Label resid="TaskpaneButton.Label"/>
                  <Supertip>
                    <Title resid="TaskpaneButton.Label"/>
                    <Description resid="TaskpaneButton.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>TimeViewTaskPane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>

      <Host xsi:type="Workbook">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.Url"/>
          </GetStarted>
          <FunctionFile resid="Commands.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="tvExcelGroup">
                <Label resid="GroupLabel"/>
                <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="tvExcelOpenPane">
                  <Label resid="TaskpaneButton.Label"/>
                  <Supertip>
                    <Title resid="TaskpaneButton.Label"/>
                    <Description resid="TaskpaneButton.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>TimeViewTaskPane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>

      <Host xsi:type="Presentation">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.Url"/>
          </GetStarted>
          <FunctionFile resid="Commands.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="tvPowerPointGroup">
                <Label resid="GroupLabel"/>
                <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="tvPowerPointOpenPane">
                  <Label resid="TaskpaneButton.Label"/>
                  <Supertip>
                    <Title resid="TaskpaneButton.Label"/>
                    <Description resid="TaskpaneButton.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>TimeViewTaskPane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://office-add-in.timeviewtest.dk/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://office-add-in.timeviewtest.dk/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://office-add-in.timeviewtest.dk/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://office-add-in.timeviewtest.dk/taskpane.html"/>
        <bt:Url id="Commands.Url" DefaultValue="https://office-add-in.timeviewtest.dk/commands.html"/>
        <bt:Url id="GetStarted.Url" DefaultValue="https://www.timesolutions.dk"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="TimeView (Test)"/>
        <bt:String id="TaskpaneButton.Label" DefaultValue="TimeView (Test)"/>
        <bt:String id="GetStarted.Title" DefaultValue="TimeView (Test) is ready"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Save this document to a TimeView customer or task."/>
        <bt:String id="GetStarted.Description" DefaultValue="Open the TimeView pane from the Home tab to save this document to a customer or task."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
