1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/content/widgets/groupbox.xml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.6 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.8 + 1.9 + 1.10 +<bindings id="groupboxBindings" 1.11 + xmlns="http://www.mozilla.org/xbl" 1.12 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.13 + xmlns:xbl="http://www.mozilla.org/xbl"> 1.14 + 1.15 + <binding id="groupbox-base"> 1.16 + <resources> 1.17 + <stylesheet src="chrome://global/skin/groupbox.css"/> 1.18 + </resources> 1.19 + </binding> 1.20 + 1.21 + <binding id="groupbox" role="xul:groupbox" 1.22 + extends="chrome://global/content/bindings/groupbox.xml#groupbox-base"> 1.23 + <content> 1.24 + <xul:hbox class="groupbox-title" align="center" pack="start"> 1.25 + <children includes="caption"/> 1.26 + </xul:hbox> 1.27 + <xul:box flex="1" class="groupbox-body" xbl:inherits="orient,align,pack"> 1.28 + <children/> 1.29 + </xul:box> 1.30 + </content> 1.31 + </binding> 1.32 + 1.33 + <binding id="caption" extends="chrome://global/content/bindings/general.xml#basetext"> 1.34 + <resources> 1.35 + <stylesheet src="chrome://global/skin/groupbox.css"/> 1.36 + </resources> 1.37 + 1.38 + <content> 1.39 + <children> 1.40 + <xul:image class="caption-icon" xbl:inherits="src=image"/> 1.41 + <xul:label class="caption-text" flex="1" 1.42 + xbl:inherits="default,value=label,crop,accesskey"/> 1.43 + </children> 1.44 + </content> 1.45 + </binding> 1.46 + 1.47 +</bindings>