home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
iltitlecon.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
72 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)iltitlecon.tcl 1.3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)iltitlecon.tcl 1.3 15 Feb 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
require "ilcongen.tcl"
Class IlTitleConGen : {IlConGen} {
constructor
method destructor
method generate
}
constructor IlTitleConGen {class this name section} {
set this [IlConGen::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
set version [[[[$this section] document] editor] version]
$this templatePath [m4_path_name etc il${version}doc.asc]
# End constructor user section
return $this
}
method IlTitleConGen::destructor {this} {
# Start destructor user section
# End destructor user section
$this IlConGen::destructor
}
method IlTitleConGen::generate {this} {
set titleFid [$this openAsc]
if {$titleFid == ""} {
return
}
# set department name here for the title page
set departmentName "<Department Name>"
set header [TextSection new]
expand_file $header [$this templatePath]
set classes [TextSection new]
set version [[[[$this section] document] editor] version]
set template [m4_path_name etc il${version}class.asc]
expand_file $classes $template
# header and classes are positioned in title.con template
set contents [TextSection new]
set template [m4_path_name etc il${version}title.asc]
expand_file $contents $template
$contents write $titleFid
close $titleFid
}
# Do not delete this line -- regeneration end marker