home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / toolkit.jar / content / global / widgets / toolbarbutton.xml < prev    next >
Extensible Markup Language  |  2002-09-29  |  3KB  |  75 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/widgets/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"
  18.                  xbl:inherits="value=label,accesskey,crop,toolbarmode,buttonstyle"/>
  19.     </content>
  20.   </binding>
  21.  
  22.   <binding id="menu" display="xul:menu" 
  23.            extends="chrome://global/content/widgets/toolbarbutton.xml#toolbarbutton">
  24.     <content>
  25.       <children includes="observes|template|menupopup|tooltip"/>
  26.       <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,toolbarmode,buttonstyle"/>
  27.       <xul:label class="toolbarbutton-text" crop="right" flex="1"
  28.                  xbl:inherits="value=label,accesskey,crop,dragover-top,toolbarmode,buttonstyle"/>
  29.       <xul:dropmarker type="menu" class="toolbarbutton-menu-dropmarker" xbl:inherits="disabled"/>
  30.     </content>
  31.   </binding>
  32.   
  33.   <binding id="menu-button" display="xul:menu" 
  34.            extends="chrome://global/content/widgets/button.xml#menu-button-base">
  35.     <resources>
  36.       <stylesheet src="chrome://global/skin/toolbarbutton.css"/>
  37.     </resources>
  38.  
  39.     <content>
  40.       <children includes="observes|template|menupopup|tooltip"/>
  41.       <xul:toolbarbutton class="box-inherit toolbarbutton-menubutton-button"
  42.                          anonid="button" flex="1" allowevents="true"
  43.                          xbl:inherits="disabled,crop,image,label,accessKey,command,
  44.                                        align,dir,pack,orient,toolbarmode,buttonstyle"/>
  45.       <xul:dropmarker type="menu-button" class="toolbarbutton-menubutton-dropmarker"
  46.                       xbl:inherits="align,dir,pack,orient,disabled,toolbarmode,buttonstyle"/>
  47.     </content>
  48.   </binding>
  49.   
  50.   
  51.   <binding id="toolbarbutton-image"
  52.            extends="chrome://global/content/widgets/toolbarbutton.xml#toolbarbutton">
  53.     <content>
  54.       <xul:image class="toolbarbutton-icon" xbl:inherits="src=image"/>
  55.     </content>
  56.   </binding>
  57.   
  58.   <binding id="dropmarker">
  59.     <content>
  60.       <xul:image class="menubutton-dropmarker-icon"/>
  61.     </content>
  62.  
  63.     <implementation implements="nsIAccessibleProvider">
  64.       <property name="accessible">
  65.         <getter>
  66.           <![CDATA[
  67.             var accService = Components.classes["@mozilla.org/accessibilityService;1"].getService(Components.interfaces.nsIAccessibilityService);
  68.             return accService.createXULDropmarkerAccessible(this);
  69.           ]]>
  70.         </getter>
  71.       </property>
  72.     </implementation>
  73.   </binding>
  74.     
  75. </bindings>