home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
worddocsec.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
76 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)worddocsec.tcl 1.7
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)worddocsec.tcl 1.7 04 Jan 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
require "wordsectio.tcl"
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 document} {
$this uiType WordDoc
$this extension doc
$this WordSection::promoter $document
$this operationClass manipulate
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
}