home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
ilcongen.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
1KB
|
54 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)ilcongen.tcl 1.3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)ilcongen.tcl 1.3 31 Oct 1995 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
Class IlConGen : {Object} {
method destructor
constructor
method openAsc
attribute ascPath
attribute templatePath
attribute section
}
method IlConGen::destructor {this} {
# Start destructor user section
# End destructor user section
}
constructor IlConGen {class this name section} {
set this [Object::constructor $class $this $name]
$this section $section
$this ascPath [$section docLocation]
set version [[[$section document] editor] version]
set type [string tolower [$section type]]
catch {$this templatePath [m4_path_name etc il${version}${type}.asc]}]
return $this
}
method IlConGen::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