<?xml version="1.0" encoding="UTF-8"?>
<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">

  <!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override provided. -->

  <!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. -->
  <Id>e849ddb8-6bbd-4833-bd4b-59030099d63e</Id>

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <Version>1.0.0.0</Version>
  <ProviderName>JGraph Ltd</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. -->
  <DisplayName DefaultValue="draw.io" />
  <Description DefaultValue="Adds draw.io diagrams from OneDrive">
  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
  	  <Override Locale="de-de" Value="draw.io Diagramme von OneDrive einfügen"/>
  </Description>

  <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
  <IconUrl DefaultValue="https://test.draw.io/images/favicon-32x32.png" />
  <HighResolutionIconUrl DefaultValue="https://test.draw.io/images/drawlogo80.png"/>

  <SupportUrl DefaultValue="https://desk.draw.io/" />

  <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. -->
  <AppDomains>
    <AppDomain>https://login.microsoftonline.com</AppDomain>
    <AppDomain>https://exp.draw.io</AppDomain>
    <AppDomain>https://graph.microsoft.com</AppDomain>
    <AppDomain>https://test.draw.io</AppDomain>
  </AppDomains>
  <!--End Basic Settings. -->

  <!--Begin TaskPane Mode integration. This section is used if there are no VersionOverrides or if the Office client version does not support add-in commands. -->
  <Hosts>
    <Host Name="Document" />
    <Host Name="Presentation" />
    <Host Name="Workbook" />
  </Hosts>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://test.draw.io/connect/office365/index.html" />
  </DefaultSettings>
  <!-- End TaskPane Mode integration.  -->

  <Permissions>ReadWriteDocument</Permissions>

  <!-- Begin Add-in Commands Mode integration. -->
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">

    <!-- The Hosts node is required. -->
    <Hosts>
      <!-- Each host can have a different set of commands. -->
      <!-- Excel host is Workbook, Word host is Document, and PowerPoint host is Presentation. -->
      <!-- Make sure the hosts you override match the hosts declared in the top section of the manifest. -->
      <Host xsi:type="Document">
        <!-- Form factor. Currently only DesktopFormFactor is supported. -->
        <DesktopFormFactor>
          <!--"This code enables a customizable message to be displayed when the add-in is loaded successfully upon individual install."-->
          <GetStarted>
            <!-- Title of the Getting Started callout. resid points to a ShortString resource -->
            <Title resid="drawio.GetStarted.Title"/>

            <!-- Description of the Getting Started callout. resid points to a LongString resource -->
            <Description resid="drawio.GetStarted.Description"/>

            <!-- Point to a url resource which details how the add-in should be used. -->
            <LearnMoreUrl resid="drawio.GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <!-- Function file is a HTML page that includes the JavaScript where functions for ExecuteAction will be called.
            Think of the FunctionFile as the code behind ExecuteFunction. -->
          <FunctionFile resid="drawio.FunctionFile.Url" />

          <!-- PrimaryCommandSurface is the main Office Ribbon. -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <!-- Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab. -->
            <OfficeTab id="TabInsert">
              <!-- Ensure you provide a unique id for the group. Recommendation for any IDs is to namespace using your company name. -->
              <Group id="drawio.Group1">
                <!-- Label for your group. resid must point to a ShortString resource. -->
                <Label resid="drawio.Group1Label" />
                <!-- Icons. Required sizes 16,32,80, optional 20, 24, 40, 48, 64. Strongly recommended to provide all sizes for great UX. -->
                <!-- Use PNG icons. All URLs on the resources section must use HTTPS. -->
                <Icon>
                  <bt:Image size="16" resid="drawio.tpicon_16x16" />
                  <bt:Image size="32" resid="drawio.tpicon_32x32" />
                  <bt:Image size="80" resid="drawio.tpicon_80x80" />
                </Icon>

                <!-- Control. It can be of type "Button" or "Menu". -->
                <Control xsi:type="Button" id="drawio.TaskpaneButton">
                  <Label resid="drawio.TaskpaneButton.Label" />
                  <Supertip>
                    <!-- ToolTip title. resid must point to a ShortString resource. -->
                    <Title resid="drawio.TaskpaneButton.Label" />
                    <!-- ToolTip description. resid must point to a LongString resource. -->
                    <Description resid="drawio.TaskpaneButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="drawio.tpicon_16x16" />
                    <bt:Image size="32" resid="drawio.tpicon_32x32" />
                    <bt:Image size="80" resid="drawio.tpicon_80x80" />
                  </Icon>

                  <!-- This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFunction or ShowTaskpane. -->
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>drawioBtn</TaskpaneId>
                    <!-- Provide a url resource id for the location that will be displayed on the task pane. -->
                    <SourceLocation resid="drawio.Taskpane.Url" />
                  </Action>
                </Control>
                <Control xsi:type="Button" id="drawio.refreshButton">
				  <Label resid="drawio.refreshButton.label" />
				  <Supertip>
				    <Title resid="drawio.refreshButton.toolTipLbl" />
				    <Description resid="drawio.refreshButton.toolTip" />
				  </Supertip>
				  <Icon>
				    <bt:Image size="16" resid="drawio.refreshIcon_16x16" />
				    <bt:Image size="32" resid="drawio.refreshIcon_32x32" />
				    <bt:Image size="80" resid="drawio.refreshIcon_80x80" />
				  </Icon>
				  <Action xsi:type="ExecuteFunction">
				    <FunctionName>refreshSelImages</FunctionName>
				  </Action>
				</Control>
				<Control xsi:type="Button" id="drawio.refreshAllBtn">
				  <Label resid="drawio.refreshAllBtn.label" />
				  <Supertip>
				    <Title resid="drawio.refreshAllBtn.toolTipLbl" />
				    <Description resid="drawio.refreshAllBtn.toolTip" />
				  </Supertip>
				  <Icon>
				    <bt:Image size="16" resid="drawio.refreshIcon_16x16" />
				    <bt:Image size="32" resid="drawio.refreshIcon_32x32" />
				    <bt:Image size="80" resid="drawio.refreshIcon_80x80" />
				  </Icon>
				  <Action xsi:type="ExecuteFunction">
				    <FunctionName>refreshAllImages</FunctionName>
				  </Action>
				</Control>
				<Control xsi:type="Button" id="drawio.editButton">
				  <Label resid="drawio.editButton.label" />
				  <Supertip>
				    <Title resid="drawio.editButton.toolTipLbl" />
				    <Description resid="drawio.editButton.toolTip" />
				  </Supertip>
				  <Icon>
				    <bt:Image size="16" resid="drawio.editIcon_16x16" />
				    <bt:Image size="32" resid="drawio.editIcon_32x32" />
				    <bt:Image size="80" resid="drawio.editIcon_80x80" />
				  </Icon>
				  <Action xsi:type="ExecuteFunction">
				    <FunctionName>editSelImage</FunctionName>
				  </Action>
				</Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
      <Host xsi:type="Presentation">
        <!-- Form factor. Currently only DesktopFormFactor is supported. -->
        <DesktopFormFactor>
          <!--"This code enables a customizable message to be displayed when the add-in is loaded successfully upon individual install."-->
          <GetStarted>
            <!-- Title of the Getting Started callout. resid points to a ShortString resource -->
            <Title resid="drawio.GetStarted.Title"/>

            <!-- Description of the Getting Started callout. resid points to a LongString resource -->
            <Description resid="drawio.GetStarted.Description"/>

            <!-- Point to a url resource which details how the add-in should be used. -->
            <LearnMoreUrl resid="drawio.GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <!-- Function file is a HTML page that includes the JavaScript where functions for ExecuteAction will be called.
            Think of the FunctionFile as the code behind ExecuteFunction. -->
          <FunctionFile resid="drawio.FunctionFile.Url" />

          <!-- PrimaryCommandSurface is the main Office Ribbon. -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <!-- Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab. -->
            <OfficeTab id="TabInsert">
              <!-- Ensure you provide a unique id for the group. Recommendation for any IDs is to namespace using your company name. -->
              <Group id="drawio.Group1">
                <!-- Label for your group. resid must point to a ShortString resource. -->
                <Label resid="drawio.Group1Label" />
                <!-- Icons. Required sizes 16,32,80, optional 20, 24, 40, 48, 64. Strongly recommended to provide all sizes for great UX. -->
                <!-- Use PNG icons. All URLs on the resources section must use HTTPS. -->
                <Icon>
                  <bt:Image size="16" resid="drawio.tpicon_16x16" />
                  <bt:Image size="32" resid="drawio.tpicon_32x32" />
                  <bt:Image size="80" resid="drawio.tpicon_80x80" />
                </Icon>

                <!-- Control. It can be of type "Button" or "Menu". -->
                <Control xsi:type="Button" id="drawio.TaskpaneButton">
                  <Label resid="drawio.TaskpaneButton.Label" />
                  <Supertip>
                    <!-- ToolTip title. resid must point to a ShortString resource. -->
                    <Title resid="drawio.TaskpaneButton.Label" />
                    <!-- ToolTip description. resid must point to a LongString resource. -->
                    <Description resid="drawio.TaskpaneButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="drawio.tpicon_16x16" />
                    <bt:Image size="32" resid="drawio.tpicon_32x32" />
                    <bt:Image size="80" resid="drawio.tpicon_80x80" />
                  </Icon>

                  <!-- This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFunction or ShowTaskpane. -->
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>drawioBtn</TaskpaneId>
                    <!-- Provide a url resource id for the location that will be displayed on the task pane. -->
                    <SourceLocation resid="drawio.Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
      <Host xsi:type="Workbook">
        <!-- Form factor. Currently only DesktopFormFactor is supported. -->
        <DesktopFormFactor>
          <!--"This code enables a customizable message to be displayed when the add-in is loaded successfully upon individual install."-->
          <GetStarted>
            <!-- Title of the Getting Started callout. resid points to a ShortString resource -->
            <Title resid="drawio.GetStarted.Title"/>

            <!-- Description of the Getting Started callout. resid points to a LongString resource -->
            <Description resid="drawio.GetStarted.Description"/>

            <!-- Point to a url resource which details how the add-in should be used. -->
            <LearnMoreUrl resid="drawio.GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <!-- Function file is a HTML page that includes the JavaScript where functions for ExecuteAction will be called.
            Think of the FunctionFile as the code behind ExecuteFunction. -->
          <FunctionFile resid="drawio.FunctionFile.Url" />

          <!-- PrimaryCommandSurface is the main Office Ribbon. -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <!-- Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab. -->
            <OfficeTab id="TabInsert">
              <!-- Ensure you provide a unique id for the group. Recommendation for any IDs is to namespace using your company name. -->
              <Group id="drawio.Group1">
                <!-- Label for your group. resid must point to a ShortString resource. -->
                <Label resid="drawio.Group1Label" />
                <!-- Icons. Required sizes 16,32,80, optional 20, 24, 40, 48, 64. Strongly recommended to provide all sizes for great UX. -->
                <!-- Use PNG icons. All URLs on the resources section must use HTTPS. -->
                <Icon>
                  <bt:Image size="16" resid="drawio.tpicon_16x16" />
                  <bt:Image size="32" resid="drawio.tpicon_32x32" />
                  <bt:Image size="80" resid="drawio.tpicon_80x80" />
                </Icon>

                <!-- Control. It can be of type "Button" or "Menu". -->
                <Control xsi:type="Button" id="drawio.TaskpaneButton">
                  <Label resid="drawio.TaskpaneButton.Label" />
                  <Supertip>
                    <!-- ToolTip title. resid must point to a ShortString resource. -->
                    <Title resid="drawio.TaskpaneButton.Label" />
                    <!-- ToolTip description. resid must point to a LongString resource. -->
                    <Description resid="drawio.TaskpaneButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="drawio.tpicon_16x16" />
                    <bt:Image size="32" resid="drawio.tpicon_32x32" />
                    <bt:Image size="80" resid="drawio.tpicon_80x80" />
                  </Icon>

                  <!-- This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFunction or ShowTaskpane. -->
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>drawioBtn</TaskpaneId>
                    <!-- Provide a url resource id for the location that will be displayed on the task pane. -->
                    <SourceLocation resid="drawio.Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <!-- You can use resources across hosts and form factors. -->
    <Resources>
      <bt:Images>
        <bt:Image id="drawio.tpicon_16x16" DefaultValue="https://test.draw.io/images/favicon-16x16.png" />
        <bt:Image id="drawio.tpicon_32x32" DefaultValue="https://test.draw.io/images/favicon-32x32.png" />
        <bt:Image id="drawio.tpicon_80x80" DefaultValue="https://test.draw.io/images/drawlogo80.png" />
        
        <bt:Image id="drawio.refreshIcon_16x16" DefaultValue="https://test.draw.io/images/update16.png" />
        <bt:Image id="drawio.refreshIcon_32x32" DefaultValue="https://test.draw.io/images/update32.png" />
        <bt:Image id="drawio.refreshIcon_80x80" DefaultValue="https://test.draw.io/images/update80.png" />

        <bt:Image id="drawio.editIcon_16x16" DefaultValue="https://test.draw.io/images/edit16.png" />
        <bt:Image id="drawio.editIcon_32x32" DefaultValue="https://test.draw.io/images/edit32.png" />
        <bt:Image id="drawio.editIcon_80x80" DefaultValue="https://test.draw.io/images/edit80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="drawio.Taskpane.Url" DefaultValue="https://test.draw.io/connect/office365/index.html" />
        <bt:Url id="drawio.GetStarted.LearnMoreUrl" DefaultValue="https://about.draw.io/" >
          <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="https://about.draw.io/"/>
        </bt:Url>
        <bt:Url id="drawio.FunctionFile.Url" DefaultValue="https://test.draw.io/connect/office365/function-file/function-file.html" />
      </bt:Urls>
      <!-- ShortStrings max characters==125. -->
      <bt:ShortStrings>
        <bt:String id="drawio.TaskpaneButton.Label" DefaultValue="draw.io" />
        <bt:String id="drawio.Group1Label" DefaultValue="draw.io" />
        <bt:String id="drawio.GetStarted.Title" DefaultValue="Get started with draw.io" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Erste Schritte mit draw.io"/>
        </bt:String>
        <bt:String id="drawio.refreshButton.label" DefaultValue="Update Selected" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Markierung aktualisieren"/>
        </bt:String>
        <bt:String id="drawio.refreshButton.toolTipLbl" DefaultValue="Update selected diagram" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Markiertes Diagramm aktualisieren"/>
        </bt:String>
         <bt:String id="drawio.refreshAllBtn.label" DefaultValue="Update All" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Alle aktualisieren"/>
        </bt:String>
        <bt:String id="drawio.refreshAllBtn.toolTipLbl" DefaultValue="Update all draw.io diagrams" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Alle draw.io Diagramme aktualisieren"/>
        </bt:String>
        <bt:String id="drawio.editButton.label" DefaultValue="Edit Selected" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Markierung bearbeiten"/>
        </bt:String>
        <bt:String id="drawio.editButton.toolTipLbl" DefaultValue="Edit selected draw.io diagram" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Markiertes draw.io Diagramm bearbeiten"/>
        </bt:String>
      </bt:ShortStrings>
      <!-- LongStrings max characters==250. -->
      <bt:LongStrings>
        <bt:String id="drawio.TaskpaneButton.Tooltip" DefaultValue="Click to manage draw.io diagrams">
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Hier klicken, um draw.io Diagramme zu verwalten"/>
        </bt:String>
        <bt:String id="drawio.GetStarted.Description" DefaultValue="draw.io add-in loaded succesfully. Go to the INSERT tab and click the 'draw.io' button to get started." >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Das draw.io Add-in wurde erfolgreich geladen. Gehen Sie jetzt zum Reiter 'Einfügen' und klicken Sie auf draw.io."/>
        </bt:String>
        <bt:String id="drawio.refreshButton.toolTip" DefaultValue="Update selected draw.io diagram using its associated file" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Markiertes draw.io Diagramm von verknüpfter Datei aktualisieren"/>
        </bt:String>
        <bt:String id="drawio.refreshAllBtn.toolTip" DefaultValue="Update all draw.io diagrams using their associated files" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Alle draw.io Diagramme von verknüpfter Datei aktualisieren"/>
        </bt:String>
        <bt:String id="drawio.editButton.toolTip" DefaultValue="Edit selected draw.io diagram from its associated file" >
	  	  <!-- For a list of office supported languages, see https://docs.microsoft.com/en-us/previous-versions/office/office-2013-resource-kit/cc179219(v=office.15) -->
	  	  <bt:Override Locale="de-de" Value="Verknüpfte Datei bearbeiten"/>
        </bt:String>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
  <!-- End Add-in Commands Mode integration. -->

</OfficeApp>
