<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.forms.layouts.webapp.listing.override">

  <require>org.nuxeo.ecm.platform.forms.layouts.webapp.listing</require>

  <extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.LayoutStore">

    <widget name="listing_link_tab" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Tab</label>
      </labels>
      <helpLabels>
        <label mode="any">
          The tab to select when clicking on the
          document link. Available since 5.4.2.
        </label>
      </helpLabels>
      <fields>
        <field>tab</field>
      </fields>
    </widget>

    <widget name="listing_link_subTab" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Sub Tab</label>
      </labels>
      <helpLabels>
        <label mode="any">
          The sub tab to select when clicking on the
          document link. Available since 5.5.
        </label>
      </helpLabels>
      <fields>
        <field>subTab</field>
      </fields>
    </widget>

    <widget name="listing_link_tabs" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Tabs</label>
      </labels>
      <helpLabels>
        <label mode="any">
          Combination of tabs to select when clicking
          on the
          document link. Sample value: MAIN_TABS:document.
          Available since 7.3.
        </label>
      </helpLabels>
      <fields>
        <field>tabs</field>
      </fields>
    </widget>

    <widget name="listing_link_target" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Target</label>
      </labels>
      <helpLabels>
        <label mode="any">
          Available since 6.0. The target attribute
          of
          the link.
        </label>
      </helpLabels>
      <fields>
        <field>target</field>
      </fields>
    </widget>

    <widget name="listing_link_pattern" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Link Pattern</label>
      </labels>
      <helpLabels>
        <label mode="any">
          The document pattern to use for this link (optional). Available since 8.1.
        </label>
      </helpLabels>
      <fields>
        <field>pattern</field>
      </fields>
    </widget>

    <widget name="listing_link_view" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Link View</label>
      </labels>
      <helpLabels>
        <label mode="any">
          The document view to use for this link (optional). Available since 8.1.
        </label>
      </helpLabels>
      <fields>
        <field>view</field>
      </fields>
    </widget>

    <widget name="listing_link_hideExternalLink" type="checkbox">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Hide External Link</label>
      </labels>
      <helpLabels>
        <label mode="any">
          Available since 5.7.2. Flag indicating that
          the external link, opening the document in a new
          conversation, must be hidden.
        </label>
      </helpLabels>
      <fields>
        <field>hideExternalLink</field>
      </fields>
    </widget>

    <widget name="listing_link_hideDownloadLink" type="checkbox">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Hide Download Link</label>
      </labels>
      <helpLabels>
        <label mode="any">
          Available since 6.0. Flag indicating that
          the download link must be hidden.
        </label>
      </helpLabels>
      <fields>
        <field>hideDownloadLink</field>
      </fields>
    </widget>

  </extension>

</component>
