home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / DVI_MGR / dvimgr_s.lzh / dvi_fbi_hh / DVIDECW / texview.com < prev   
Text File  |  1993-07-27  |  2KB  |  68 lines

  1. $ !-----------------------------------------------------------------------!
  2. $ ! Filename: TEXVIEW.COM                                                 !
  3. $ ! Function: This is the interface between DECWindows FILEVIEW and the      !
  4. $ !           DVIDECW Tex Preview driver which runs in the DECWindows     !
  5. $ !           environment. Fileview selections are scanned and passed      !
  6. $ !           in the command line.                      !
  7. $ ! (c) 28-06-90 by Christian MARKUS                      !
  8. $ !-----------------------------------------------------------------------!
  9. $ !
  10. $ ! These definitions supersede global definitions and have to be corrected
  11. $ ! in other environments
  12. $ !
  13. $ define/nolog TEX_FONTS $DISK0:[TEX29.DVI.CM.]              ! path for fonts
  14. $ define/nolog TEX_INPUTS $disk2:[1050101.dvi_fbi_hh.dvidecw] ! path for .UID file
  15. $ dvidecw := $$disk2:[1050101.dvi_fbi_hh.dvidecw]dvidecw      ! path for .EXE file  
  16. $ ! 
  17. $ ! Check if files are selected in FileView
  18. $ !
  19. $ vue$get_selection_count
  20. $ vue$read count
  21. $ !
  22. $ ! If files are selected then go on processing
  23. $ !
  24. $ if count .ne. 0 then goto get_file
  25. $ !
  26. $ ! Ask for filename
  27. $ !
  28. $ vue$inquire_symbol "VUE$TEXVIEW_DVI Filename:"
  29. $ vue$read selection  
  30. $ !
  31. $ ! Check for valid filename
  32. $ !
  33. $ if "''selection'".eqs. "" then goto end
  34. $ goto do_dvi
  35. $ !
  36. $ ! Get Filename from FileView selection
  37. $ !
  38. $get_file:
  39. $ vue$get_next_selection
  40. $ vue$read selection
  41. $ !
  42. $ ! Start DVIDECW with filename argument
  43. $ !
  44. $do_dvi: 
  45. $ ! 
  46. $ ! Extract the filename from selection
  47. $ !
  48. $ filename= "''f$parse(selection,,,"NAME")'"
  49. $ !
  50. $ ! Check if file exists
  51. $ !                             
  52. $ if f$search("''filename'"+".dvi") .eqs. "" then goto end
  53. $ !
  54. $ ! Ask for processing parameter
  55. $ !
  56. $ vue$inquire_symbol "VUE$TEXVIEW Parameter:"
  57. $ vue$read parameter 
  58. $ !
  59. $ ! Write info box
  60. $ !
  61. $ vue$set_task_label "DVIDECW ''filename'"
  62. $ vue$popup_progress_box
  63. $ !
  64. $ dvidecw 'filename' 'parameter'
  65. $ !
  66. $end:
  67. $ exit
  68.