home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)fmtitlecon.tcl 1.2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)fmtitlecon.tcl 1.2 23 Jun 1995 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
- require "fmcongen.tcl"
-
- Class FmTitleConGen : {FmConGen} {
- constructor
- method destructor
- method generate
- }
-
- constructor FmTitleConGen {class this name section} {
- set this [FmConGen::constructor $class $this $name $section]
- # Start constructor user section
-
- # this is not a type-tied generator, so adjust the type
- # part of the tempate name
- set version [[[[$this section] document] editor] version]
- $this templatePath [m4_path_name etc fm${version}title.mif]
-
- # End constructor user section
- return $this
- }
-
- method FmTitleConGen::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this FmConGen::destructor
- }
-
- method FmTitleConGen::generate {this} {
-
- set mifFid [$this openMif]
-
- # check first if output file can be opened
- if {$mifFid == ""} {
- return
- }
- # Make a section and expand the template into it
- set contents [TextSection new]
- expand_file $contents [$this templatePath]
-
- # Write the contents into the MIF-file
- $contents write $mifFid
- close $mifFid
-
- $this mif2Bin
- }
-
- # Do not delete this line -- regeneration end marker
-
-