home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
htmldocedi.tcl
< prev
next >
Wrap
Text File
|
1996-12-05
|
2KB
|
69 lines
#---------------------------------------------------------------------
#
# (c) Cayenne Software, Inc. 1996
#
# File: htmldocedi.tcl
# Description: see Document Generation Guide
#---------------------------------------------------------------------
require "doceditor.tcl"
Class HtmlDocEditor : {DocEditor} {
constructor
method destructor
method edit
method show
method preview
}
constructor HtmlDocEditor {class this name} {
set this [DocEditor::constructor $class $this $name]
# Start constructor user section
$this name Html
$this localSectionTypes "[$this localSectionTypes] Doc Title"
# End constructor user section
return $this
}
method HtmlDocEditor::destructor {this} {
# Start destructor user section
# End destructor user section
$this DocEditor::destructor
}
method HtmlDocEditor::edit {this docSection} {
set cmd "textedit [$docSection docLocation]"
wmtkmessage "Starting edit for section '[$docSection name]'"
if {![$docSection execute "$cmd" xtool]} {
wmtkerror "[$docSection uiName]: edit failed"
}
wmtkmessage ""
}
method HtmlDocEditor::show {this docSection} {
set cmd "view [$docSection docLocation]"
wmtkmessage "Starting show for section '[$docSection name]'"
if {![$docSection execute "$cmd" xtool]} {
wmtkerror "[$docSection uiName]: show failed"
}
wmtkmessage ""
}
method HtmlDocEditor::preview {this docSection} {
wmtkmessage "File location is: [$docSection docLocation]"
set cmd "netscape file:[$docSection docLocation]"
wmtkmessage "Starting preview for section '[$docSection name]'"
if {![$docSection execute "$cmd" xtool]} {
wmtkerror "[$docSection uiName]: preview failed"
}
wmtkmessage ""
}
# Do not delete this line -- regeneration end marker