home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)wd97listco.tcl /main/titanic/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)wd97listco.tcl /main/titanic/2 4 Nov 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
-
- Class Wd97ListConGen : {Object} {
- method destructor
- constructor
- method generate
- attribute section
- }
-
- method Wd97ListConGen::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- constructor Wd97ListConGen {class this name section} {
- set this [Object::constructor $class $this $name]
- $this section $section
- return $this
- }
-
- method Wd97ListConGen::generate {this} {
- set app [[[docTool document] editor] app]
- set docs [$app property Documents]
- set dest [[$this section] docLocation]
- # open file
- set d [$docs Open $dest]
- # set in Master Document View
- set activeWindow [$d property ActiveWindow]
- set view [$activeWindow property View]
- $view property Type 5
- # expand sub documents
- set subDocs [$d property SubDocuments]
- $subDocs property Expanded 1.0
- # delete current contents
- set cnt [$d property Content]
- $cnt Select
- $cnt Delete
-
- set indentLevel [[$this section] indentation]
- $cnt InsertAfter [[$this section] uiName]
- $cnt property Style $OTStyles(OTHdg$indentLevel)
- $cnt Collapse 0
- $cnt InsertParagraphAfter
- $cnt Collapse 0
- $cnt property Style $OTStyles(OTBodyText)
-
- foreach file [[[[$this section] document] documentedSystem] localFileVersions] {
- if {[[$file file] type] != "cad"} {
- continue
- }
- set fileName [[$file file] name]
- $cnt InsertAfter $fileName
- $cnt InsertParagraphAfter
-
- 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 != ""} {
- $cnt InsertAfter $name
- $cnt InsertParagraphAfter
- }
- }
- }
- }
- }
- $d Close -1
- }
-
- # Do not delete this line -- regeneration end marker
-
-