home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)worddocsec.tcl /main/titanic/3
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)worddocsec.tcl /main/titanic/3 20 Feb 1997 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
- require_module_file "wordsectio.tcl" word
-
- Class WordDocSection : {WordSection} {
- constructor
- method destructor
- method promoter
- method generateTypeContents
- method contentsGenerator
- attribute _contentsGenerator
- }
-
- constructor WordDocSection {class this name document} {
- set this [WordSection::constructor $class $this $name $document]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method WordDocSection::destructor {this} {
- set ref [$this _contentsGenerator]
- if {$ref != ""} {
- $ref _section ""
- }
- # Start destructor user section
- # End destructor user section
- $this WordSection::destructor
- }
-
- method WordDocSection::promoter {this} {
- $this WordSection::promoter
- $this uiType WordDoc
- $this extension doc
- $this operationClass manipulate
- if {! [isCommand [$this _contentsGenerator]]} {
- global classCount
- $this _contentsGenerator \
- [WordDocConGen new WordDocConGen$classCount $this]
- incr classCount
- }
- $this initContents Word.dot
- }
-
- method WordDocSection::generateTypeContents {this} {
-
- [$this contentsGenerator] generate
- }
-
- # Do not delete this line -- regeneration end marker
-
- method WordDocSection::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
- }
-
-