home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
htmltitlec.tcl
< prev
next >
Wrap
Text File
|
1996-12-05
|
1KB
|
63 lines
#---------------------------------------------------------------------
#
# (c) Cayenne Software, Inc. 1996
#
# File: htmltitlec.tcl
# Description: see Document Generation Guide
#---------------------------------------------------------------------
set user_dir /user/papr/icase
# Change this variable setting
my_require "$user_dir/htmlcongen.tcl"
Class HtmlTitleConGen : {HtmlConGen} {
constructor
method destructor
method generate
}
constructor HtmlTitleConGen {class this name section} {
set this [HtmlConGen::constructor $class $this $name $section]
# Start constructor user section
# this is not a type-tied generator, so adjust the type
# part of the template name
$this templatePath $user_dir/htmltitle.asc
# End constructor user section
return $this
}
method HtmlTitleConGen::destructor {this} {
# Start destructor user section
# End destructor user section
$this HtmlConGen::destructor
}
method HtmlTitleConGen::generate {this} {
set titleFid [$this openAsc]
if {$titleFid == ""} {
return
}
# set department name here for the title page
set departmentName "<Department Name>"
# set title
set documentTitle "[[[$this section] document] title]"
#expand initial contents file
set contents [TextSection new]
expand_file $contents [$this templatePath]
$contents write $titleFid
close $titleFid
}
# Do not delete this line -- regeneration end marker