<?xml version="1.0"?>

<bindings id="groupboxBindings"
   xmlns="http://www.mozilla.org/xbl"
   xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <binding id="groupbox-base">
    <resources>
      <stylesheet src="chrome://global/skin/titledbox.css"/>
    </resources>
  </binding>

  <binding id="groupbox" extends="chrome://global/content/bindings/titledbox.xml#groupbox-base">
    <content>
      <xul:hbox class="groupbox-title" align="center" pack="start">
        <children includes="label"/>
      </xul:hbox>
      <xul:box flex="1" class="groupbox-body" inherits="orient,align,pack">
        <children/>
      </xul:box>
    </content>
  </binding>

  <!-- titledbox included for backwards compatibility purposes; to be removed at a later date -->

  <binding id="titledbox" extends="chrome://global/content/bindings/titledbox.xml#groupbox-base">
    <content>
      <xul:hbox class="groupbox-title" align="center">
        <children includes="label"/>
      </xul:hbox>
      <xul:box flex="1" class="groupbox-body" inherits="orient,align,pack">
        <children/>
      </xul:box>
    </content>    
  </binding>
</bindings>
