Rev 13340 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16272 | bpr | 1 | !!see scripts/oef/draw.phtml scripts/docu/primitives/draw.phtml scripts/primitives/draw.phtml |
1744 | bpr | 2 | !if $wims_read_parm!=$empty |
12490 | bpr | 3 | !set parms=$wims_read_parm |
4 | !set parms=!replace internal $ $ by $\ |
||
1744 | bpr | 5 | $ in $parms |
12490 | bpr | 6 | !set size=!line 1 of $parms |
7 | !distribute items $size into sx,sy |
||
8 | !set ppm=!line 2 to -1 of $parms |
||
1744 | bpr | 9 | !else |
12490 | bpr | 10 | !if $parms=$empty |
11 | !exit |
||
12 | !endif |
||
13 | !distribute items $parms into sx,sy |
||
14 | !set ppm=!item 3 to -1 of $parms |
||
1744 | bpr | 15 | !endif |
16 | |||
17 | !set ppm=!replace internal \filedir/ by $ in $ppm |
||
18 | !for pm in ppm, sx, sy |
||
12490 | bpr | 19 | !set $pm=!slashsubst $($pm) |
1744 | bpr | 20 | !next pp |
21 | !set ppm=!replace internal $ $ by $\ |
||
22 | $ in $ppm |
||
23 | !set pp=!trim $ppm |
||
24 | |||
16272 | bpr | 25 | !set a_=!word 1 of $pp |
26 | !if $a_=alt |
||
27 | !set a_=!line 1 of $pp |
||
28 | !set a_=!word 2 to -1 of $a_ |
||
12490 | bpr | 29 | !set pp=!line 2 to -1 of $pp |
16272 | bpr | 30 | !set ins_attr=alt="$a_" |
31 | !set wims_ins_alt=empty |
||
32 | !endif |
||
33 | !set a_=!word 1 of $pp |
||
34 | !if $a_=animate |
||
35 | !set a_=!line 1 of $pp |
||
36 | !set a_=!word 2 to -1 of $a_ |
||
37 | !set pp=!line 2 to -1 of $pp |
||
12490 | bpr | 38 | !if $printable!=yes |
16272 | bpr | 39 | !distribute items $a_ into ins_anim_frames, ins_anim_delay, ins_anim_loop |
12490 | bpr | 40 | !endif |
1744 | bpr | 41 | !endif |
8402 | bpr | 42 | !readproc $docdir/.def |
9261 | bpr | 43 | !! only in case that we come from adm/doc to read common_files |
44 | !! already read in other cases |
||
8402 | bpr | 45 | !if /doc isin $(docdir) |
46 | !set docdir1= !replace internal /doc by in $(docdir) |
||
13340 | bpr | 47 | !readproc $docdir1/var.proc |
8402 | bpr | 48 | !endif |
49 | !! end only |
||
7235 | bpr | 50 | !if $common_files=yes |
8402 | bpr | 51 | !set doc_=$docdir/files |
7235 | bpr | 52 | !else |
8402 | bpr | 53 | !if $common_files=$empty or $common_files=no |
54 | !set doc_=$docdir/$doc/files |
||
55 | !else |
||
56 | !set doc_=!replace datamodule by modules/data in $common_files |
||
57 | !endif |
||
7235 | bpr | 58 | !endif |
8402 | bpr | 59 | !set insdraw_filebase=$(doc_) |
1744 | bpr | 60 | !set insdraw_size=$sx,$sy |
61 | !set ins_align=middle |
||
62 | !insdraw $pp |