home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
ilcatconge.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
92 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)ilcatconge.tcl 1.2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)ilcatconge.tcl 1.2 23 Jun 1995 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
require "ilcongen.tcl"
Class IlCatConGen : {IlConGen} {
method destructor
constructor
method generate
method section
attribute _section
}
method IlCatConGen::destructor {this} {
set ref [$this _section]
if {$ref != ""} {
$ref _contentsGenerator ""
}
# Start destructor user section
# End destructor user section
$this IlConGen::destructor
}
constructor IlCatConGen {class this name section} {
set this [IlConGen::constructor $class $this $name $section]
$this _section $section
$section _contentsGenerator $this
return $this
}
method IlCatConGen::generate {this} {
set catFid [$this openAsc]
if {$catFid == ""} {
return
}
# tocName used in template
set tocName ""
foreach section [[$this section] getTree] {
if {[$section docType] == "Toc"} {
set tocName [$section uiName]
break
}
}
# departmentName used in template
set departmentName "<Department Name>"
set header [TextSection new]
set version [[[[$this section] document] editor] version]
expand_file $header [m4_path_name etc il${version}doc.asc]
# The header is placed in the catalog.con template
set contents [TextSection new]
expand_file $contents [m4_path_name etc il${version}catalog.asc]
$contents write $catFid
close $catFid
}
# Do not delete this line -- regeneration end marker
method IlCatConGen::section {this args} {
if {$args == ""} {
return [$this _section]
}
set ref [$this _section]
if {$ref != ""} {
$ref _contentsGenerator ""
}
set obj [lindex $args 0]
if {$obj != ""} {
$obj _contentsGenerator $this
}
$this _section $obj
}