home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / pssection.tcl < prev    next >
Encoding:
Text File  |  1996-05-29  |  1.4 KB  |  64 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Westmount Technology    1994
  4. #
  5. #      File:           @(#)pssection.tcl    1.8
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)pssection.tcl    1.8   19 Jan 1996 Copyright 1994 Westmount Technology
  10.  
  11. # Start user added include file section
  12. # End user added include file section
  13.  
  14. require "localsecti.tcl"
  15.  
  16. Class PsSection : {LocalSection} {
  17.     constructor
  18.     method destructor
  19.     method promoter
  20.     method print
  21.     method preview
  22. }
  23.  
  24. constructor PsSection {class this name document} {
  25.     set this [LocalSection::constructor $class $this $name $document]
  26.     # Start constructor user section
  27.     # End constructor user section
  28.     return $this
  29. }
  30.  
  31. method PsSection::destructor {this} {
  32.     # Start destructor user section
  33.     # End destructor user section
  34.     $this LocalSection::destructor
  35. }
  36.  
  37. method PsSection::promoter {this document} {
  38.     $this LocalSection::promoter $document
  39.  
  40.     $this uiType PS
  41. }
  42.  
  43. method PsSection::print {this} {
  44.  
  45.     set cmd [list \
  46.         "[m4_var get M4_ps_printer] [$this docLocation]" \
  47.         [$this uiName] \
  48.     ]
  49.     $this execute "$cmd"
  50. }
  51.  
  52. method PsSection::preview {this} {
  53.  
  54.     set cmd [list \
  55.         "previewer PsSection" \
  56.         [$this docLocation] \
  57.         [$this uiName] \
  58.     ]
  59.     $this execute "$cmd" m4
  60. }
  61.  
  62. # Do not delete this line -- regeneration end marker
  63.  
  64.