<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
           xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
           xsi:type="MailApp">

    <Id>525fef1d-ace1-4449-b906-7b74113c6559</Id>

    <!--Version. Updates from the store only get triggered if there is a version change. -->
    <Version>2.0.453</Version>
    <ProviderName>SecuDoc B.V.</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="Secure Mail">
        <Override Locale="nl-nl" Value="Veilig Mailen"/>
        <Override Locale="fr-fr" Value="Mail Sécurisé"/>
        <Override Locale="de-de" Value="Sicheres Mailen"/>
    </DisplayName>
    <Description
            DefaultValue="Automatically encrypt your message and/or attachment directly from Outlook with various verification options.">
        <Override Locale="nl-nl"
                  Value="Versleutel automatisch uw bericht en/of bijlage direct vanuit Outlook met diverse verificatiemogelijkheden."/>
        <Override Locale="fr-fr"
                  Value="Chiffrez automatiquement votre message et/ou pièce jointe directement depuis Outlook avec diverses options de vérification."/>
        <Override Locale="de-de"
                  Value="Verschlüsseln Sie automatisch Ihre Nachricht und/oder Anlage direkt aus Outlook mit verschiedenen Verifizierungsmöglichkeiten."/>
    </Description>

    <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
    <IconUrl DefaultValue="https://outlook.sm.secudoc.app/assets/64x64.secudoc.default.png"/>
    <HighResolutionIconUrl DefaultValue="https://outlook.sm.secudoc.app/assets/128x128.secudoc.default.png"/>

    <!--If you plan to submit this add-in to the Office Store, uncomment the SupportUrl element below-->
    <SupportUrl DefaultValue="https://www.secudoc.nl"/>

    <!-- 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://outlook.sm.secudoc.app</AppDomain>
        <AppDomain>https://secudoc.app</AppDomain>
    </AppDomains>
    <!--End Basic Settings. -->

    <Hosts>
        <Host Name="Mailbox"/>
    </Hosts>
    <Requirements>
        <Sets>
            <Set Name="Mailbox" MinVersion="1.13"/>
        </Sets>
    </Requirements>
    <FormSettings>
        <Form xsi:type="ItemRead">
            <DesktopSettings>
                <SourceLocation DefaultValue="https://outlook.sm.secudoc.app/read.html"/>
                <RequestedHeight>250</RequestedHeight>
            </DesktopSettings>
        </Form>
        <Form xsi:type="ItemEdit">
            <DesktopSettings>
                <SourceLocation DefaultValue="https://outlook.sm.secudoc.app/compose.html"/>
            </DesktopSettings>
        </Form>
    </FormSettings>

    <Permissions>ReadWriteMailbox</Permissions>

    <Rule xsi:type="RuleCollection" Mode="Or">
        <Rule xsi:type="ItemIs" ItemType="Message" FormType="ReadOrEdit"/>
    </Rule>
    <DisableEntityHighlighting>false</DisableEntityHighlighting>

    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides"
                      xsi:type="VersionOverridesV1_0">
        <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1"
                          xsi:type="VersionOverridesV1_1">

            <Requirements>
                <bt:Sets DefaultMinVersion="1.13">
                    <bt:Set Name="Mailbox"/>
                </bt:Sets>
            </Requirements>
            <Hosts>
                <Host xsi:type="MailHost">
                    <Runtimes>
                        <Runtime resid="Commands.Url" lifetime="long">
                            <Override type="javascript" resid="JSRuntime.Url"/>
                        </Runtime>
                    </Runtimes>
                    <DesktopFormFactor>
                        <SupportsSharedFolders>true</SupportsSharedFolders>
                        <FunctionFile resid="Commands.Url"/>
                        <ExtensionPoint xsi:type="Events">
                            <Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="onMessageSendHandler"/>
                        </ExtensionPoint>

                        <ExtensionPoint xsi:type="LaunchEvent">
                            <LaunchEvents>
                                <LaunchEvent Type="OnMessageCompose" FunctionName="onMessageComposeHandler"/>
                                <LaunchEvent Type="OnNewMessageCompose" FunctionName="onNewMessageComposeHandler"/>
                                <LaunchEvent Type="OnMessageFromChanged" FunctionName="onMessageFromChangedHandler"/>
                                <LaunchEvent Type="OnMessageRecipientsChanged" FunctionName="onMessageRecipientsChanged"/>
                                <LaunchEvent Type="OnMessageAttachmentsChanged" FunctionName="onMessageAttachmentsChangedHandler"/>
                                <LaunchEvent Type="OnSensitivityLabelChanged" FunctionName="onSensitivityLabelChangedHandler"/>
                            </LaunchEvents>
                            <SourceLocation resid="Commands.Url"/>
                        </ExtensionPoint>

                        <!-- Message Compose -->
                        <ExtensionPoint xsi:type="MessageComposeCommandSurface">
                            <OfficeTab id="TabDefault">
                                <Group id="msgComposeGroup">
                                    <Label resid="GroupLabel"/>
                                    <Control xsi:type="Button" id="msgComposeOpenPaneButton">
                                        <Label resid="TaskpaneButton.Label"/>
                                        <Supertip>
                                            <Title resid="TaskpaneButton.Label"/>
                                            <Description resid="TaskpaneButton.Tooltip"/>
                                        </Supertip>
                                        <Icon>
                                            <bt:Image size="16" resid="Secudoc.Default.16x16"/>
                                            <bt:Image size="32" resid="Secudoc.Default.32x32"/>
                                            <bt:Image size="80" resid="Secudoc.Default.80x80"/>
                                        </Icon>
                                        <Action xsi:type="ShowTaskpane">
                                            <SourceLocation resid="Taskpane.Url"/>
                                            <SupportsPinning>true</SupportsPinning>
                                        </Action>
                                    </Control>
                                </Group>
                            </OfficeTab>
                        </ExtensionPoint>
                        <!-- Overview pane -->
                        <ExtensionPoint xsi:type="MessageReadCommandSurface">
                            <OfficeTab id="TabDefault">
                                <Group id="msgReadGroup">
                                    <Label resid="GroupLabel"/>
                                    <Control xsi:type="Button" id="msgReadOpenPaneButton">
                                        <Label resid="ReadpaneButton.Label"/>
                                        <Supertip>
                                            <Title resid="ReadpaneButton.Label"/>
                                            <Description resid="ReadpaneButton.Tooltip"/>
                                        </Supertip>
                                        <Icon>
                                            <bt:Image size="16" resid="Secudoc.Default.16x16"/>
                                            <bt:Image size="32" resid="Secudoc.Default.32x32"/>
                                            <bt:Image size="80" resid="Secudoc.Default.80x80"/>
                                        </Icon>
                                        <Action xsi:type="ShowTaskpane">
                                            <SourceLocation resid="Readpane.Url"/>
                                            <SupportsPinning>true</SupportsPinning>
                                        </Action>
                                    </Control>
                                </Group>
                            </OfficeTab>
                        </ExtensionPoint>


                        <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->
                    </DesktopFormFactor>
                </Host>
            </Hosts>

            <Resources>
                <bt:Images>
                    <bt:Image id="Secudoc.Default.16x16"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/16x16.secudoc.default.png"/>
                    <bt:Image id="Secudoc.Default.32x32"
                              DefaultValue="https://www.secudoc.nl/public/images/favicon/favicon-32x32.png"/>
                    <bt:Image id="Secudoc.Default.64x64"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/64x64.secudoc.default.png"/>
                    <bt:Image id="Secudoc.Default.80x80"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/80x80.secudoc.default.png"/>
                    <bt:Image id="Secudoc.Default.128x128"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/128x128.secudoc.default.png"/>

                    <bt:Image id="Secudoc.Warning.16x16"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/16x16.secudoc.warning.png"/>
                    <bt:Image id="Secudoc.Warning.32x32"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/32x32.secudoc.warning.png"/>
                    <bt:Image id="Secudoc.Warning.80x80"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/80x80.secudoc.warning.png"/>

                    <bt:Image id="Secudoc.Error.16x16"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/16x16.secudoc.error.png"/>
                    <bt:Image id="Secudoc.Error.32x32"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/32x32.secudoc.error.png"/>
                    <bt:Image id="Secudoc.Error.80x80"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/80x80.secudoc.error.png"/>

                    <bt:Image id="Secudoc.Success.16x16"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/16x16.secudoc.success.png"/>
                    <bt:Image id="Secudoc.Success.32x32"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/32x32.secudoc.success.png"/>
                    <bt:Image id="Secudoc.Success.80x80"
                              DefaultValue="https://outlook.sm.secudoc.app/assets/80x80.secudoc.success.png"/>

                </bt:Images>
                <bt:Urls>
                    <bt:Url id="Commands.Url" DefaultValue="https://outlook.sm.secudoc.app/functions.html"/>
                    <bt:Url id="Taskpane.Url" DefaultValue="https://outlook.sm.secudoc.app/compose.html"/>
                    <bt:Url id="Readpane.Url" DefaultValue="https://outlook.sm.secudoc.app/read.html"/>
                    <bt:Url id="JSRuntime.Url" DefaultValue="https://outlook.sm.secudoc.app/assets/functions.js"/>
                </bt:Urls>
                <bt:ShortStrings>
                    <bt:String id="GroupLabel" DefaultValue="SecuDoc"/>
                    <bt:String id="TaskpaneButton.Label" DefaultValue="Veilige Mail verzenden"/>
                    <bt:String id="ReadpaneButton.Label" DefaultValue="Veilige Mail lezen"/>
                </bt:ShortStrings>
                <bt:LongStrings>
                    <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Uw e-mail als Veilige Mail verzenden"/>
                    <bt:String id="ReadpaneButton.Tooltip" DefaultValue="Meer informatie over verzonden Veilige Mail"/>
                </bt:LongStrings>
            </Resources>
        </VersionOverrides>
    </VersionOverrides>
</OfficeApp>
