Subversion Repositories wimsdev

Rev

Rev 16212 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !!see scripts/oef/draw.phtml modules/adm/doc/primitives/draw.phtml scripts/primitives/draw.phtml
  2. !if $wims_read_parm!=$empty
  3.   !set parms=$wims_read_parm
  4.   !set parms=!replace internal $        $ by $\
  5. $ in $parms
  6.   !set size=!line 1 of $parms
  7.   !distribute items $size into sx,sy
  8.   !set ppm=!line 2 to -1 of $parms
  9. !else
  10.   !if $parms=$empty
  11.     !exit
  12.   !endif
  13.   !distribute items $parms into sx,sy
  14.   !set ppm=!item 3 to -1 of $parms
  15. !endif
  16.  
  17. !set ppm=!replace internal \filedir/ by $ in $ppm
  18. !for pm in ppm, sx, sy
  19.   !set $pm=!slashsubst $($pm)
  20. !next pp
  21. !set ppm=!replace internal $    $ by $\
  22. $ in $ppm
  23. !set pp=!trim $ppm
  24.  
  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_
  29.   !set pp=!line 2 to -1 of $pp
  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
  38.   !if $printable!=yes
  39.     !distribute items $a into ins_anim_frames, ins_anim_delay, ins_anim_loop
  40.   !endif
  41. !endif
  42. !readproc $docdir/.def
  43. !! only in case that we come from adm/doc to read common_files
  44. !! already read in other cases
  45. !if $common_files!=yes
  46.   !if /doc isin $(docdir)
  47.     !set docdir1= !replace internal /doc by in $(docdir)
  48.     !readproc $docdir1/var.proc
  49.   !else
  50.     !readproc $docdir/var.proc
  51.   !endif
  52. !endif
  53. !! end only
  54. !if $common_files=yes
  55.   !set doc_=$docdir/files
  56. !else
  57.   !if $common_files=$empty or $common_files=no
  58.     !set doc_=$docdir/$doc/files
  59.   !else
  60.     !set doc_=!replace datamodule by modules/data in $common_files
  61.   !endif
  62. !endif
  63. !set insdraw_filebase=$(doc_)
  64. !set insdraw_size=$sx,$sy
  65. !set ins_align=middle
  66. !insdraw $pp
  67.