<?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"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
  xsi:type="TaskPaneApp">

  <Id>f2c5a1d0-6b4e-4ed8-9a3d-0f8e6b7c2a11</Id>
  <Version>1.0.1.0</Version>
  <ProviderName>AI for Excel</ProviderName>
  <DefaultLocale>zh-CN</DefaultLocale>
  <DisplayName DefaultValue="AI for Excel" />
  <Description DefaultValue="适用于 Microsoft Excel 的开源多模型 AI 侧边栏插件。" />
  <IconUrl DefaultValue="https://your-ai-for-excel-domain.example.com/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://your-ai-for-excel-domain.example.com/assets/icon-80.png" />
  <SupportUrl DefaultValue="https://github.com/your-org/ai-for-excel" />

  <Hosts>
    <Host Name="Workbook" />
  </Hosts>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://your-ai-for-excel-domain.example.com/src/taskpane.html" />
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Workbook">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="AiForExcelGroup">
                <Label resid="GroupLabel" />
                <Icon>
                  <bt:Image size="16" resid="Icon16" />
                  <bt:Image size="32" resid="Icon32" />
                  <bt:Image size="80" resid="Icon80" />
                </Icon>
                <Control xsi:type="Button" id="OpenAiForExcelButton">
                  <Label resid="ButtonLabel" />
                  <Supertip>
                    <Title resid="ButtonLabel" />
                    <Description resid="ButtonDesc" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon16" />
                    <bt:Image size="32" resid="Icon32" />
                    <bt:Image size="80" resid="Icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>AiForExcelTaskPane</TaskpaneId>
                    <SourceLocation resid="TaskpaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon16" DefaultValue="https://your-ai-for-excel-domain.example.com/assets/icon-16.png" />
        <bt:Image id="Icon32" DefaultValue="https://your-ai-for-excel-domain.example.com/assets/icon-32.png" />
        <bt:Image id="Icon80" DefaultValue="https://your-ai-for-excel-domain.example.com/assets/icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="TaskpaneUrl" DefaultValue="https://your-ai-for-excel-domain.example.com/src/taskpane.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GroupLabel" DefaultValue="AI for Excel" />
        <bt:String id="ButtonLabel" DefaultValue="AI for Excel" />
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="ButtonDesc" DefaultValue="打开 AI for Excel 侧边栏" />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
