<?xml version="1.0" encoding="utf-8"?>
<!--
  FormatPainterForGmail.admx  (pair with en-US\FormatPainterForGmail.adml)

  Deploys the "Format Painter for Gmail" Chrome extension Teams license (and
  optional company styles) by writing the extension's managed-storage values:
    HKLM\SOFTWARE\Policies\Google\Chrome\3rdparty\extensions\
         oaiklekamhihggihhoibgpbnfejlcppf\policy
      orgLicense (REG_SZ) = team license key
      orgPresets (REG_SZ) = company-styles JSON string
  This registry location is permitted for both classic GPO and Intune ADMX
  ingestion (only System, Software\Microsoft, and Software\Policies\Microsoft
  are off-limits to ingested ADMX). Self-contained: no windows.admx dependency.

  CLASSIC GPO: copy this .admx to C:\Windows\PolicyDefinitions (or the domain
  Central Store) and the .adml to the matching \en-US folder. Settings appear at
  Computer Configuration > Administrative Templates > Format Painter for Gmail.
  Enable a setting and REPLACE the YOUR-TEAM-KEY placeholder with your real key.

  INTUNE: Devices > Manage devices > Configuration > Import ADMX (import this
  .admx + .adml - no dependencies). Then create a profile: Windows 10 and later
  > Templates > Imported Administrative templates > enable "Team license key".
-->
<policyDefinitions revision="1.0" schemaVersion="1.0">
  <policyNamespaces>
    <target prefix="formatpainter" namespace="FormatPainterForGmail.Policies" />
  </policyNamespaces>
  <resources minRequiredRevision="1.0" />
  <supportedOn>
    <definitions>
      <definition name="SUPPORTED_FPG" displayName="$(string.SUPPORTED_FPG)" />
    </definitions>
  </supportedOn>
  <categories>
    <category name="FPG_Category" displayName="$(string.FPG_Category)" />
  </categories>
  <policies>
    <policy name="OrgLicense" class="Machine"
            displayName="$(string.OrgLicense)"
            explainText="$(string.OrgLicense_Explain)"
            presentation="$(presentation.OrgLicense)"
            key="SOFTWARE\Policies\Google\Chrome\3rdparty\extensions\oaiklekamhihggihhoibgpbnfejlcppf\policy">
      <parentCategory ref="FPG_Category" />
      <supportedOn ref="SUPPORTED_FPG" />
      <elements>
        <text id="OrgLicense_Text" valueName="orgLicense" required="true" maxLength="256" />
      </elements>
    </policy>
    <policy name="OrgPresets" class="Machine"
            displayName="$(string.OrgPresets)"
            explainText="$(string.OrgPresets_Explain)"
            presentation="$(presentation.OrgPresets)"
            key="SOFTWARE\Policies\Google\Chrome\3rdparty\extensions\oaiklekamhihggihhoibgpbnfejlcppf\policy">
      <parentCategory ref="FPG_Category" />
      <supportedOn ref="SUPPORTED_FPG" />
      <elements>
        <text id="OrgPresets_Text" valueName="orgPresets" required="false" maxLength="65535" />
      </elements>
    </policy>
  </policies>
</policyDefinitions>
