home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
documents.tcl
< prev
next >
Wrap
Text File
|
1997-08-26
|
2KB
|
83 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1995
#
# File: @(#)documents.tcl /main/titanic/2
# Author: Harm Leijendeckers
# Description: Report on documents
# Usage in: PhaseVersion and higher
#
#---------------------------------------------------------------------------
# SccsId = @(#)documents.tcl /main/titanic/2 26 Aug 1997 Copyright 1995 Cadre Technologies Inc.
Class ReportDocuments : {ReportBase} {
constructor
attribute printProps
method phaseReport
}
constructor ReportDocuments {class this} {
set this [ReportBase::constructor $class $this]
if { [lsearch $Options "properties"] != -1 } {
$this printProps 1
} else {
$this printProps 0
}
$this reportName Documents
return $this
}
method ReportDocuments::phaseReport {this} {
set allDocuments [query "system.type == document" \
[[$this phaseV] systemVersions]]
if [lempty $allDocuments] { return 0 }
set report [$this report]
$report header {
[$this report] print Document 26
[$this report] print Version 16
[$this report] print Status 11
[$this report] print Link 14
[$this report] print "Documented System" 31
[$this report] print "Editor" 11
[$this report] print Directory 17 line
[$this report] line
}
foreach sysV [osort system.name $allDocuments] {
$report print [[$sysV system] name] 25
$report space
$report print [$sysV versionName] 15
$report space
$report print [$sysV status] 10
$report space
set link [[$this phaseV] findSystemVersionLink -bySystemVersion $sysV]
$report print [$link status] 13
$report space
$report print [query -s value "name == doc_sys" [$sysV properties]] 30
$report space
$report print [query -s value "name == editor" [$sysV properties]] 10
$report space
$report print [query -s value "name == directory" [$sysV properties]] 17
$report line
if [$this printProps] {
$this showProperties $sysV
}
}
$report page
$report remove header
return 0
}
set executeMe [ReportDocuments new]