1 /* $XConsortium: Help.h /main/3 1995/10/26 12:23:24 rswiston $ */
3 * (c) Copyright 1993, 1994 Hewlett-Packard Company
4 * (c) Copyright 1993, 1994 International Business Machines Corp.
5 * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
6 * (c) Copyright 1993, 1994 Novell, Inc.
12 #include <X11/Intrinsic.h>
23 /* Common DtHelp Resources */
25 #ifndef DtNcloseCallback
26 #define DtNcloseCallback "closeCallback"
29 #define DtNcolumns XmNcolumns
31 #ifndef DtNexecutionPolicy
32 #define DtNexecutionPolicy "executionPolicy"
35 #define DtNhelpFile "helpFile"
37 #ifndef DtNhelpOnHelpVolume
38 #define DtNhelpOnHelpVolume "helpOnHelpVolume"
41 #define DtNhelpPrint "helpPrint"
44 #define DtNhelpType "helpType"
47 #define DtNhelpVolume "helpVolume"
49 #ifndef DtNhyperLinkCallback
50 #define DtNhyperLinkCallback "hyperLinkCallback"
53 #define DtNlocationId "locationId"
56 #define DtNmanPage "manPage"
58 #ifndef DtNminimizeButtons
59 #define DtNminimizeButtons XmNminimizeButtons
62 #define DtNpaperSize "paperSize"
65 #define DtNprinter "printer"
68 #define DtNrows XmNrows
70 #ifndef DtNscrollBarPolicy
71 #define DtNscrollBarPolicy "scrollBarPolicy"
74 #define DtNstringData "stringData"
78 #define DtCCallback XmCCallback
81 #ifndef DtCCloseCallback
82 #define DtCCloseCallback "CloseCallback"
85 #define DtCColumns XmCColumns
87 #ifndef DtCExecutionPolicy
88 #define DtCExecutionPolicy "ExecutionPolicy"
91 #define DtCHelpFile "HelpFile"
93 #ifndef DtCHelpOnHelpVolume
94 #define DtCHelpOnHelpVolume "HelpOnHelpVolume"
97 #define DtCHelpPrint "HelpPrint"
100 #define DtCHelpType "HelpType"
102 #ifndef DtCHelpVolume
103 #define DtCHelpVolume "HelpVolume"
105 #ifndef DtCHyperLinkCallback
106 #define DtCHyperLinkCallback "HyperLinkCallback"
108 #ifndef DtCLocationId
109 #define DtCLocationId "LocationId"
112 #define DtCManPage "ManPage"
114 #ifndef DtCMinimizeButtons
115 #define DtCMinimizeButtons XmCMinimizeButtons
118 #define DtCPaperSize "PaperSize"
121 #define DtCPrinter "Printer"
124 #define DtCRows XmCRows
126 #ifndef DtCScrollBarPolicy
127 #define DtCScrollBarPolicy "ScrollBarPolicy"
129 #ifndef DtCStringData
130 #define DtCStringData "StringData"
133 /* Representation types */
135 #ifndef DtRDtExecutionPolicy
136 #define DtRDtExecutionPolicy "DtExecutionPolicy"
138 #ifndef DtRDtHelpType
139 #define DtRDtHelpType "DtHelpType"
141 #ifndef DtRDtPaperSize
142 #define DtRDtPaperSize "DtPaperSize"
144 #ifndef DtRDtScrollBarPolicy
145 #define DtRDtScrollBarPolicy "DtScrollBarPolicy"
148 /* DtHelpDialogCallbackStruct windowHint field */
150 #define DtHELP_POPUP_WINDOW 1
151 #define DtHELP_CURRENT_WINDOW 2
152 #define DtHELP_NEW_WINDOW 3
154 /* DtHelpDialogCallbackStruct hyperType field */
156 #define DtHELP_LINK_JUMP_NEW 1
157 #define DtHELP_LINK_TOPIC 1
158 #define DtHELP_LINK_MAN_PAGE 4
159 #define DtHELP_LINK_APP_DEFINE 5
160 #define DtHELP_LINK_TEXT_FILE 8
162 /* DtHelpDialogCallbackStruct reason field */
164 #define DtCR_HELP_LINK_ACTIVATE 1
165 #define DtCR_HELP_CLOSE 2
166 #define DtCR_HELP_HELP 3
168 /* Possible values for DtNscrollBarPolicy resource */
170 #define DtHELP_NO_SCROLLBARS 0
171 #define DtHELP_STATIC_SCROLLBARS 1
172 #define DtHELP_AS_NEEDED_SCROLLBARS 2
174 /* Possible values for DtNexecutionPolicy resource */
175 #define DtHELP_EXECUTE_NONE 0
176 #define DtHELP_EXECUTE_QUERY_ALL 1
177 #define DtHELP_EXECUTE_QUERY_UNALIASED 2
178 #define DtHELP_EXECUTE_ALL 3
180 /* Possible values for DtNhelpType resource */
182 #define DtHELP_TYPE_TOPIC 0
183 #define DtHELP_TYPE_STRING 1
184 #define DtHELP_TYPE_MAN_PAGE 2
185 #define DtHELP_TYPE_FILE 3
186 #define DtHELP_TYPE_DYNAMIC_STRING 4
188 /* Possible values for DtNpaperSize resource */
190 #define DtHELP_PAPERSIZE_LETTER 0
191 #define DtHELP_PAPERSIZE_LEGAL 1
192 #define DtHELP_PAPERSIZE_EXECUTIVE 2
193 #define DtHELP_PAPERSIZE_A4 3
194 #define DtHELP_PAPERSIZE_B5 4
196 /* DtHelpQuickGetChildGetChild() function */
198 #define DtHELP_QUICK_CLOSE_BUTTON 1
199 #define DtHELP_QUICK_PRINT_BUTTON 2
200 #define DtHELP_QUICK_HELP_BUTTON 3
201 #define DtHELP_QUICK_SEPARATOR 4
202 #define DtHELP_QUICK_MORE_BUTTON 5
203 #define DtHELP_QUICK_BACK_BUTTON 6
205 /* Return values for DtHelpReturnSelectedWidgetId() */
207 #define DtHELP_SELECT_ERROR -1
208 #define DtHELP_SELECT_VALID 0
209 #define DtHELP_SELECT_ABORT 1
210 #define DtHELP_SELECT_INVALID 2
225 } DtHelpDialogCallbackStruct;
232 extern void DtHelpSetCatalogName(
235 extern int DtHelpReturnSelectedWidgetId(
244 #endif /* _Dt_Help_h */