Changeset 12922


Ignore:
Timestamp:
03/01/09 16:18:04 (3 years ago)
Author:
sys
Message:

Preview images: dépendant su standardCharSize si activé dans le .model

Location:
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_imagePrim.xml

    r12734 r12922  
    239239                "[![agent=//mainview.xul;arguments=act:]!]", 
    240240                "[![agent=//preview.xul;arguments=act:]!]", 
    241                 "transform=img2img&outType=[![agent=//formatFromMimeType]!]&sizeRules=Px(Bounds(maxW'360'maxH'160'))" 
     241                "transform=img2img&outType=[![agent=//formatFromMimeType]!]&sizeRules=Px([![if;agent=//isStandardCharSizeEnabled]!]ScSCS(fontPt'10')[![endif]!]Bounds(maxW'360'maxH'160'))" 
    242242                ); 
    243243        vPack.registerModel(vModel); 
     
    357357                <source type="xpath-statique">boolean(sm:structure/sm:meta)</source> 
    358358        </valeur> 
     359        <valeur code="isStandardCharSizeEnabled"> 
     360                <source type="xpath-statique">bool2Str(sm:authoring/sm:sizeBlock/sm:standardCharSize)</source> 
     361        </valeur> 
    359362         
    360363        <!-- Page Xed Form. --> 
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_imagePrim/preview.xul.xsl

    r11457 r12922  
    5555                        <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" align="center" style="border:1px solid gray; background-color:#FFFFFF;"> 
    5656                                <script src="chrome://scenaricms/content/view/baseview.js"/> 
    57                                 <itemimage transform="transform=img2img&amp;outType={resultatAgent('//formatFromMimeType')}&amp;sizeRules=Px(Bounds(maxW'360'maxH'160'))" scaleproportionnal="true" flex="1"/> 
     57                                <itemimage transform="transform=img2img&amp;outType={resultatAgent('//formatFromMimeType')}&amp;sizeRules=Px({si(resultatAgent('//isStandardCharSizeEnabled'), 'ScSCS(fontPt''10'')')}Bounds(maxW'360'maxH'160'))" scaleproportionnal="true" flex="1"/> 
    5858                        </window> 
    5959        </xsl:template> 
Note: See TracChangeset for help on using the changeset viewer.