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

  1. #---------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software, Inc. 1996 
  4. #
  5. #      File:           htmlsection.tcl    
  6. #      Description:    see Document Generation Guide     
  7. #---------------------------------------------------------------------
  8.  
  9. require "localsecti.tcl"
  10.  
  11. Class HtmlSection : {LocalSection} {
  12.     constructor
  13.     method destructor
  14.     method promoter
  15.     method edit
  16.     method show
  17.     method preview
  18. }
  19.  
  20. constructor HtmlSection {class this name document} {
  21.     set this [LocalSection::constructor $class $this $name $document]
  22.     # Start constructor user section
  23.     # End constructor user section
  24.     return $this
  25. }
  26.  
  27. method HtmlSection::destructor {this} {
  28.     # Start destructor user section
  29.     # End destructor user section
  30.     $this LocalSection::destructor
  31. }
  32.  
  33. method HtmlSection::promoter {this document} {
  34.     $this DocSection::promoter $document
  35.     $this FileVObj::promoter
  36.  
  37.     $this operationClass manipulate
  38. }
  39.  
  40. method HtmlSection::edit {this} {
  41.     
  42.     # edit with the document editor command
  43.     [[$this document] editor] edit $this
  44. }
  45.  
  46. method HtmlSection::show {this} {
  47.  
  48.     # show with the document editor command
  49.     [[$this document] editor] show $this
  50. }
  51.  
  52. method HtmlSection::preview {this} {
  53.     
  54.     # preview with the document editor command
  55.     [[$this document] editor] preview $this
  56. }
  57.  
  58. # Do not delete this line -- regeneration end marker
  59.  
  60.