home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
wordlistco.tcl
< prev
next >
Wrap
Text File
|
1997-11-04
|
2KB
|
75 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)wordlistco.tcl /main/titanic/6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)wordlistco.tcl /main/titanic/6 4 Nov 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 $OTStyles(OTHdg$indentLevel)
$w InsertPara
$w FormatStyle $OTStyles(OTBodyText)
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