<?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:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
  xsi:type="TaskPaneApp">

  <Id>1cb9a635-1268-499a-befa-59c41d113dd2</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>DWTECH SRL</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>

  <DisplayName DefaultValue="Office Code Formatter (BETA Version)"/>
  <Description DefaultValue="Format SQL and Python code in Excel and Word."/>
  <IconUrl DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/assets/icon-64.png"/>
  <SupportUrl DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/help"/>

  <AppDomains>
    <AppDomain>https://office-code-formatter-add-in.azurewebsites.net</AppDomain>
  </AppDomains>

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

  <DefaultSettings>
    <SourceLocation DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/taskpane.excel.html"/>
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides
    xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
    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="Commands.Url"/>

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="CommandsGroup.Excel">
                <Label resid="CommandsGroup.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="TaskpaneButton.Excel">
                  <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>ButtonIdExcel</TaskpaneId>
                    <SourceLocation resid="Taskpane.Excel.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>

      <Host xsi:type="Document">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
          </GetStarted>

          <FunctionFile resid="Commands.Url"/>

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="CommandsGroup.Word">
                <Label resid="CommandsGroup.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="TaskpaneButton.Word">
                  <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>ButtonIdWord</TaskpaneId>
                    <SourceLocation resid="Taskpane.Word.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/assets/icon-80.png"/>
      </bt:Images>

      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812"/>
        <bt:Url id="Commands.Url" DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/commands.html"/>
        <bt:Url id="Taskpane.Excel.Url" DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/taskpane.excel.html"/>
        <bt:Url id="Taskpane.Word.Url" DefaultValue="https://office-code-formatter-add-in.azurewebsites.net/taskpane.word.html"/>
      </bt:Urls>

      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Get started with Code Formatter"/>
        <bt:String id="CommandsGroup.Label" DefaultValue="Code Formatter"/>
        <bt:String id="TaskpaneButton.Label" DefaultValue="Show Formatter"/>
      </bt:ShortStrings>

      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Open the task pane from the Home tab to format SQL or Python code."/>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Open the code formatter task pane"/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>