home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / toolkit.jar / content / global / bindings / toolbarbutton.xml < prev    next >
Extensible Markup Language  |  2005-07-29  |  4KB  |  89 lines

  1. <?xml version="1.0"?>
  2.  
  3. <bindings id="toolbarbuttonBindings"
  4.    xmlns="http://www.mozilla.org/xbl"
  5.    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  6.    xmlns:xbl="http://www.mozilla.org/xbl">
  7.  
  8.   <binding id="toolbarbutton" display="xul:button"
  9.            extends="chrome://global/content/bindings/button.xml#button-base">
  10.     <resources>
  11.       <stylesheet src="chrome://global/skin/toolbarbutton.css"/>
  12.     </resources>
  13.     
  14.     <content>
  15.       <children includes="observes|template|menupopup|tooltip"/>
  16.       <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,toolbarmode,buttonstyle"/>
  17.       <xul:label class="toolbarbutton-text" crop="right" flex="1"  xbl:inherits="value=label,accesskey,crop,toolbarmode,buttonstyle"/>
  18.     </content>
  19.   </binding>
  20.  
  21.   <binding id="menu" display="xul:menu" 
  22.            extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton">
  23.     <content>
  24.       <children includes="observes|template|menupopup|tooltip"/>
  25.       <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,toolbarmode,buttonstyle"/>
  26.       <xul:label class="toolbarbutton-text" crop="right" flex="1"
  27.                  xbl:inherits="value=label,accesskey,crop,dragover-top,toolbarmode,buttonstyle"/>
  28.       <xul:dropmarker type="menu" class="toolbarbutton-menu-dropmarker" xbl:inherits="disabled"/>
  29.     </content>
  30.   </binding>
  31.   
  32.   <binding id="menu-orient" display="xul:menu"
  33.            extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton">
  34.     <content>
  35.       <children includes="observes|template|menupopup|tooltip"/>
  36.       <xul:hbox flex="1" align="center">
  37.         <xul:box xbl:inherits="orient" flex="1" align="center">
  38.           <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,toolbarmode,buttonstyle"/>
  39.           <xul:label class="toolbarbutton-text" crop="right" flex="1"
  40.                     xbl:inherits="value=label,accesskey,crop,dragover-top,toolbarmode,buttonstyle"/>
  41.         </xul:box>
  42.         <xul:dropmarker type="menu" class="toolbarbutton-menu-dropmarker" xbl:inherits="disabled"/>
  43.       </xul:hbox>
  44.     </content>
  45.   </binding>
  46.   
  47.   <binding id="menu-button" display="xul:menu" 
  48.            extends="chrome://global/content/bindings/button.xml#menu-button-base">
  49.     <resources>
  50.       <stylesheet src="chrome://global/skin/toolbarbutton.css"/>
  51.     </resources>
  52.  
  53.     <content>
  54.       <children includes="observes|template|menupopup|tooltip"/>
  55.       <xul:toolbarbutton class="box-inherit toolbarbutton-menubutton-button"
  56.                          anonid="button" flex="1" allowevents="true"
  57.                          xbl:inherits="disabled,crop,image,label,accesskey,command,
  58.                                        align,dir,pack,orient,toolbarmode,buttonstyle"/>
  59.       <xul:dropmarker type="menu-button" class="toolbarbutton-menubutton-dropmarker"
  60.                       xbl:inherits="align,dir,pack,orient,disabled,toolbarmode,buttonstyle"/>
  61.     </content>
  62.   </binding>
  63.   
  64.   
  65.   <binding id="toolbarbutton-image"
  66.            extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton">
  67.     <content>
  68.       <xul:image class="toolbarbutton-icon" xbl:inherits="src=image"/>
  69.     </content>
  70.   </binding>
  71.   
  72.   <binding id="dropmarker">
  73.     <content>
  74.       <xul:image class="menubutton-dropmarker-icon"/>
  75.     </content>
  76.  
  77.     <implementation implements="nsIAccessibleProvider">
  78.       <property name="accessible">
  79.         <getter>
  80.           <![CDATA[
  81.             var accService = Components.classes["@mozilla.org/accessibilityService;1"].getService(Components.interfaces.nsIAccessibilityService);
  82.             return accService.createXULDropmarkerAccessible(this);
  83.           ]]>
  84.         </getter>
  85.       </property>
  86.     </implementation>
  87.   </binding>
  88.     
  89. </bindings>