home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)illistcong.tcl /main/hindenburg/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)illistcong.tcl /main/hindenburg/2 10 Apr 1997 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "ilcongen.tcl"
-
- Class IlListConGen : {IlConGen} {
- constructor
- method destructor
- method generate
- method makeReport
- attribute section
- attribute ascFid
- }
-
- constructor IlListConGen {class this name section_1} {
- set this [IlConGen::constructor $class $this $name $section_1]
- # 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 il${version}doc.asc]
-
- # End constructor user section
- return $this
- }
-
- method IlListConGen::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this IlConGen::destructor
- }
-
- method IlListConGen::generate {this} {
-
- $this ascFid [$this openAsc]
-
- # check first if output file can be opened
- if {[$this ascFid] == ""} {
- return
- }
-
- # when the fold-level is lower than 2 the file name will be a chapter
- # else the file will be a section
-
- set header [TextSection new]
- set version [[[[$this section] document] editor] version]
- expand_file $header [m4_path_name etc il${version}doc.asc]
-
- set classes [TextSection new]
- expand_file $classes [m4_path_name etc il${version}class.asc]
-
- puts [$this ascFid] "[$header contents]"
- puts [$this ascFid] "\n[$classes contents]"
- puts [$this ascFid] "\n<!End Declarations>"
- case [[$this section] indentation] {
- {0 1} {puts [$this ascFid] "\n<\"Chapter\">"}
- {2} {puts [$this ascFid] "\n<\"Section\">"}
- {3} {puts [$this ascFid] "\n<\"Subsection\">"}
- {4} {puts [$this ascFid] "\n<\"Sub2section\">"}
- }
- puts [$this ascFid] "\n[[$this section] docTitle]"
-
- $this makeReport
-
- close [$this ascFid]
- }
-
- method IlListConGen::makeReport {this} {
-
- puts [$this ascFid] "\n<\"para\","
- puts [$this ascFid] "\tFont =\t\tF31@Z7@Lnl>\n"
-
- # get all the cad_classes and cad_containers from the
- # documented system
- foreach file [[[[$this section] document] documentedSystem] localFileVersions] {
- if {[[$file file] type] != "cad"} {
- continue
- }
- set fileName [[$file file] name]
- puts [$this ascFid] "$fileName<HR>"
- foreach comp [$file components] {
- if { [$comp type] == "cad_class" || \
- [$comp type] == "cad_container"} {
- set name ""
- foreach label [$comp labels] {
- if {[$label type] == "name"} {
- set name [$label value]
- }
- }
- if {$name != ""} {
- puts [$this ascFid] " -$name<HR>"
- }
- }
- }
- }
- }
-
- # Do not delete this line -- regeneration end marker
-
-