Changeset 6772


Ignore:
Timestamp:
10/05/06 18:53:58 (5 years ago)
Author:
sam
Message:

Ajout @position="top/bottom" à WCollapsableBlock, Ajout sm:labelTitle à WCollapsableBlock et tooltip

Location:
trunk/Wsp_Modeling
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/es/content/organisation/compositionXhtmlTransf/xml.xed.xml

    r6754 r6772  
    188188                                <atts> 
    189189                                        <se:ref se:refid="atts_Class"/> 
     190                                        <attribute se:name="position" se:id="WCollapsableBlock_position" se:bind="attribute"> 
     191                                                <choiceInput> 
     192                                                        <ciItem label="top"/> 
     193                                                        <ciItem label="bottom"/> 
     194                                                </choiceInput> 
     195                                        </attribute> 
    190196                                        <attribute se:name="defaultClosed" se:id="sm:WCollapsableBlock_defaultClosed" se:bind="attribute"> 
    191197                                                <choiceInput> 
     
    197203                                <childs> 
    198204                                        <se:ref se:refid="sm:label_Ctx"/> 
     205                                        <se:ref se:refid="sm:labelTitle_Ctx"/> 
    199206                                        <se:ref se:refid="sm:content_Ctx"/> 
    200207                                        <se:ref se:refid="sm:defaultStyle"/> 
     
    203210                        <element se:id="sm:WCaptionBlock_Ctx" se:name="sm:WCaptionBlock" se:bind="element"> 
    204211                                <atts> 
    205                                         <attribute se:name="position" se:bind="attribute"> 
     212                                        <se:ref se:refid="atts_Class"/> 
     213                                        <attribute se:name="position" se:id="WCaptionBlock_position" se:bind="attribute"> 
    206214                                                <choiceInput> 
    207215                                                        <ciItem label="bottom"/> 
     
    209217                                                </choiceInput> 
    210218                                        </attribute> 
    211                                         <se:ref se:refid="atts_Class"/> 
    212219                                </atts> 
    213220                                <childs> 
     
    275282                                                </childs> 
    276283                                        </element> 
    277                                         <element se:name="sm:labelTitle" se:bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;"> 
     284                                        <element se:name="sm:labelTitle" se:id="sm:labelTitle_Ctx" se:bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;"> 
    278285                                                <childs> 
    279286                                                        <se:choice se:card="*" se:show="ifExist"> 
     
    328335                                <childs> 
    329336                                        <se:ref se:name="sm:label" se:refid="sm:label_Ctx"/> 
     337                                        <se:ref se:refid="sm:labelTitle_Ctx"/> 
    330338                                        <element se:name="sm:tooltip" se:bind="element" forcefilled="true"> 
    331339                                                <atts> 
     
    542550                                <atts> 
    543551                                        <se:ref se:refid="atts_Class"/> 
     552                                        <se:ref se:refid="WCollapsableBlock_position"/> 
    544553                                        <se:ref se:refid="sm:WCollapsableBlock_defaultClosed"/> 
    545554                                </atts> 
    546555                                <childs> 
    547556                                        <se:ref se:refid="sm:label_Fix"/> 
     557                                        <se:ref se:refid="sm:labelTitle_Fix"/> 
    548558                                        <se:ref se:refid="sm:content_Fix"/> 
    549559                                        <se:ref se:refid="sm:defaultStyle" insert="true"/> 
     
    552562                        <element se:name="sm:WCaptionBlock" se:bind="element" se:id="sm:WCaptionBlock_Fix"> 
    553563                                <atts> 
    554                                         <attribute se:name="position" se:bind="attribute"> 
    555                                                 <choiceInput> 
    556                                                         <ciItem label="bottom"/> 
    557                                                         <ciItem label="top"/> 
    558                                                 </choiceInput> 
    559                                         </attribute> 
    560                                         <se:ref se:refid="atts_Class"/> 
     564                                        <se:ref se:refid="atts_Class"/> 
     565                                        <se:ref se:refid="WCaptionBlock_position"/> 
    561566                                </atts> 
    562567                                <childs> 
     
    598603                                </childs> 
    599604                        </element> 
    600                         <element se:name="sm:WLink" se:bind="element" se:id="sm:WLink_Fix"> 
    601                                 <atts> 
    602                                         <se:ref se:refid="atts_Class"/> 
    603                                 </atts> 
    604                                 <childs> 
    605                                         <element se:name="sm:label" se:bind="element" se:id="sm:label_Fix"> 
     605                        <element se:name="sm:WLink" se:bind="element" se:id="sm:WLink_Fix" tooltipTag="&common.widgets.wLink;"> 
     606                                <atts> 
     607                                        <se:ref se:refid="atts_Class"/> 
     608                                </atts> 
     609                                <childs> 
     610                                        <element se:name="sm:label" se:bind="element" se:id="sm:label_Fix" tooltipTag="&common.widgets.wLink.label;"> 
    606611                                                <childs> 
    607612                                                        <se:choice se:card="*"> 
     
    617622                                                </childs> 
    618623                                        </element> 
    619                                         <element se:name="sm:labelTitle" se:bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;"> 
     624                                        <element se:name="sm:labelTitle" se:id="sm:labelTitle_Fix" se:bind="element" se:card="?" tooltipTag="&common.widgets.wLink.labelTitle;"> 
    620625                                                <childs> 
    621626                                                        <se:choice se:card="*" se:show="ifExist"> 
     
    650655                                <childs> 
    651656                                        <se:ref se:name="sm:label" se:refid="sm:label_Fix"/> 
     657                                        <se:ref se:refid="sm:labelTitle_Fix"/> 
    652658                                        <element se:name="sm:tooltip" se:bind="element" forcefilled="true"> 
    653659                                                <atts> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf/widgets.xml.xsl

    r6754 r6772  
    106106                <xsl0:variable name="vClassOpen" select="concat(si(@internalClass,concat($vPrefixClass,@internalClass,'_open')),si(@commonClass,concat(' ',@commonClass,'_open')))"/> 
    107107                <xsl0:variable name="vClassClosed" select="concat(si(@internalClass,concat($vPrefixClass,@internalClass,'_closed')),si(@commonClass,concat(' ',@commonClass,'_closed')))"/> 
     108                <xsl0:variable name="vContentPosition" select="si(@position='bottom','firstChild','lastChild')"/> 
    108109                <div> 
    109110                        <xsl0:call-template name="classAtt"/> 
    110111                        <xsl0:call-template name="crossRefEntries"/> 
    111                         <a style="display:block;" href="javascript:void(0);" class="{si(@defaultClosed='true',$vClassClosed,$vClassOpen)}" onclick="this.parentNode.lastChild.style.display=this.parentNode.lastChild.style.display=='none'?'block':'none';this.className=this.parentNode.lastChild.style.display=='none'?'{$vClassClosed}':'{$vClassOpen}';"> 
     112                        <xsl0:if test="@position='bottom'"> 
     113                                <div style="display:{si(@defaultClosed='true','none','block')};"> 
     114                                        <xsl0:call-template name="classAtt"> 
     115                                                <xsl0:with-param name="pSuffix" select="'co'"/> 
     116                                        </xsl0:call-template> 
     117                                        <xsl0:apply-templates select="sm:content/*" mode="content"/> 
     118                                </div> 
     119                        </xsl0:if> 
     120                        <a style="display:block;" href="javascript:void(0);" class="{si(@defaultClosed='true',$vClassClosed,$vClassOpen)}" onclick="this.parentNode.{$vContentPosition}.style.display=this.parentNode.{$vContentPosition}.style.display=='none'?'block':'none';this.className=this.parentNode.{$vContentPosition}.style.display=='none'?'{$vClassClosed}':'{$vClassOpen}';"> 
     121                                <xsl0:if test="count(sm:labelTitle) != 0"> 
     122                                        <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/*" mode="content"/></addAttribute> 
     123                                </xsl0:if> 
    112124                                <xsl0:choose> 
    113125                                        <xsl0:when test="count(sm:label/*)!=0"> 
     
    127139                                </xsl0:choose> 
    128140                        </a> 
    129                         <div style="display:{si(@defaultClosed='true','none','block')};"> 
    130                                 <xsl0:call-template name="classAtt"> 
    131                                         <xsl0:with-param name="pSuffix" select="'co'"/> 
    132                                 </xsl0:call-template> 
    133                                 <xsl0:apply-templates select="sm:content/*" mode="content"/> 
    134                         </div></div> 
    135         </xsl0:template> 
    136         <xsl0:template match="sm:WCollapsableBlock/sm:label/sm:title" mode="content"> 
    137                 <xsl0:apply-templates select="." mode="contentTitleIn"/> 
    138         </xsl0:template> 
    139         <xsl0:template match="sm:WCollapsableBlock/sm:label/sm:fixedString" mode="content"> 
     141                        <xsl0:if test="count(@position)=0 or @position='top'"> 
     142                                <div style="display:{si(@defaultClosed='true','none','block')};"> 
     143                                        <xsl0:call-template name="classAtt"> 
     144                                                <xsl0:with-param name="pSuffix" select="'co'"/> 
     145                                        </xsl0:call-template> 
     146                                        <xsl0:apply-templates select="sm:content/*" mode="content"/> 
     147                                </div> 
     148                        </xsl0:if> 
     149                </div> 
     150        </xsl0:template> 
     151        <xsl0:template match="sm:WCollapsableBlock/sm:label/sm:title|sm:WCollapsableBlock/sm:labelTitle/sm:title" mode="content"> 
     152                <xsl0:apply-templates select="." mode="contentTitleIn"/> 
     153        </xsl0:template> 
     154        <xsl0:template match="sm:WCollapsableBlock/sm:label/sm:fixedString|sm:WCollapsableBlock/sm:labelTitle/sm:fixedString" mode="content"> 
    140155                <xsl0:value-of select="@value"/> 
    141156        </xsl0:template> 
     
    250265                        </xsl0:call-template> 
    251266                        <xsl0:call-template name="crossRefEntries"/> 
     267                        <xsl0:if test="count(sm:labelTitle) != 0"> 
     268                                <addAttribute name="title" filter="textOnly"><xsl0:apply-templates select="sm:labelTitle/*" mode="content"/></addAttribute> 
     269                        </xsl0:if> 
    252270                        <scTooltip> 
    253271                                <xsl0:attribute name="trigger"><xsl0:value-of select="si(sm:tooltip/@trigger, sm:tooltip/@trigger, 'onmouseover')"/></xsl0:attribute> 
     
    262280                        </xsl0:choose></span> 
    263281        </xsl0:template> 
    264         <xsl0:template match="sm:WTooltip/sm:tooltip/sm:ttTitle/sm:fixedString|sm:WTooltip/sm:label/sm:fixedString" mode="content"> 
     282        <xsl0:template match="sm:WTooltip/sm:tooltip/sm:ttTitle/sm:fixedString | sm:WTooltip/sm:label/sm:fixedString | sm:WTooltip/sm:labelTitle/sm:fixedString" mode="content"> 
    265283                <xsl0:value-of select="@value"/> 
    266284        </xsl0:template> 
    267         <xsl0:template match="sm:WTooltip/sm:tooltip/sm:ttTitle/sm:title|sm:WTooltip/sm:label/sm:title" mode="content"> 
     285        <xsl0:template match="sm:WTooltip/sm:tooltip/sm:ttTitle/sm:title | sm:WTooltip/sm:label/sm:title | sm:WTooltip/sm:labelTitle/sm:title" mode="content"> 
    268286                <span><xsl0:apply-templates select="." mode="contentTitleIn"/></span> 
    269287        </xsl0:template> 
Note: See TracChangeset for help on using the changeset viewer.