/********************************************************************
 *
 *	Copyright (c) Geoworks 1992-96 -- All Rights Reserved.
 *
 * PROJECT:	  GEOS Sample Applications
 * MODULE:	  HelpView C Sample App
 * FILE:	  helpview.goc
 *
 * AUTHOR:  	  Gene Anderson: Dec  8, 1992
 *
 * REVISION HISTORY:
 *      Name    Date            Description
 *      ----    ----            -----------
 *      gene    12/8/92         Initial version
 *
 * DESCRIPTION:
 *	Sample help viewer that demonstrates how to use a
 *      HelpControl object as a viewer for help files. This is
 *      what you normally see when you click on a help trigger.
 *      The viewer will display the help file and permit you to
 *      browse its contents. A context history is kept, just like
 *      when viewing help normally.
 *
 * RCS STAMP:
 *	$Id: helpview.goc,v 1.1 97/04/04 16:38:59 newdeal Exp $
 *
 *******************************************************************/

/********************************************************************
 *		Include files
 *******************************************************************/
    @include <stdapp.goh>

/********************************************************************
 *		Class Definitions
 *******************************************************************/
    @class HelpViewProcessClass, GenProcessClass;
    @endc;

/********************************************************************
 *		Class Declarations
 *******************************************************************/
    @classdecl HelpViewProcessClass, neverSaved;

/********************************************************************
 *		UI Object Resources
 *******************************************************************/

/********************************************************************
 *		AppResource Resource
 *******************************************************************/
@start AppResource;

@object GenApplicationClass HelpViewApp = {
    GI_visMoniker = list { @HelpViewTextMoniker };
    GI_comp = @HelpViewPrimary;
    gcnList( MANUFACTURER_ID_GEOWORKS, GAGCNLT_WINDOWS ) =
	@HelpViewPrimary;
    gcnList( MANUFACTURER_ID_GEOWORKS, MGCNLT_ACTIVE_LIST ) =
	@HelpViewHelpObject;
}

@visMoniker HelpViewTextMoniker = "C Sample Help Viewer";

@end AppResource;

/********************************************************************
 *		Interface Resource
 * This resource is for misc UI objects.
 *******************************************************************/
@start Interface;

@object GenPrimaryClass HelpViewPrimary  = {
    GI_comp = @HelpViewHelpObject;
    HINT_PRIMARY_FULL_SCREEN;
}

@object HelpControlClass HelpViewHelpObject = {
    GII_visibility = GIV_SUB_GROUP;
    ATTR_HELP_INITIAL_HELP = "TOC";
    HINT_EXPAND_WIDTH_TO_FIT_PARENT;
    HINT_EXPAND_HEIGHT_TO_FIT_PARENT;
    ATTR_GEN_CONTROL_PROHIBIT_UI = { HPCF_CLOSE };
}

@end Interface;

