home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------
- #
- # (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
-