<?xml version="1.0" encoding="UTF-8"?>
<!--
  Manifest PROD wtyczki Word — task pane celuje w cytado.com (nginx musi
  kierować /addin do Next — patrz deploy/nginx-cytado.conf). Wersja dev:
  manifest-dev.xml (te same GUID-y — nie sideloadować obu naraz).
-->
<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>b6f9d1c2-4a7e-4e2b-9c3d-8f5a2e1d0c47</Id>
  <Version>0.1.1.0</Version>
  <ProviderName>cytado</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="cytado — sources and footnotes"/>
  <Description DefaultValue="Find verified sources with real printed page numbers and insert them as proper Word footnotes."/>
  <IconUrl DefaultValue="https://cytado.com/addin/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://cytado.com/addin/icon-80.png"/>
  <SupportUrl DefaultValue="https://cytado.com/contact"/>

  <AppDomains>
    <AppDomain>https://cytado.com</AppDomain>
    <AppDomain>https://dev.torweb.pl</AppDomain>
  </AppDomains>

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

  <!-- Minimalnie WordApi 1.1 — przypisy (insertFootnote, WordApi 1.5)
       wykrywamy w runtime, żeby wtyczka instalowała się też na starszych
       Wordach i umiała powiedzieć, czego im brakuje. -->
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="WordApi" MinVersion="1.1"/>
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://cytado.com/addin"/>
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <Host xsi:type="Document">
        <DesktopFormFactor>
          <!-- Dymek powitalny po instalacji — pokazuje, gdzie jest przycisk,
               zanim user zacznie go szukać po wstążce. -->
          <GetStarted>
            <Title resid="Cytado.GetStarted.Title"/>
            <Description resid="Cytado.GetStarted.Desc"/>
            <LearnMoreUrl resid="Cytado.GetStarted.Url"/>
          </GetStarted>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Cytado.Group">
                <Label resid="Cytado.GroupLabel"/>
                <Icon>
                  <bt:Image size="16" resid="Cytado.Icon16"/>
                  <bt:Image size="32" resid="Cytado.Icon32"/>
                  <bt:Image size="80" resid="Cytado.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="Cytado.TaskpaneButton">
                  <Label resid="Cytado.ButtonLabel"/>
                  <Supertip>
                    <Title resid="Cytado.ButtonLabel"/>
                    <Description resid="Cytado.ButtonTip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Cytado.Icon16"/>
                    <bt:Image size="32" resid="Cytado.Icon32"/>
                    <bt:Image size="80" resid="Cytado.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Cytado.Taskpane</TaskpaneId>
                    <SourceLocation resid="Cytado.Taskpane.Url"/>
                    <!-- Panel da się przypiąć — zostaje otwarty przy zmianie
                         dokumentu, zamiast wymagać klikania od nowa. -->
                    <SupportsPinning>true</SupportsPinning>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Cytado.Icon16" DefaultValue="https://cytado.com/addin/icon-16.png"/>
        <bt:Image id="Cytado.Icon32" DefaultValue="https://cytado.com/addin/icon-32.png"/>
        <bt:Image id="Cytado.Icon80" DefaultValue="https://cytado.com/addin/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Cytado.Taskpane.Url" DefaultValue="https://cytado.com/addin"/>
        <bt:Url id="Cytado.GetStarted.Url" DefaultValue="https://cytado.com/"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Cytado.GroupLabel" DefaultValue="cytado"/>
        <bt:String id="Cytado.ButtonLabel" DefaultValue="Find source"/>
        <bt:String id="Cytado.GetStarted.Title" DefaultValue="cytado is ready"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Cytado.ButtonTip" DefaultValue="Select a sentence, find a verified source with a real page number, insert it as a Word footnote."/>
        <bt:String id="Cytado.GetStarted.Desc" DefaultValue="Open the Home tab and click Find source (cytado group) to open the panel. Pin it to keep it open while you write."/>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
</OfficeApp>
