Project

General

Profile

root / branches / sc50-v2.0 / sources2-0-011 / academic / gen / paper / transf / binaries / remoteImage / remoteImage.transf @ 322

1
<?xml version="1.0"?>
2
<sm:remoteBinaryOdTransf xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
3
	<sm:model sc:refUri="/binaries/remoteImage/remoteImage.model"/>
4
	<sm:fullTitleText>
5
		<sm:returnFirst>
6
			<sm:callBinaryMeta/>
7
			<sm:remoteBinaryFileName format="trimExtension"/>
8
		</sm:returnFirst>
9
	</sm:fullTitleText>
10
	<sm:shortTitleText>
11
		<sm:remoteBinaryFileName/>
12
	</sm:shortTitleText>
13
	<sm:content>
14
		<sm:choose>
15
			<sm:when xpath="starts-with(computeStrAgent('//remoteContentType'), 'image/svg+xml')">
16
				<sm:Widget sc:refUri="/academic/gen/paper/widg/noIncludeRes.odwidget">
17
					<sm:odContentZone key="zData">
18
						<sm:remoteBinaryFileName/>
19
					</sm:odContentZone>
20
				</sm:Widget>
21
			</sm:when>
22
			<sm:otherwise>
23
				<sm:WImage globalStyle="viewPicture">
24
					<sm:binaryUrl>
25
						<sm:imageTransform maxTargetDpi="300">
26
							<sm:scaleFromStandardCharSize targetFontSizeInPt="10">
27
								<sm:ifNoStandardCharSize>
28
									<sm:scale ratio="1" sourceDpi="300"/>
29
								</sm:ifNoStandardCharSize>
30
							</sm:scaleFromStandardCharSize>
31
							<sm:dimBounds unit="cm" maxWidth="15" maxHeight="22">
32
								<sm:rotate ifUndefined="false"/>
33
							</sm:dimBounds>
34
							<sm:outputAUTO/>
35
						</sm:imageTransform>
36
					</sm:binaryUrl>
37
				</sm:WImage>
38
			</sm:otherwise>
39
		</sm:choose>
40
	</sm:content>
41
</sm:remoteBinaryOdTransf>
(1-1/6)