<?xml version="1.0"?>

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

  <binding id="textdisabled" extends="xul:text">
    <content>
      <xul:stack>
        <xul:text class="text-bottom" inherits="value,accesskey,crop"/>
        <xul:text class="text-top" inherits="value,accesskey,crop"/>
      </xul:stack>
    </content>
  </binding>

  <binding id="toolbargrippy" extends="chrome://global/content/toolbarBindings.xml#toolbargrippy">
    <content orient="vertical">
      <xul:box autostretch="never" halign="center">
        <xul:image class="toolbargrippy-twisty"/>
      </xul:box>
      <xul:spring class="toolbargrippy-texture" flex="1"/>
    </content>
  </binding>

  <binding id="toolbargrippy-collapsed" extends="chrome://global/content/toolbarBindings.xml#toolbargrippy">
    <content>
      <xul:box autostretch="never" halign="center">
        <xul:image class="toolbargrippy-twisty-collapsed"/>
      </xul:box>
      <xul:spring class="toolbargrippy-texture-collapsed" flex="1"/>
    </content>
  </binding>

  
  <binding id="radio" extends="chrome://global/content/radioBindings.xml#radio">
    <content>
      <xul:box flex="1" class="radio-internal-box" autostretch="never" valign="middle">
        <xul:box class="radio-checkmark-box-1" autostretch="never" inherits="disabled">
          <xul:box class="radio-checkmark-box-2" autostretch="never" flex="1">
            <xul:image class="radio-check" inherits="checked,disabled"/>
          </xul:box>
        </xul:box>
        <xul:image class="radio-icon" inherits="src,disabled"/>
        <xul:html class="radio-text" inherits="value,accesskey,crop,disabled" flex="1">
          <children/>
        </xul:html>
      </xul:box>
    </content>
  </binding>

  <binding id="checkbox" extends="chrome://global/content/xulBindings.xml#checkbox">
    <content>
      <xul:box flex="1" class="checkbox-internal-box" autostretch="never" valign="middle">
        <xul:box class="checkbox-checkmark-box-1" autostretch="never" inherits="disabled">
          <xul:box class="checkbox-checkmark-box-2" autostretch="never" flex="1">
            <xul:image class="checkbox-check" inherits="checked,disabled"/>
          </xul:box>
        </xul:box>
        <xul:image class="checkbox-icon" inherits="src,disabled"/>
        <xul:html class="checkbox-text" inherits="value,accesskey,crop,disabled" flex="1">
          <children/>
        </xul:html>
      </xul:box>
    </content>
  </binding>

  <binding id="thumb" extends="xul:button">
    <content>
      <xul:box class="thumb-box" autostretch="never" orient="vertical" flex="1">
        <xul:spring class="thumb-spring" flex="1"/>
      </xul:box>
    </content>
  </binding>

  <binding id="scrollbar">
    <content>
      <xul:scrollbarbutton type="decrement" inherits="sborient=align"/>
      <xul:slider flex="1" inherits="curpos,maxpos,pageincrement,increment">
	      <xul:thumb inherits="align,src" flex="1"/>
      </xul:slider>
      <xul:scrollbarbutton type="increment" inherits="sborient=align"/>
    </content>
  </binding>
  
  <binding id="scrollbarbutton">
    <content>
      <xul:box class="scrollbarbutton-box" flex="1">
        <xul:image class="scrollbarbutton-icon" inherits="src"/>
      </xul:box>
    </content>
  </binding>

  <binding id="slider">
    <content>
	    <xul:button class="slider-button"/>
  	</content>
  </binding>
  
  <binding id="grippy">
    <content>
      <xul:box class="grippy-box" flex="1">
        <xul:image class="grippy-image" inherits="src" />
      </xul:box>
    </content>
  </binding>
  
  <binding id="double-box">
    <content>
      <xul:box class="db-internal-box" flex="1">
        <children/>
      </xul:box>
    </content>
  </binding>

  <binding id="menuitem-iconic" extends="chrome://global/content/xulBindings.xml#menuitem-iconic">
    <content includes="menupopup">
      <xul:box class="menu-iconic-left" orient="vertical" autostretch="never" inherits="selected,menuactive,disabled,checked">
        <xul:image/>
      </xul:box>
      <xul:spring class="menuitem-iconic-spring"/>
      <xul:text class="menu-iconic-text" flex="1" align="left" inherits="value,accesskey,crop" crop="right"/>
      <xul:text class="menu-iconic-accel" inherits="value=acceltext"/>
    </content>
  </binding>

  <binding id="largeheader" extends="xul:box">
    <content>
      <xul:box class="largeheader-box" flex="1">
        <xul:box class="largeheader-text-container" orient="vertical">
          <xul:spring flex="1"/>
          <xul:text class="largeheader-header-text" inherits="value=title" crop="right"/>
          <xul:html class="largeheader-desc-text" inherits="value=description"/>
          <xul:spring flex="1"/>
        </xul:box>
        <xul:spring flex="1"/>
        <xul:box class="largeheader-icon-container" autostretch="never">
          <xul:image class="largeheader-icon" inherits="src"/>
        </xul:box>
      </xul:box>
    </content>
  </binding>

  <binding id="toolbarbutton-left" extends="chrome://global/content/xulBindings.xml#buttonleft">
    <content autostretch="never">
      <xul:image class="toolbarbutton-left-icon" inherits="src,disabled"/>
      <xul:text class="toolbarbutton-left-text" inherits="value,crop"/>
    </content>
  </binding>  

  <binding id="toolbarbutton-top" extends="chrome://global/content/xulBindings.xml#buttontop">
    <content autostretch="never" orient="vertical">
      <xul:image class="toolbarbutton-top-icon" inherits="src,disabled"/>
      <xul:text class="toolbarbutton-top-text" inherits="value,crop"/>
    </content>
  </binding>  
  
  <binding id="splitter-hack" extends="xul:splitter">
    <content>
      <xul:box class="splitter-hack-box" flex="1" autostretch="never">
        <children/>
      </xul:box>
    </content>
  </binding>

  <binding id="disabled-text" extends="xul:stack">
    <content>
      <xul:stack class="disabled-text-stack">
        <xul:text class="disabled-text-bottom"/>
        <xul:text class="disabled-text-top"/>
      </xul:stack>        
    </content>  
  </binding>

<!--  
  <binding id="throbber" extends="xul:box">
    <content autostretch="never">
      <button allowevents="true" class="throbber-button" inherits="oncommand=throbberaction,tooltip=throbbertooltip,tooltiptext=throbbertooltiptext"/>
    </content>
  </binding>
-->

</bindings>

