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

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Westmount Technology    1994
  4. #
  5. #      File:           @(#)fmmmlsecti.tcl    1.9
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)fmmmlsecti.tcl    1.9   12 Feb 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 FmMmlSection : {LocalSection} {
  17.     constructor
  18.     method destructor
  19.     method promoter
  20.     method edit
  21.     method show
  22.     method print
  23. }
  24.  
  25. constructor FmMmlSection {class this name document} {
  26.     set this [LocalSection::constructor $class $this $name $document]
  27.     # Start constructor user section
  28.     # End constructor user section
  29.     return $this
  30. }
  31.  
  32. method FmMmlSection::destructor {this} {
  33.     # Start destructor user section
  34.     # End destructor user section
  35.     $this LocalSection::destructor
  36. }
  37.  
  38. method FmMmlSection::promoter {this document} {
  39.     $this extension mml
  40.     $this DocSection::promoter $document
  41.  
  42.     $this uiType MML
  43. }
  44.  
  45. method FmMmlSection::edit {this} {
  46.  
  47.     set cmd [list editor [$this docLocation] [$this uiName]]
  48.     $this execute "$cmd" m4
  49. }
  50.  
  51. method FmMmlSection::show {this} {
  52.  
  53.     set cmd [list viewer [$this docLocation] [$this uiName]]
  54.     $this execute "$cmd" m4
  55. }
  56.  
  57. method FmMmlSection::print {this} {
  58.  
  59.     set cmd [list \
  60.         "[m4_var get M4_a_printer] [$this docLocation]" \
  61.         [$this uiName] \
  62.     ]
  63.     $this execute "$cmd"
  64. }
  65.  
  66. # Do not delete this line -- regeneration end marker
  67.  
  68.