<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:type="TaskPaneApp">
  <Id>a1b2c3d4-e5f6-7890-abcd-ef1234567890</Id>
  <Version>2.0.0.0</Version>
  <ProviderName>Heriade</ProviderName>
  <DefaultLocale>fr-FR</DefaultLocale>
  <DisplayName DefaultValue="Data Pivot" />
  <Description DefaultValue="Créez des tableaux croisés dynamiques à partir de vos sources de données Heriade" />
  <IconUrl DefaultValue="https://staging.addin.heriade.fr/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://staging.addin.heriade.fr/assets/icon-64.png" />
  <SupportUrl DefaultValue="https://staging.addin.heriade.fr" />

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

  <DefaultSettings>
    <SourceLocation DefaultValue="https://staging.addin.heriade.fr/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="Workbook">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title" />
            <Description resid="GetStarted.Description" />
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl" />
          </GetStarted>

          <FunctionFile resid="Taskpane.Url" />

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="DataPivot.MainGroup">
                <Label resid="Group.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="NewViewBtn">
                  <Label resid="NewView.Label" />
                  <Supertip>
                    <Title resid="NewView.Label" />
                    <Description resid="NewView.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>PivotTaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url" />
                  </Action>
                </Control>
                <Control xsi:type="Button" id="EditViewBtn">
                  <Label resid="EditView.Label" />
                  <Supertip>
                    <Title resid="EditView.Label" />
                    <Description resid="EditView.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>editCurrentView</FunctionName>
                  </Action>
                </Control>
                <Control xsi:type="Button" id="ManageDataBtn">
                  <Label resid="ManageData.Label" />
                  <Supertip>
                    <Title resid="ManageData.Label" />
                    <Description resid="ManageData.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>openManageData</FunctionName>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://staging.addin.heriade.fr/assets/icon-16.png" />
        <bt:Image id="Icon.32x32" DefaultValue="https://staging.addin.heriade.fr/assets/icon-32.png" />
        <bt:Image id="Icon.80x80" DefaultValue="https://staging.addin.heriade.fr/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Taskpane.Url" DefaultValue="https://staging.addin.heriade.fr/taskpane.html" />
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://staging.addin.heriade.fr" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Data Pivot" />
        <bt:String id="Group.Label" DefaultValue="Data Pivot" />
        <bt:String id="NewView.Label" DefaultValue="Nouvelle vue" />
        <bt:String id="EditView.Label" DefaultValue="Éditer vue" />
        <bt:String id="ManageData.Label" DefaultValue="Gérer les données" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Créez des tableaux croisés dynamiques avancés." />
        <bt:String id="NewView.Tooltip" DefaultValue="Ouvrir le panneau Data Pivot pour créer une vue pivot." />
        <bt:String id="EditView.Tooltip" DefaultValue="Modifier la vue pivot active sur la feuille courante." />
        <bt:String id="ManageData.Tooltip" DefaultValue="Gérer les environnements, tables et imports de données." />
      </bt:LongStrings>
    </Resources>

  </VersionOverrides>
</OfficeApp>
