Changeset 7484


Ignore:
Timestamp:
11/24/06 10:26:31 (5 years ago)
Author:
sys
Message:

Paramétrage mainView

Location:
trunk/Wsp_Modeling
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/es/content/wsp/wspDefinition/xml.xed.xml

    r6978 r7484  
    119119                                                                <childs> 
    120120                                                                        <se:choice se:card="+"> 
    121                                                                                 <element se:bind="element" se:name="sm:htmlPreviewBlock"> 
     121                                                                                <element se:bind="element" se:name="sm:previewBlock"> 
    122122                                                                                        <atts> 
    123123                                                                                                <se:ref se:refid="att_name"/> 
    124                                                                                                 <attribute se:bind="attribute" se:name="htmlPreviewKey" se:mandat="true"> 
     124                                                                                                <!-- Problème : les bs gèrent la preview ia la donnée crossModels, il  
     125                                                                                                est donc impossible d'enchainer de modèle en modèle différentes previewKey. 
     126                                                                                                <attribute se:bind="attribute" se:name="previewKey" se:mandat="true"> 
    125127                                                                                                        <wordsInput trim="true"/> 
    126128                                                                                                </attribute> 
     129                                                                                                 --> 
    127130                                                                                        </atts> 
    128131                                                                                </element> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/organisationMainview.xul.xsl

    r7480 r7484  
    7070        </xsl:template> 
    7171         
    72         <xsl:template match="sm:htmlPreviewBlock" mode="mainview"> 
    73                 <blockcontent label="{@name}" xsloncontent="{resultatAgent('//preview.xsl', 'act:')}"/> 
     72        <xsl:template match="sm:previewBlock" mode="mainview"> 
     73                <blockcontent titleblock="{@name}" xsloncontent="{resultatAgent('//preview.xsl', 'act:')}"/> 
    7474        </xsl:template> 
    7575        <xsl:template match="sm:technicalInfoBlock" mode="mainview"> 
    76                 <infotechblock label="{@name}"/> 
     76                <infotechblock titleblock="{@name}"/> 
    7777        </xsl:template> 
    7878        <xsl:template match="sm:xmlViewBlock" mode="mainview"> 
    79                 <srcxmlblock label="{@name}"/> 
     79                <srcxmlblock titleblock="{@name}"/> 
    8080        </xsl:template> 
    8181 
    8282        <xsl:template match="sm:formEditorTab[@display!='hidden']" mode="mainview"> 
    83                 <sctabxmleditor label="{@name}" code="formEdit"  
    84                         indent="{sm:authoring/sm:formEditor/@indentXml}"  
    85                         icon="chrome://scenaricms/content/widgets/sctab/icon/edit.png"  
    86                         model="{resultatAgent('//form.xed.xml', 'act:')}" 
    87                         collapsed="{@display='extra'}"/> 
     83                <xsl:variable name="vEditorModel" select="resultatAgent(concat('//form', @formEditorKey, '.xed.xml'), 'act:')"/> 
     84                <xsl:if test="$vEditorModel"> 
     85                        <sctabxmleditor label="{@name}" code="formEdit"  
     86                                indent="{sm:authoring/sm:formEditor/@indentXml}"  
     87                                icon="chrome://scenaricms/content/widgets/sctab/icon/edit.png"  
     88                                model="{$vEditorModel}" 
     89                                collapsed="{@display='extra'}"/> 
     90                </xsl:if> 
    8891        </xsl:template> 
    8992 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/_common/sm/organisationPrims.xml

    r7480 r7484  
    253253         
    254254        <affichage code="preview.xsl"> 
    255                 <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/preview.xsl')</urlPage> 
     255                <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), codeAgent(.))</urlPage> 
    256256                <page> 
    257257                        <modele>xsl-xhtml</modele> 
     
    329329        <valeur code="xedRefUrlForm2" racine="sm:authoring/sm:formEditor[@key]" codecomposant="concat('xedRefUrlForm', @key)"> 
    330330                <source type="xpathOnSrc-dynamique">concat( 
    331                         resultatAgent(concat('//form_', @key, '.xed.xml'), 'act:'), 
     331                        resultatAgent(concat('//form', @key, '.xed.xml'), 'act:'), 
    332332                        '#', 
    333333                        resultatAgent('//codeModel'), 
     
    339339        <!-- @API idem xedRefUrlFormHideHeader pour une key spéciale de formEditor. 
    340340        --> 
    341         <valeur code="xedRefUrlFormHideHeader2" racine="sm:authoring/sm:formEditor[@key]" codecomposant="concat('xedRefUrlFormHideHeader', @key)">> 
     341        <valeur code="xedRefUrlFormHideHeader2" racine="sm:authoring/sm:formEditor[@key]" codecomposant="concat('xedRefUrlFormHideHeader', @key)"> 
    342342                <source type="xpathOnSrc-dynamique">concat( 
    343                         resultatAgent(concat('//form_', @key, '.xed.xml'), 'act:'), 
     343                        resultatAgent(concat('//form', @key, '.xed.xml'), 'act:'), 
    344344                        '#', 
    345345                        resultatAgent('//codeModel'), 
     
    367367         
    368368        <!-- Page Xed Form spécifique. --> 
    369         <affichage code="form2.xed.xml" racine="sm:authoring/sm:formEditor[@key]" codecomposant="concat('form_', @key, '.xed.xml')" > 
     369        <affichage code="form2.xed.xml" racine="sm:authoring/sm:formEditor[@key]" codecomposant="concat('form', @key, '.xed.xml')" > 
    370370                <urlPage type="xpath-dynamique">concat('content/', resultatAgent('//codeModel'), '/', codeAgent(.))</urlPage> 
    371371                <page> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_wspDef.xml

    r7480 r7484  
    9797                                        <sm:formEditorTab name="Edition" display="visible" formEditorKey=""/> 
    9898                                        <sm:blocksTab name="Visualisation" display="visible"> 
    99                                                 <sm:htmlPreviewBlock name="Aperçu du contenu" htmlPreviewKey=""/> 
     99                                                <sm:previewBlock name="Aperçu du contenu"/> 
    100100                                        </sm:blocksTab> 
    101101                                        <sm:textEditorTab name="Edition textuelle" display="extra"/> 
Note: See TracChangeset for help on using the changeset viewer.