home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
htmlcongen.tcl
< prev
next >
Wrap
Text File
|
1996-12-05
|
1KB
|
48 lines
#---------------------------------------------------------------------
#
# (c) Cayenne Software, Inc. 1996
#
# File: htmlcongen.tcl
# Description: see Document Generation Guide
#---------------------------------------------------------------------
Class HtmlConGen : {Object} {
method destructor
constructor
method openAsc
attribute ascPath
attribute templatePath
attribute section
}
method HtmlConGen::destructor {this} {
# Start destructor user section
# End destructor user section
}
constructor HtmlConGen {class this name section} {
set this [Object::constructor $class $this $name]
$this section $section
$this ascPath [$section docLocation]
set type [string tolower [$section type]]
set user_dir "/user/papr/icase"
catch {$this templatePath $user_dir/html${type}.asc}]
return $this
}
method HtmlConGen::openAsc {this} {
# Open the ASC-file
if {[catch {set asc [open [$this ascPath] w]} rsn]} {
wmtkerror "Error on opening '[$this ascPath]' for writing: $rsn"
return ""
}
return $asc
}
#
# Do not delete this line -- regeneration end marker