<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
  Alba 365 — Microsoft Office Add-in manifest
  Schema: https://learn.microsoft.com/en-us/office/dev/add-ins/develop/add-in-manifests

  This is the v1.1 OfficeApp XML manifest format. Microsoft is rolling out
  a unified JSON manifest for cross-host (Office + Teams + Outlook) add-ins;
  for production submission we'll mirror this to manifest.json when AppSource
  requires it. The XML form works for direct sideload, network share publish,
  and AppSource submission for Word + Excel + PowerPoint today.

  Hosts: Word, Excel, PowerPoint (desktop, web, iPad)

  Two ways to install:
    1. Direct sideload: Insert > My Add-ins > Upload My Add-in > pick this file
    2. Network-share catalog: drop this file in a UNC path that's added under
       File > Options > Trust Center > Trust Center Settings > Trusted Add-in
       Catalogs

  The pdf.alba365.org placeholder is replaced by dev-server.js for local dev
  (resolves to https://localhost:3030) and is hard-coded to alba365.com for
  the production-ship manifest in build/manifest.prod.xml.
-->
<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>5c4f9a26-7b8e-4d12-a3f0-91ec4d2b6f01</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>ED Tech Solutions Inc.</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Alba 365" />
  <Description DefaultValue="Save your Word, Excel, or PowerPoint document as PDF in your Alba 365 library." />

  <IconUrl DefaultValue="https://pdf.alba365.org/office-addin/icons/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://pdf.alba365.org/office-addin/icons/icon-80.png" />
  <SupportUrl DefaultValue="https://pdf.alba365.org/help/office-addin" />

  <AppDomains>
    <AppDomain>https://pdf.alba365.org</AppDomain>
  </AppDomains>

  <Hosts>
    <Host Name="Document" />     <!-- Word -->
    <Host Name="Workbook" />     <!-- Excel -->
    <Host Name="Presentation" /> <!-- PowerPoint -->
  </Hosts>

  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="DocumentEvents" MinVersion="1.1"/>
    </Sets>
  </Requirements>

  <DefaultSettings>
    <SourceLocation DefaultValue="https://pdf.alba365.org/office-addin/taskpane.html" />
  </DefaultSettings>

  <Permissions>ReadWriteDocument</Permissions>

  <!-- Ribbon button + custom taskpane in modern hosts. -->
  <VersionOverrides
    xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
    xsi:type="VersionOverridesV1_0">

    <Hosts>
      <!-- Word ribbon -->
      <Host xsi:type="Document">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="Alba.GetStarted.Title"/>
            <Description resid="Alba.GetStarted.Description"/>
            <LearnMoreUrl resid="Alba.LearnMoreUrl"/>
          </GetStarted>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Alba.Group">
                <Label resid="Alba.Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Alba.Icon16"/>
                  <bt:Image size="32" resid="Alba.Icon32"/>
                  <bt:Image size="80" resid="Alba.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="Alba.SaveButton">
                  <Label resid="Alba.Save.Label"/>
                  <Supertip>
                    <Title resid="Alba.Save.Title"/>
                    <Description resid="Alba.Save.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Alba.Icon16"/>
                    <bt:Image size="32" resid="Alba.Icon32"/>
                    <bt:Image size="80" resid="Alba.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Alba.Taskpane</TaskpaneId>
                    <SourceLocation resid="Alba.Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>

      <!-- Excel ribbon -->
      <Host xsi:type="Workbook">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="Alba.GetStarted.Title"/>
            <Description resid="Alba.GetStarted.Description"/>
            <LearnMoreUrl resid="Alba.LearnMoreUrl"/>
          </GetStarted>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Alba.Group">
                <Label resid="Alba.Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Alba.Icon16"/>
                  <bt:Image size="32" resid="Alba.Icon32"/>
                  <bt:Image size="80" resid="Alba.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="Alba.SaveButtonXl">
                  <Label resid="Alba.Save.Label"/>
                  <Supertip>
                    <Title resid="Alba.Save.Title"/>
                    <Description resid="Alba.Save.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Alba.Icon16"/>
                    <bt:Image size="32" resid="Alba.Icon32"/>
                    <bt:Image size="80" resid="Alba.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Alba.Taskpane</TaskpaneId>
                    <SourceLocation resid="Alba.Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>

      <!-- PowerPoint ribbon -->
      <Host xsi:type="Presentation">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="Alba.GetStarted.Title"/>
            <Description resid="Alba.GetStarted.Description"/>
            <LearnMoreUrl resid="Alba.LearnMoreUrl"/>
          </GetStarted>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="Alba.Group">
                <Label resid="Alba.Group.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Alba.Icon16"/>
                  <bt:Image size="32" resid="Alba.Icon32"/>
                  <bt:Image size="80" resid="Alba.Icon80"/>
                </Icon>
                <Control xsi:type="Button" id="Alba.SaveButtonPpt">
                  <Label resid="Alba.Save.Label"/>
                  <Supertip>
                    <Title resid="Alba.Save.Title"/>
                    <Description resid="Alba.Save.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Alba.Icon16"/>
                    <bt:Image size="32" resid="Alba.Icon32"/>
                    <bt:Image size="80" resid="Alba.Icon80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Alba.Taskpane</TaskpaneId>
                    <SourceLocation resid="Alba.Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="Alba.Icon16" DefaultValue="https://pdf.alba365.org/office-addin/icons/icon-16.png"/>
        <bt:Image id="Alba.Icon32" DefaultValue="https://pdf.alba365.org/office-addin/icons/icon-32.png"/>
        <bt:Image id="Alba.Icon80" DefaultValue="https://pdf.alba365.org/office-addin/icons/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Alba.Taskpane.Url" DefaultValue="https://pdf.alba365.org/office-addin/taskpane.html"/>
        <bt:Url id="Alba.LearnMoreUrl" DefaultValue="https://pdf.alba365.org/help/office-addin"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="Alba.GetStarted.Title" DefaultValue="Save to Alba 365"/>
        <bt:String id="Alba.Group.Label" DefaultValue="Alba 365"/>
        <bt:String id="Alba.Save.Label" DefaultValue="Save to Alba"/>
        <bt:String id="Alba.Save.Title" DefaultValue="Save to Alba 365"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="Alba.GetStarted.Description" DefaultValue="Convert this document to PDF and open it in your Alba 365 library."/>
        <bt:String id="Alba.Save.Tooltip" DefaultValue="Convert this document to a PDF and add it to your Alba 365 library — no save dialog."/>
      </bt:LongStrings>
    </Resources>

  </VersionOverrides>

</OfficeApp>
