1 /* $XConsortium: HelpDialogI.h /main/6 1996/08/28 19:07:35 cde-hp $ */
2 /*************************************<+>*************************************
3 *****************************************************************************
7 ** Project: Cache Creek (Rivers) Project:
9 ** Description: Internal header file for HelpDialog Widget.
12 ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
14 ** (c) Copyright 1993, 1994 Hewlett-Packard Company
15 ** (c) Copyright 1993, 1994 International Business Machines Corp.
16 ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
17 ** (c) Copyright 1993, 1994 Novell, Inc.
19 *******************************************************************
20 *************************************<+>*************************************/
21 #ifndef _HelpDialogI_h
22 #define _HelpDialogI_h
24 #include <Dt/HelpDialog.h>
25 #include "HelpDialogP.h"
28 /* Update list defines use in _DtHelpUpdateDisplayArea */
30 #define DtHISTORY_AND_JUMP 1
31 #define DtHISTORY_ONLY 2
35 /* Defines for processing a request to "Top Level..." */
36 #define DtBROWSER_HOME _DtHelpDefaultLocationId
37 #define DtBROWSER_NAME "browser.hv"
42 #define DtJUMP_LIST_MAX 999
46 /****************************************************************
48 * Current Color Info Structure Definition
50 ****************************************************************/
51 typedef struct _colorStruct {
60 /*****************************************************************************
61 * Function: void _DtHelpUpdateDisplayArea(
63 * DtHelpDialogWidget nw,
65 * int topicUpdateType);
68 * Parameters: locationId
74 * Purpose: Updates the History List for the current help dialog.
76 *****************************************************************************/
77 extern void _DtHelpUpdateDisplayArea(
79 DtHelpDialogWidget nw,
85 /*****************************************************************************
86 * Function: void _DtHelpUpdateJumpList(
88 * DtHelpDialogWidget nw);
91 * Parameters: topicInfo
97 * Purpose: Updates the History List for the current help dialog.
99 *****************************************************************************/
100 extern void _DtHelpUpdateJumpList(
106 /*****************************************************************************
107 * Function: void _DtHelpDialogHypertextCB(
108 * XtPointer pDisplayAreaStruct,
109 * XtPointer clientData,
110 * DtHelpHyperTextStruct *hyperData)
112 * Parameters: pDisplayAreaStruct Specifies the curretn display are info.
114 * hyperData Specifies the current hypertext info
117 * clientData Specifies the client data passed into
118 * the hypertext callback.
120 * Return Value: Void.
122 * Purpose: Process all hypertext requests in a given Help Dialogs
125 *****************************************************************************/
126 extern void _DtHelpDialogHypertextCB (
127 XtPointer pDisplayAreaStruct,
128 XtPointer clientData,
129 DtHelpHyperTextStruct *hyperData);
131 /*****************************************************************************
132 * Function: void _DtHelpSetupDisplayType(DtHelpDialogWidget nw);
136 * Parameters: nw Specifies the current help dialog widget.
138 * Return Value: Void.
140 * Purpose: Determins the type of topic the user want's to display
141 * in the current help dialog and sets it up for display.
143 *****************************************************************************/
144 extern void _DtHelpSetupDisplayType(
145 DtHelpDialogWidget nw,
149 /*****************************************************************************
150 * Function: void _DtHelpTopicListFree (DtTopicListStruct *pHead);
153 * Parameters: pHead Specifies the head pointer to the topic list.
155 * Return Value: Void.
157 * Purpose: Frees all elements in a Topic List.
159 *****************************************************************************/
160 extern void _DtHelpTopicListFree(
161 DtTopicListStruct *pHead);
163 /*****************************************************************************
164 * Function: extern void DisplayHistoryCB(
166 * XtPointer client_data,
167 * XtPointer call_data);
173 * Purpose: This routine will cause the history dialog to be
176 ****************************************************************************/
177 extern void _DtHelpDisplayHistoryCB(
179 XtPointer client_data,
180 XtPointer call_data );
182 /*****************************************************************************
183 * Function: extern void _DtHelpDisplayBackCB(
185 * XtPointer client_data,
186 * XtPointer call_data);
192 * Purpose: This routine will cause the top element in the jump
193 * stack to be displayed.
195 ****************************************************************************/
196 extern void _DtHelpDisplayBackCB(
198 XtPointer client_data,
199 XtPointer call_data);
202 /*****************************************************************************
203 * Function: extern void _DtHelpDuplicateWindowCB(
205 * XtPointer client_data,
206 * XtPointer call_data);
212 * Purpose: This routine creates a new help widget by forcing the
213 * equivelent of a Jump New hyper text call
215 ****************************************************************************/
216 extern void _DtHelpDuplicateWindowCB(
218 XtPointer client_data,
219 XtPointer call_data);
221 /*****************************************************************************
222 * Function: void _DtHelpDisplayIndexCB(
224 * XtPointer client_data,
225 * XtPointer call_data);
231 * Purpose: This routine will cause the index dialog to be
234 ****************************************************************************/
235 extern void _DtHelpDisplayIndexCB(
237 XtPointer client_data,
238 XtPointer call_data);
240 /*****************************************************************************
241 * Function: void _DtHelpDisplayBrowserHomeCB(
243 * XtPointer client_data,
244 * XtPointer call_data);
250 * Purpose: This routine will cause the top level of the browser.hv
251 * help volume to be displayed.
253 ****************************************************************************/
254 extern void _DtHelpDisplayBrowserHomeCB(
256 XtPointer client_data,
257 XtPointer call_data);
259 /*****************************************************************************
260 * Function: _DtHelpFilterExecCmdCB
262 * clientData: The general help dialog widget
263 * cmdStr: cmd string to filter
264 * ret_filteredCmdStr: string after filtering. NULL if exec denied
266 * Return Value: 0: ok, < 0: error
268 * Purpose: filter an execution command using executionPolicy rsrc
271 * The caller must free memory allocated for the ret_filteredCmdStr
272 *****************************************************************************/
273 extern int _DtHelpFilterExecCmdCB(
276 char * * ret_filteredCmdStr);
278 #endif /* _HelpDialogI_h */
279 /* Do not add anything after this endif. */