home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------
- #
- # (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
-
-