home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)fmbooksect.tcl 1.3
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)fmbooksect.tcl 1.3 21 Sep 1995 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- require "fmbookcong.tcl"
- # End user added include file section
-
- require "fmsection.tcl"
-
- Class FmBookSection : {FmSection} {
- constructor
- method destructor
- method promoter
- method generateTypeContents
- method contentsGenerator
- attribute _contentsGenerator
- }
-
- constructor FmBookSection {class this name document} {
- set this [FmSection::constructor $class $this $name $document]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method FmBookSection::destructor {this} {
- set ref [$this _contentsGenerator]
- if {$ref != ""} {
- $ref _section ""
- }
- # Start destructor user section
- # End destructor user section
- $this FmSection::destructor
- }
-
- method FmBookSection::promoter {this document} {
- $this FmSection::promoter $document
-
- $this uiType Book
- global classCount
- $this _contentsGenerator \
- [FmBookConGen new FmBookConGen$classCount $this]
- incr classCount
- set version [[[$this document] editor] version]
- $this initContents fm${version}book.con
- }
-
- method FmBookSection::generateTypeContents {this} {
-
- [$this contentsGenerator] generate
- }
-
- # Do not delete this line -- regeneration end marker
-
- method FmBookSection::contentsGenerator {this args} {
- if {$args == ""} {
- return [$this _contentsGenerator]
- }
- set ref [$this _contentsGenerator]
- if {$ref != ""} {
- $ref _section ""
- }
- set obj [lindex $args 0]
- if {$obj != ""} {
- $obj _section $this
- }
- $this _contentsGenerator $obj
- }
-
-