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

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Westmount Technology    1994
  4. #
  5. #      File:           @(#)ildocsecti.tcl    1.5
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)ildocsecti.tcl    1.5   03 Nov 1995 Copyright 1994 Westmount Technology
  10.  
  11. # Start user added include file section
  12. require "ildocconge.tcl"
  13. # End user added include file section
  14.  
  15. require "ilsection.tcl"
  16.  
  17. Class IlDocSection : {IlSection} {
  18.     constructor
  19.     method destructor
  20.     method promoter
  21.     method generateTypeContents
  22.     method contentsGenerator
  23.     attribute _contentsGenerator
  24. }
  25.  
  26. constructor IlDocSection {class this name document} {
  27.     set this [IlSection::constructor $class $this $name $document]
  28.     # Start constructor user section
  29.     # End constructor user section
  30.     return $this
  31. }
  32.  
  33. method IlDocSection::destructor {this} {
  34.     set ref [$this _contentsGenerator]
  35.     if {$ref != ""} {
  36.         $ref _section ""
  37.     }
  38.     # Start destructor user section
  39.     # End destructor user section
  40.     $this IlSection::destructor
  41. }
  42.  
  43. method IlDocSection::promoter {this document} {
  44.     $this extension doc
  45.     $this IlSection::promoter $document
  46.  
  47.     $this uiType Document
  48.     global classCount
  49.     $this _contentsGenerator [IlDocConGen new IlDocConGen$classCount $this]
  50.     incr classCount
  51.  
  52. }
  53.  
  54. method IlDocSection::generateTypeContents {this} {
  55.  
  56.     [$this contentsGenerator] generate
  57. }
  58.  
  59. # Do not delete this line -- regeneration end marker
  60.  
  61. method IlDocSection::contentsGenerator {this args} {
  62.     if {$args == ""} {
  63.         return [$this _contentsGenerator]
  64.     }
  65.     set ref [$this _contentsGenerator]
  66.     if {$ref != ""} {
  67.         $ref _section ""
  68.     }
  69.     set obj [lindex $args 0]
  70.     if {$obj != ""} {
  71.         $obj _section $this
  72.     }
  73.     $this _contentsGenerator $obj
  74. }
  75.  
  76.