<?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>a5ae49f3-469e-408b-afb5-7134d3f6cdf1</Id>
  <Version>1.0.0.2</Version>
  <ProviderName>Legal Assistant</ProviderName>
  <DefaultLocale>en-AU</DefaultLocale>
  <DisplayName DefaultValue="AILA Dev"/>
  <Description DefaultValue="AI-powered legal document assistant for Microsoft Word"/>
  <IconUrl DefaultValue="https://word-addin.dev.legalassistant.au/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://word-addin.dev.legalassistant.au/assets/icon-64.png"/>
  <SupportUrl DefaultValue="https://word-addin.dev.legalassistant.au"/>
  <AppDomains>
    <AppDomain>https://word-addin.dev.legalassistant.au</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Document"/>
  </Hosts>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://word-addin.dev.legalassistant.au/taskpane.html"/>
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">

    <Hosts>
      <Host xsi:type="Document">
        <Runtimes>
          <Runtime resid="Taskpane.Url" lifetime="long" />
        </Runtimes>
        <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="CommandsGroup">
                <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">
                  <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>Office.AutoShowTaskpaneWithDocument</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <ExtensionPoint xsi:type="ContextMenu">
            <OfficeMenu id="ContextMenuText">
              <Control xsi:type="Menu" id="AiLegalAssistantMenu">
                <Label resid="AiLegalAssistantMenu.Label"/>
                <Supertip>
                  <Title resid="AiLegalAssistantMenu.Label"/>
                  <Description resid="AiLegalAssistantMenu.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>
                <Items>
                  <Item id="DraftFullDocumentItem">
                    <Label resid="DraftFullDocumentButton.Label"/>
                    <Supertip>
                      <Title resid="DraftFullDocumentButton.Label"/>
                      <Description resid="DraftFullDocumentButton.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>draftFullDocument</FunctionName>
                    </Action>
                  </Item>
                  <Item id="DraftOutlineItem">
                    <Label resid="DraftOutlineButton.Label"/>
                    <Supertip>
                      <Title resid="DraftOutlineButton.Label"/>
                      <Description resid="DraftOutlineButton.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>draftOutline</FunctionName>
                    </Action>
                  </Item>


                  <Item id="WriteClauseItem">
                    <Label resid="WriteClauseButton.Label"/>
                    <Supertip>
                      <Title resid="WriteClauseButton.Label"/>
                      <Description resid="WriteClauseButton.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>writeClause</FunctionName>
                    </Action>
                  </Item>
                  <Item id="WriteDefinitionItem">
                    <Label resid="WriteDefinitionButton.Label"/>
                    <Supertip>
                      <Title resid="WriteDefinitionButton.Label"/>
                      <Description resid="WriteDefinitionButton.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>writeDefinition</FunctionName>
                    </Action>
                  </Item>
                  <Item id="MakeShorterItem">
                    <Label resid="MakeShorterButton.Label"/>
                    <Supertip>
                      <Title resid="MakeShorterButton.Label"/>
                      <Description resid="MakeShorterButton.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>makeShorter</FunctionName>
                    </Action>
                  </Item>
                  <Item id="MakeLongerItem">
                    <Label resid="MakeLongerButton.Label"/>
                    <Supertip>
                      <Title resid="MakeLongerButton.Label"/>
                      <Description resid="MakeLongerButton.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>makeLonger</FunctionName>
                    </Action>
                  </Item>
                  <Item id="SimplifyLanguageItem">
                    <Label resid="SimplifyLanguageButton.Label"/>
                    <Supertip>
                      <Title resid="SimplifyLanguageButton.Label"/>
                      <Description resid="SimplifyLanguageButton.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>simplifyLanguage</FunctionName>
                    </Action>
                  </Item>
                  <Item id="ComplexifyLanguageItem">
                    <Label resid="ComplexifyLanguageButton.Label"/>
                    <Supertip>
                      <Title resid="ComplexifyLanguageButton.Label"/>
                      <Description resid="ComplexifyLanguageButton.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>complexifyLanguage</FunctionName>
                    </Action>
                  </Item>
                  <Item id="SummariseItem">
                    <Label resid="SummariseButton.Label"/>
                    <Supertip>
                      <Title resid="SummariseButton.Label"/>
                      <Description resid="SummariseButton.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>summarise</FunctionName>
                    </Action>
                  </Item>
                </Items>
              </Control>
            </OfficeMenu>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://word-addin.dev.legalassistant.au/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://word-addin.dev.legalassistant.au/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://word-addin.dev.legalassistant.au/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://word-addin.dev.legalassistant.au/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://word-addin.dev.legalassistant.au/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Get started with AI Legal Assistant!"/>
        <bt:String id="CommandsGroup.Label" DefaultValue="AILA Dev"/>
        <bt:String id="TaskpaneButton.Label" DefaultValue="AILA Dev"/>
         <bt:String id="AiLegalAssistantMenu.Label" DefaultValue="AILA Dev"/>

        <bt:String id="WriteClauseButton.Label" DefaultValue="Write clause"/>

        <bt:String id="WriteDefinitionButton.Label" DefaultValue="Write definition"/>
        <bt:String id="MakeShorterButton.Label" DefaultValue="Make shorter"/>
        <bt:String id="MakeLongerButton.Label" DefaultValue="Make longer"/>
        <bt:String id="SimplifyLanguageButton.Label" DefaultValue="Simplify language"/>
         <bt:String id="ComplexifyLanguageButton.Label" DefaultValue="Complexify language"/>
        <bt:String id="SummariseButton.Label" DefaultValue="Summarise"/>
        <bt:String id="DraftFullDocumentButton.Label" DefaultValue="Draft full document"/>
        <bt:String id="DraftOutlineButton.Label" DefaultValue="Document outline"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Your AI Legal Assistant loaded successfully. Go to the HOME tab and click the 'AI Legal Assistant' button to get started."/>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Open AI Legal Assistant"/>
         <bt:String id="AiLegalAssistantMenu.Tooltip" DefaultValue="AI Legal Assistant Options"/>

        <bt:String id="WriteClauseButton.Tooltip" DefaultValue="Write a legal clause"/>

        <bt:String id="WriteDefinitionButton.Tooltip" DefaultValue="Write a legal definition"/>
        <bt:String id="MakeShorterButton.Tooltip" DefaultValue="Make the selected text shorter"/>
        <bt:String id="MakeLongerButton.Tooltip" DefaultValue="Make the selected text longer"/>
        <bt:String id="SimplifyLanguageButton.Tooltip" DefaultValue="Simplify the language"/>
        <bt:String id="ComplexifyLanguageButton.Tooltip" DefaultValue="Complexify the language"/>
        <bt:String id="SummariseButton.Tooltip" DefaultValue="Summarise the selected text"/>
        <bt:String id="DraftFullDocumentButton.Tooltip" DefaultValue="Draft the entire document based on selection"/>
        <bt:String id="DraftOutlineButton.Tooltip" DefaultValue="Generate a structured outline for the document"/>
      </bt:LongStrings>

    </Resources>
    <WebApplicationInfo>
      <Id>887599b7-2e13-423f-beb4-769fe1be4218</Id>
      <Resource>api://legalassistant.au/887599b7-2e13-423f-beb4-769fe1be4218</Resource>
      <Scopes>
        <Scope>User.Read</Scope>
        <Scope>profile</Scope>
        <Scope>openid</Scope>
      </Scopes>
    </WebApplicationInfo>
  </VersionOverrides>
</OfficeApp>
