home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)wordlistco.tcl /main/hindenburg/6
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)wordlistco.tcl /main/hindenburg/6 10 Apr 1997 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
-
- Class WordListConGen : {Object} {
- method destructor
- constructor
- method generate
- attribute section
- }
-
- method WordListConGen::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- constructor WordListConGen {class this name section} {
- set this [Object::constructor $class $this $name]
- $this section $section
- return $this
- }
-
- method WordListConGen::generate {this} {
- set w [[[docTool document] editor] wordObj]
- set dest [[$this section] docLocation]
- $w FileOpen $dest
- $w EditSelectAll
- $w EditClear
- set indentLevel [[$this section] indentation]
- $w chkInsert [[$this section] uiName]
- $w FormatStyle "OT Hdg $indentLevel"
- $w InsertPara
- $w FormatStyle "OT Body Text"
-
-
- foreach file [[[[$this section] document] documentedSystem] localFileVersions] {
- if {[[$file file] type] != "cad"} {
- continue
- }
- set fileName [[$file file] name]
- $w chkInsert $fileName
- $w InsertPara
-
- foreach comp [$file components] {
- if { [$comp type] == "cad_class" || \
- [$comp type] == "cad_container"} {
- foreach label [$comp labels] {
- set name ""
- if {[$label type] == "name"} {
- set name " [$label value]"
- }
- if {$name != ""} {
- $w chkInsert $name
- $w InsertPara
- }
- }
- }
- }
- }
- $w FileSaveAs
- }
-
- # Do not delete this line -- regeneration end marker
-
-