UI/RibbonCustomizationsExplorer.xml
author Thomas
Tue, 30 Jul 2019 08:18:44 +0200
branchsync
changeset 2687 f7f12cd4dd77
parent 2318 e3b546370116
child 2695 273816414b64
permissions -rw-r--r--
OUT-386: Add Reset Trust context menu entry for contacts
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"
     3           onLoad="Ribbon_Load">
     4   <ribbon>
     5     <tabs>
     6       <tab idMso="TabMail">
     7         <group id="GroupPEPHome"
     8                insertAfterMso="GroupSendReceive"
     9                label="p≡p"
    10                getVisible="GroupPEPHome_GetVisible">
    11           <button id="ButtonPrivacyStatus"
    12                   size="large"
    13                   getImage="ButtonPrivacyStatus_GetImage"
    14                   getVisible="ButtonPrivacyStatus_GetVisible"
    15                   getLabel="ButtonPrivacyStatus_GetLabel"
    16                   getScreentip="ButtonPrivacyStatus_GetScreentip"
    17                   onAction="ButtonPrivacyStatus_Click"/>
    18           <button id="ButtonUpgradePEPHome"
    19                   size="large"
    20                   getEnabled="ButtonUpgradePEP_GetEnabled"
    21                   getImage="ButtonUpgradePEP_GetImage"
    22                   getLabel="ButtonUpgradePEP_GetLabel"
    23                   getSupertip="ButtonUpgradePEP_GetSupertip"
    24                   getVisible="ButtonUpgradePEP_GetVisible"
    25                   onAction="ButtonUpgradePEP_Click" />
    26         </group>
    27       </tab>
    28     </tabs>
    29     <contextualTabs>
    30       <tabSet idMso="TabComposeTools">
    31         <tab idMso="TabMessage">
    32           <group id="GroupPEPNewMailMessageInline"
    33                  insertAfterMso="GroupTemplates"
    34                  label="p≡p"
    35                  getVisible="GroupPEPNewMailMessage_GetVisible">
    36             <splitButton id="PEPButton"
    37                          size="large"
    38                          getVisible="ButtonPrivacyStatus_GetVisible">
    39               <button id="ButtonPrivacyStatusInline"
    40                       getImage="ButtonPrivacyStatus_GetImage"
    41                       getLabel="ButtonPrivacyStatus_GetLabel"
    42                       getScreentip="ButtonPrivacyStatus_GetScreentip"
    43                       onAction="ButtonPrivacyStatus_Click"/>
    44               <menu id="menu">
    45                 <toggleButton id="ToggleButtonForceUnencrypted"
    46                               getEnabled="ToggleButtonForceUnencrypted_GetEnabled"
    47                               getLabel="ToggleButtonForceUnencrypted_GetLabel"
    48                               getPressed="ToggleButtonForceUnencrypted_GetPressed"
    49                               getSupertip="ToggleButtonForceUnencrypted_GetSupertip"
    50                               getVisible="ToggleButtonForceUnencrypted_GetVisible"
    51                               onAction="ToggleButtonForceUnencrypted_Click" />
    52                 <toggleButton id="ToggleButtonForceProtection"
    53                               getEnabled="ToggleButtonForceProtection_GetEnabled"
    54                               getLabel="ToggleButtonForceProtection_GetLabel"
    55                               getPressed="ToggleButtonForceProtection_GetPressed"
    56                               getSupertip="ToggleButtonForceProtection_GetSupertip"
    57                               getVisible="ToggleButtonForceProtection_GetVisible"
    58                               onAction="ToggleButtonForceProtection_Click" />
    59                 <toggleButton id="ToggleButtonEnableProtection"
    60                               getEnabled="ToggleButtonEnableProtection_GetEnabled"
    61                               getLabel="ToggleButtonEnableProtection_GetLabel"
    62                               getPressed="ToggleButtonEnableProtection_GetPressed"
    63                               getSupertip="ToggleButtonEnableProtection_GetSupertip"
    64                               getVisible="ToggleButtonEnableProtection_GetVisible"
    65                               onAction="ToggleButtonEnableProtection_Click" />
    66                 <toggleButton id="ToggleButtonNeverUnsecure"
    67                               getEnabled="ToggleButtonNeverUnsecure_GetEnabled"
    68                               getLabel="ToggleButtonNeverUnsecure_GetLabel"
    69                               getPressed="ToggleButtonNeverUnsecure_GetPressed"
    70                               getSupertip="ToggleButtonNeverUnsecure_GetSupertip"
    71                               getVisible="ToggleButtonNeverUnsecure_GetVisible"
    72                               onAction="ToggleButtonNeverUnsecure_Click" />
    73               </menu>
    74             </splitButton>
    75             <button id="ButtonUpgradePEPComposeMessageInline"
    76                     size="large"
    77                     getEnabled="ButtonUpgradePEP_GetEnabled"
    78                     getImage="ButtonUpgradePEP_GetImage"
    79                     getLabel="ButtonUpgradePEP_GetLabel"
    80                     getSupertip="ButtonUpgradePEP_GetSupertip"
    81                     getVisible="ButtonUpgradePEP_GetVisible"
    82                     onAction="ButtonUpgradePEP_Click" />
    83           </group>
    84         </tab>
    85       </tabSet>
    86     </contextualTabs>
    87   </ribbon>
    88   <backstage>
    89     <!-- Available Mso for insertAfterMso: FileSaveAs, TabRecent, TabPrint, TabHelp, ApplicationOptionsDialog -->
    90     <tab id="BackstagePEP"
    91          label="p≡p"
    92          title="p≡p for Outlook"
    93          columnWidthPercent="65"
    94          insertAfterMso="ApplicationOptionsDialog"
    95          visible="true" >
    96       <firstColumn>
    97         <!-- Account Options -->
    98         <group id="GroupAccounts"
    99                getLabel="GroupAccounts_GetLabel"
   100                getHelperText="GroupAccounts_GetHelperText">
   101           <primaryItem>
   102             <button id="ButtonAccounts"
   103                     isDefinitive="true"
   104                     onAction="ButtonAccounts_Click"
   105                     getImage="ButtonAccounts_GetImage"
   106                     getLabel="ButtonAccounts_GetLabel" />
   107           </primaryItem>
   108         </group>
   109         <!-- Compatibility options -->
   110         <group id="GroupCompatibility"
   111                getLabel="GroupCompatibility_GetLabel"
   112                getHelperText="GroupCompatibility_GetHelperText">
   113           <primaryItem>
   114             <button id="ButtonCompatibility"
   115                     isDefinitive="true"
   116                     onAction="ButtonCompatibility_Click"
   117                     getImage="ButtonCompatibility_GetImage"
   118                     getLabel="ButtonCompatibility_GetLabel"/>
   119           </primaryItem>
   120         </group>
   121       </firstColumn>
   122       <secondColumn>
   123         <!-- About -->
   124         <group id="GroupAbout">
   125           <topItems>
   126             <layoutContainer id="LayoutContainer3"
   127                              layoutChildren="vertical">
   128               <imageControl id="ImageControlLogo"
   129                             getImage="ImageControlLogo_GetImage"
   130                             visible="true" />
   131               <labelControl id="Spacer1"
   132                             label=" " />
   133               <labelControl id="LabelControlName"
   134                             getLabel="LabelControlName_GetLabel"
   135                             alignLabel="right" />
   136               <labelControl id="LabelControlCopyright"
   137                             getLabel="LabelControlCopyright_GetLabel"
   138                             alignLabel="right"/>
   139               <labelControl id="LabelControlVersion"
   140                             getLabel="LabelControlVersion_GetLabel"
   141                             alignLabel="right"/>
   142             </layoutContainer>
   143           </topItems>
   144           <bottomItems>
   145             <labelControl id="LabelSpacer1"
   146                           label=" "/>
   147             <hyperlink id="HyperlinkPEP"
   148                        label="www.prettyeasyprivacy.com"
   149                        target="https://prettyeasyprivacy.com"/>
   150           </bottomItems>
   151         </group>
   152       </secondColumn>
   153     </tab>
   154   </backstage>
   155   <contextMenus>
   156     
   157     <!--The manual Key Import context menu entry-->
   158     <contextMenu idMso="ContextMenuStore">
   159       <menu id="ContextMenuKeyImport"
   160             getImage="ContextMenuKeyImport_GetImage"
   161             getVisible="ContextMenuKeyImport_GetVisible"
   162             getLabel="ContextMenuKeyImport_GetLabel">
   163         <button id="ContextMenuKeyImportButtonPEP"
   164                 getLabel="ContextMenuKeyImportButtonPEP_GetLabel"
   165                 imageMso="AdpPrimaryKey"
   166                 onAction="ContextMenuKeyImportButton_Click"/>
   167         <button id="ContextMenuKeyImportButtonPGP"
   168                 getLabel="ContextMenuKeyImportButtonPGP_GetLabel"
   169                 imageMso="AdpPrimaryKey"
   170                 onAction="ContextMenuKeyImportButton_Click"/>
   171       </menu>
   172     </contextMenu>
   173     
   174     <!--The Contact context menu to reset trust-->
   175     <contextMenu idMso="ContextMenuContactItem">
   176       <button id="ContextMenuResetContactTrust"
   177             getImage="ContextMenuResetContactTrust_GetImage"            
   178             getLabel="ContextMenuResetContactTrust_GetLabel"
   179             onAction="ContextMenuResetContactTrustButton_Click"/>       
   180     </contextMenu>
   181   </contextMenus>
   182 </customUI>
   183