home *** CD-ROM | disk | FTP | other *** search
- /* $VER: FW_InsertFormula.ms 1.0 (05.06.96)
- **
- **
- */
-
- options results
-
- fw=getclip("MS_FW")
-
- if ~show('p',fw) then
- do
- fw="FINALW.1"
- if ~show('p',fw) then
- exit
- end
-
- address MATHSCRIPT.1
-
- do i=0 while exists("T:MSFormula"||i)
- end
-
- name="T:MSFormula"||i
-
- export EPS name FORCE
-
- getboundingbox bbox
-
- hide
-
- address value fw
-
- status page "Insert"
- page=result
-
- setmeasure micropoints
-
- currentobject
- id=result
-
- x=-1
- y=-1
-
- if id~=0 then
- do
- getobjectcoords id
- page=word(result,1)
- x=word(result,2)
- y=word(result,3)
- deleteobject id
- end
-
- w=bbox.urx-bbox.llx
- w=trunc(w*10)
-
- h=bbox.ury-bbox.lly
- h=trunc(h*10)
-
- getimportprefs textflow linked display
-
- parse var result t l d
-
- importprefs display preview textflow none linked no
-
- /*insertimage name position page x y w h*/
-
- INSERTIMAGE "T:MSFormula"||i POSITION page x y w h
-
-
- screentofront
-
- redraw
-
- importprefs textflow t linked l display d
-
- exit
-
-
-