home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)s_editpast.tcl /main/titanic/4
- # Author: voyager
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)s_editpast.tcl /main/titanic/4 2 Oct 1997 Copyright 1997 Cayenne Software Inc.
-
- require editpastec.tcl
-
- method EditPasteCmd::selectVersion {this currentObj obj msg} {
- upvar $msg message
- if [$obj isA SystemFileReference] {
- # docwriter module stuff
- set catched [catch {
- set fileV [[$obj info] set FileVersion]
- set file [$fileV file]
-
- require_module_file "docgenerat.tcl" docwriter
- require_module_file "docstructp.tcl" docwriter
- DocStructPart new .docStrucPart \
- -documentVersion $currentObj \
- -sectionName "[$file qualifiedName :]_[$file type]" \
- -sectionType "[$file type]" \
- -fileVersion $fileV
- set section [DocGenerator::createSection .docStrucPart]
- .docStrucPart delete
- lappend removeList $obj
- lappend sectionList $section
- } message]
- } else {
- # default stuff
- set catched [catch {$currentObj selectVersion $obj $confV} message]
- }
-
- return $catched
- }
-
- method EditPasteCmd::levelValidate {this currentObj} {
-
- # DocGenerator requires the ClientContext
- # to be at least at Config level...
- $this validAfterLevelChange \
- [expr 1 - [[$currentObj browsUiObj] isA Document]]
-
- }
-