<?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>05c0dbde-cf7e-4b7d-bbfd-b1a40c631778</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>cAI Legal</ProviderName>
  <DefaultLocale>vi-VN</DefaultLocale>
  <DisplayName DefaultValue="cAI Legal Workspace"/>
  <Description DefaultValue="Mở cAI Legal Workspace và làm việc trực tiếp với tài liệu Word."/>
  <IconUrl DefaultValue="https://app.cudan.me/_addin/assets/icon-32.png?v=2"/>
  <HighResolutionIconUrl DefaultValue="https://app.cudan.me/_addin/assets/icon-128.png?v=2"/>
  <SupportUrl DefaultValue="https://app.cudan.me/taskpane.html"/>
  <AppDomains>
    <AppDomain>https://app.cudan.me</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Document"/>
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="WordApi" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://app.cudan.me/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="Workspace.Group">
                <Label resid="Workspace.Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16"/>
                  <bt:Image size="32" resid="Icon.32"/>
                  <bt:Image size="80" resid="Icon.80"/>
                </Icon>
                <Control xsi:type="Button" id="Workspace.Open">
                  <Label resid="Workspace.Open.Label"/>
                  <Supertip>
                    <Title resid="Workspace.Open.Label"/>
                    <Description resid="Workspace.Open.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16"/>
                    <bt:Image size="32" resid="Icon.32"/>
                    <bt:Image size="80" resid="Icon.80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>cAILegalWorkspace.Taskpane</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <ExtensionPoint xsi:type="ContextMenu">
            <OfficeMenu id="ContextMenuText">
              <Control xsi:type="Button" id="Proposal.Accept">
                <Label resid="Proposal.Accept.Label"/>
                <Supertip>
                  <Title resid="Proposal.Accept.Label"/>
                  <Description resid="Proposal.Accept.Tooltip"/>
                </Supertip>
                <Icon>
                  <bt:Image size="16" resid="Icon.16"/>
                  <bt:Image size="32" resid="Icon.32"/>
                  <bt:Image size="80" resid="Icon.80"/>
                </Icon>
                <Action xsi:type="ExecuteFunction">
                  <FunctionName>acceptProposal</FunctionName>
                </Action>
              </Control>
              <Control xsi:type="Button" id="Proposal.Reject">
                <Label resid="Proposal.Reject.Label"/>
                <Supertip>
                  <Title resid="Proposal.Reject.Label"/>
                  <Description resid="Proposal.Reject.Tooltip"/>
                </Supertip>
                <Icon>
                  <bt:Image size="16" resid="Icon.16"/>
                  <bt:Image size="32" resid="Icon.32"/>
                  <bt:Image size="80" resid="Icon.80"/>
                </Icon>
                <Action xsi:type="ExecuteFunction">
                  <FunctionName>rejectProposal</FunctionName>
                </Action>
              </Control>
            </OfficeMenu>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16" DefaultValue="https://app.cudan.me/_addin/assets/icon-16.png?v=2"/>
        <bt:Image id="Icon.32" DefaultValue="https://app.cudan.me/_addin/assets/icon-32.png?v=2"/>
        <bt:Image id="Icon.80" DefaultValue="https://app.cudan.me/_addin/assets/icon-80.png?v=2"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Commands.Url" DefaultValue="https://app.cudan.me/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://app.cudan.me/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Workspace.Group.Label" DefaultValue="cAI Legal"/>
        <bt:String id="Workspace.Open.Label" DefaultValue="Mở bảng"/>
        <bt:String id="Proposal.Accept.Label" DefaultValue="Chấp nhận đề xuất cAI"/>
        <bt:String id="Proposal.Reject.Label" DefaultValue="Từ chối đề xuất cAI"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Workspace.Open.Tooltip" DefaultValue="Mở bảng cAI Legal bên cạnh tài liệu Word"/>
        <bt:String id="Proposal.Accept.Tooltip" DefaultValue="Chấp nhận các thay đổi của đề xuất cAI tại vị trí con trỏ"/>
        <bt:String id="Proposal.Reject.Tooltip" DefaultValue="Từ chối các thay đổi của đề xuất cAI tại vị trí con trỏ"/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>

