// Copyright Neil Ramsden 2004. All rights reserved.

// SlideView scripts
// Neil Ramsden
// SlideView.js
// 27 Aug 04 -> 27 Aug 04
//
// Uses AdviceView; ChoiceView; writeHTMLEpilogue; writeHTMLPrologue.

//---------------------------------------------------------------------------

/* SlideAdviceView - displays advice on a slide frame document
*/

function SlideAdviceView(presentation, advice)
//create a new advice view 
//  presentation -- presentation object linking view to a pane
//  advice -- advice object
{
  //inheritance
  this.base = AdviceView;
  this.base(presentation, advice);

  //fixed fields
  this.advice = advice

  //methods
  this._writeEpilogue = writeHTMLEpilogue;
  this._writePrologue = function(document) { 
    writeHTMLPrologue(document, 'Interactive Suffix Checker'); };
}
SlideAdviceView.prototype = new AdviceView;


/* SlideChoiceView - displays option choices on a slide frame document
*/

function SlideChoiceView(presentation, choice)
//create a new choice View 
//  presentation -- presentation object linking views and windows
//  choice -- choice object
{
  //inheritance
  this.base = ChoiceView;
  this.base(presentation, choice);

  //methods
  this._writeEpilogue = writeHTMLEpilogue;
  this._writePrologue = function(document) { 
    writeHTMLPrologue(document, 'Interactive Suffix Checker'); };
}
SlideChoiceView.prototype = new ChoiceView;
