Ignore:
Timestamp:
07/25/07 22:28:40 (5 years ago)
Author:
sam
Message:
  • mutualisation elts bs sm:tooltip et sm:link
  • sm:link/@target='subWindow' début.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionXhtmlTransf/widgets.xml.xsl

    r9214 r9401  
    5454                L'insertion du contenu du widget doit se faire par : <xsl0:apply-templates mode="content"/>. 
    5555        --> 
     56 
     57        <xsl0:import href="bsco:sm/web/sm_WLink.xml.xsl"/> 
     58        <xsl0:import href="bsco:sm/web/sm_WTooltip.xml.xsl"/> 
    5659 
    5760        <!-- ######### classAtt,classAttTitle : Gestion de l'attribut class="" dans les widgets. ########-->     
     
    260263        <xsl0:template match="sm:WTooltip" mode="content"> 
    261264                <xsl0:variable name="vOptions"> 
    262                         <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showDelay,concat('DELAY:',sm:tooltip/sm:behavior/@showDelay,','),'')"/> 
    263                         <xsl0:value-of select="si(sm:tooltip/sm:behavior/@showTime,concat('TEMP:',sm:tooltip/sm:behavior/@showTime,','),'')"/> 
    264                         <xsl0:value-of select="si(sm:tooltip/sm:behavior/@sticky,concat('STICKY:',sm:tooltip/sm:behavior/@sticky,','),'')"/> 
    265                         <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontal='leftOfCursor','LEFT:true,','')"/> 
    266                         <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,concat('OFFSETX:',sm:tooltip/sm:position/sm:relativeToCursor/@horizontalOffset,','),'')"/> 
    267                         <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@vertical='aboveCursor','ABOVE:true,','')"/> 
    268                         <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,concat('OFFSETY:',sm:tooltip/sm:position/sm:relativeToCursor/@verticalOffset,','),'')"/> 
    269                         <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToCursor/@followCursor='false','STATIC:true,','')"/> 
    270                         <xsl0:value-of select="si(sm:tooltip/sm:position/sm:relativeToAnchor,concat('FIXTYPE:&quot;node&quot;,FIX:[',si(sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,sm:tooltip/sm:position/sm:relativeToAnchor/@verticalOffset,'0'),'],'),'')"/> 
    271                         <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@baseObjectId,concat('FIXID:&quot;',sm:tooltip/sm:position/sm:fixed/@baseObjectId,'&quot;,'),'')"/> 
    272                         <xsl0:value-of select="si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset|sm:tooltip/sm:position/sm:fixed/@verticalOffset,concat('FIX:[',si(sm:tooltip/sm:position/sm:fixed/@horizontalOffset,sm:tooltip/sm:position/sm:fixed/@horizontalOffset,'0'),',',si(sm:tooltip/sm:position/sm:fixed/@verticalOffset,sm:tooltip/sm:position/sm:fixed/@verticalOffset,'0'),'],'),'')"/> 
    273                         <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxWidth,concat('MAXWIDTH:',sm:tooltip/sm:dimensions/@maxWidth,','),'')"/> 
    274                         <xsl0:value-of select="si(sm:tooltip/sm:dimensions/@maxHeight,concat('MAXHEIGHT:',sm:tooltip/sm:dimensions/@maxHeight,','),'')"/> 
    275                         <xsl0:value-of select="si(sm:tooltip/sm:shadow,'SHADOW:true,','')"/> 
     265                        <xsl0:call-template name="tooltipOptions"/><!-- Dans bsco:sm/web/sm_WTooltip.xml.xsl --> 
    276266                </xsl0:variable> 
    277267                <span> 
     
    312302        <xsl0:template match="sm:WLink" mode="content"> 
    313303                <xsl0:variable name="vOptions"> 
    314                         <xsl0:value-of select="si(sm:link/sm:position/sm:free/@width, concat('width=', sm:link/sm:position/sm:free/@width, ','), '')"/> 
    315                         <xsl0:value-of select="si(sm:link/sm:position/sm:free/@height, concat('height=', sm:link/sm:position/sm:free/@height, ','), '')"/> 
    316                         <xsl0:value-of select="si(sm:link/sm:position/sm:free/@top, concat('top=', sm:link/sm:position/sm:free/@top, ','), '')"/> 
    317                         <xsl0:value-of select="si(sm:link/sm:position/sm:free/@left, concat('left=', sm:link/sm:position/sm:free/@left, ','), '')"/> 
    318                         <xsl0:value-of select="si(sm:link/sm:position/sm:centerScreen, concat('width=', sm:link/sm:position/sm:centerScreen/@width, ',height=', sm:link/sm:position/sm:centerScreen/@height, ',left=&quot;', '+(screen.availWidth-', sm:link/sm:position/sm:centerScreen/@width, ')/2+&quot;,top=&quot;', '+(screen.availHeight-', sm:link/sm:position/sm:centerScreen/@height, ')/2+&quot;,'),'')"/> 
    319                         <xsl0:value-of select="si(sm:link/sm:position/sm:maximized, concat('top=0,left=0,width=', ',width=&quot;', '+screen.availWidth', '+&quot;,height=&quot;', '+screen.availHeight', '+&quot;,'),'')"/> 
    320                         <xsl0:value-of select="si(sm:link/sm:windowFeatures/@scrollbars, concat('scrollbars=', sm:link/sm:windowFeatures/@scrollbars, ','), '')"/> 
    321                         <xsl0:value-of select="si(sm:link/sm:windowFeatures/@resizable, concat('resizable=', sm:link/sm:windowFeatures/@resizable, ','), '')"/> 
    322                         <xsl0:value-of select="si(sm:link/sm:windowFeatures/@toolbar, concat('toolbar=', sm:link/sm:windowFeatures/@toolbar, ','), '')"/> 
    323                         <xsl0:value-of select="si(sm:link/sm:windowFeatures/@menubar, concat('menubar=', sm:link/sm:windowFeatures/@menubar, ','), '')"/> 
    324                         <xsl0:value-of select="si(sm:link/sm:windowFeatures/@location, concat('location=', sm:link/sm:windowFeatures/@location, ','), '')"/> 
    325                         <xsl0:value-of select="si(sm:link/sm:windowFeatures/@extraOptions, concat(sm:link/sm:windowFeatures/@extraOptions, ','), '')"/> 
     304                        <xsl0:call-template name="linkOptions"/><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 
    326305                </xsl0:variable> 
    327306                <a> 
    328                         <xsl0:call-template name="classAtt"/> 
    329                         <xsl0:choose> 
    330                                 <xsl0:when test="$vOptions!=''"> 
    331                                         <xsl0:attribute name="href">javascript:window.open(&quot;<xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/>&quot;,<xsl0:choose> 
    332                                                 <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
    333                                                 <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
    334                                                 <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
    335                                                 <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
    336                                         </xsl0:choose>,&quot;<xsl0:value-of select="substring($vOptions,0,string-length($vOptions))"/>&quot;)?void(0):void(0)</xsl0:attribute> 
    337                                 </xsl0:when> 
    338                                 <xsl0:otherwise> 
    339                                         <xsl0:attribute name="href"><xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/></xsl0:attribute> 
    340                                         <xsl0:attribute name="target"> 
    341                                                 <xsl0:choose> 
    342                                                         <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 
    343                                                         <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 
    344                                                         <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 
    345                                                         <xsl0:otherwise>_self</xsl0:otherwise> 
    346                                                 </xsl0:choose> 
    347                                         </xsl0:attribute> 
    348                                 </xsl0:otherwise> 
    349                         </xsl0:choose> 
     307                        <xsl0:call-template name="linkHref"><!-- Dans bsco:sm/web/sm_WLink.xml.xsl --> 
     308                                <xsl0:with-param name="pUrl"><xsl0:apply-templates mode="pathPageInContent" select="sm:link/*"/></xsl0:with-param> 
     309                                <xsl0:with-param name="pOptions"><xsl0:value-of select="$vOptions"/></xsl0:with-param> 
     310                        </xsl0:call-template> 
     311                        <xsl0:call-template name="classAtt"/> 
    350312                        <xsl0:call-template name="crossRefEntries"/> 
    351313                        <xsl0:if test="count(sm:labelTitle) != 0"> 
Note: See TracChangeset for help on using the changeset viewer.