<?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>a8f3c2e1-4b5d-6e7f-8091-a2b3c4d5e6f7</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>BankerAI</ProviderName>
  <DefaultLocale>zh-CN</DefaultLocale>
  <DisplayName DefaultValue="bankerai"/>
  <Description DefaultValue="BankerAI 内容润色 — 选中 Word 文字一键智能润色，提升专业表达。"/>
  <IconUrl DefaultValue="https://addin.bankerai.cn/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://addin.bankerai.cn/assets/icon-80.png"/>
  <SupportUrl DefaultValue="https://addin.bankerai.cn"/>

    <AppDomains>
    <AppDomain>https://addin.bankerai.cn</AppDomain>
  </AppDomains>

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

  <DefaultSettings>
    <SourceLocation DefaultValue="https://addin.bankerai.cn/src/taskpane/taskpane.html"/>
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Document">
        <DesktopFormFactor>
          <FunctionFile resid="Commands.Url"/>

          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="BankerAIGroup">
                <Label resid="BankerAIGroup.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="PolishButton">
                  <Label resid="PolishButton.Label"/>
                  <Supertip>
                    <Title resid="PolishButton.Label"/>
                    <Description resid="PolishButton.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="IconPolish.16x16"/>
                    <bt:Image size="32" resid="IconPolish.32x32"/>
                    <bt:Image size="80" resid="IconPolish.80x80"/>
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>polishSelection</FunctionName>
                  </Action>
                </Control>

                <Control xsi:type="Button" id="TaskpaneButton">
                  <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>BankerAITaskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://addin.bankerai.cn/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://addin.bankerai.cn/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://addin.bankerai.cn/assets/icon-80.png"/>
        <bt:Image id="IconPolish.16x16" DefaultValue="https://addin.bankerai.cn/assets/icon-polish-16.png"/>
        <bt:Image id="IconPolish.32x32" DefaultValue="https://addin.bankerai.cn/assets/icon-polish-32.png"/>
        <bt:Image id="IconPolish.80x80" DefaultValue="https://addin.bankerai.cn/assets/icon-polish-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://addin.bankerai.cn/src/commands/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://addin.bankerai.cn/src/taskpane/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="BankerAIGroup.Label" DefaultValue="BankerAI"/>
        <bt:String id="PolishButton.Label" DefaultValue="一键润色"/>
        <bt:String id="TaskpaneButton.Label" DefaultValue="BankerAI"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="PolishButton.Tooltip" DefaultValue="润色当前选中的文字，保持原意并改善专业表达。"/>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="打开 BankerAI 面板并润色选中内容。"/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
