HelpTermP.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: HelpTermP.h /main/4 1995/10/26 12:25:56 rswiston $ */
  24. /*************************************<+>*************************************
  25. *****************************************************************************
  26. **
  27. ** File: FormatTerm.h
  28. **
  29. ** Project: Cache Creek (Rivers) Project:
  30. **
  31. ** Description: Public Header file for FormatTerm.c, the terminal access
  32. ** functions.
  33. **
  34. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
  35. **
  36. ** (c) Copyright 1993, 1994 Hewlett-Packard Company
  37. ** (c) Copyright 1993, 1994 International Business Machines Corp.
  38. ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  39. ** (c) Copyright 1993, 1994 Novell, Inc.
  40. **
  41. *******************************************************************
  42. *************************************<+>*************************************/
  43. #ifndef _DtHelpFormatTermP_h
  44. #define _DtHelpFormatTermP_h
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48. /**************************
  49. * Link Types and Window
  50. * Hints should match what
  51. * is in Canvas.h
  52. **************************/
  53. /**************************
  54. * Link Types
  55. **************************/
  56. #ifndef CELinkType_Execute
  57. #define CELinkType_Execute 3
  58. #endif
  59. #ifndef CELinkType_ManPage
  60. #define CELinkType_ManPage 4
  61. #endif
  62. #ifndef CELinkType_AppDefine
  63. #define CELinkType_AppDefine 5
  64. #endif
  65. #ifndef CELinkType_SameVolume
  66. #define CELinkType_SameVolume 6
  67. #endif
  68. #ifndef CELinkType_CrossLink
  69. #define CELinkType_CrossLink 7
  70. #endif
  71. #ifndef CELinkType_TextFile
  72. #define CELinkType_TextFile 8
  73. #endif
  74. /**************************
  75. * Window Hint Kinds
  76. **************************/
  77. #ifndef CEWindowHint_PopupWindow
  78. #define CEWindowHint_PopupWindow 1
  79. #endif
  80. #ifndef CEWindowHint_CurrentWindow
  81. #define CEWindowHint_CurrentWindow 2
  82. #endif
  83. #ifndef CEWindowHint_NewWindow
  84. #define CEWindowHint_NewWindow 3
  85. #endif
  86. /******** Public Defines Declarations ********/
  87. /******** Public Structures Declarations ********/
  88. /*****************************************************************************
  89. * Structure: DtHelpHyperLines
  90. *
  91. * Fields: title Indicates the title of the linked topic.
  92. * specification Contains the hypertext link information.
  93. * hyper_type Specifies the hypertext links type.
  94. *
  95. *
  96. *****************************************************************************/
  97. typedef struct {
  98. char *title;
  99. char *specification;
  100. int hyper_type;
  101. int win_hint;
  102. } DtHelpHyperLines;
  103. /******** Public Function Declarations ********/
  104. /*****************************************************************************
  105. * Function: extern void _DtHelpFreeTopicData (
  106. * char **helpList,
  107. * DtHelpHyperLines *hyperList)
  108. *
  109. *
  110. * Parameters: helpList Specifies the parent widget ID.
  111. * hyperList Specifies the name of the created dialog
  112. *
  113. * Return Value: void.
  114. *
  115. * Purpose: Free up the info gotten by _DtHelpGetTopicData.
  116. *
  117. *****************************************************************************/
  118. extern void _DtHelpFreeTopicData (
  119. char **helpList,
  120. DtHelpHyperLines *hyperList);
  121. /*****************************************************************************
  122. * Function: extern int _DtHelpGetTopicData(
  123. * char *helpVolume,
  124. * char *locationID,
  125. * int maxColumns,
  126. * char ***helpList,
  127. * DtHelpHyperLines **hyperList);
  128. *
  129. * Parameters:
  130. *
  131. *
  132. * Return Value: int value, -1 implies that the function call failed, a
  133. * value of 0, implies that the call was successful.
  134. *
  135. * Purpose: Allows developers to extract semi-formatted ASCII data
  136. * from a Cache Creek help file.
  137. *
  138. *****************************************************************************/
  139. extern int _DtHelpGetTopicData (
  140. char *helpVolume,
  141. char *locationID,
  142. int maxColumns,
  143. char ***helpList,
  144. DtHelpHyperLines **hyperList);
  145. /*****************************************************************************
  146. * Function: extern int _DtHelpProcessLinkData(
  147. * DtHelpHyperLines *hyperLine,
  148. * char **helpVolume,
  149. * char **locationId )
  150. *
  151. *
  152. * Parameters:
  153. *
  154. *
  155. * Return Value: int value, -1 implies that the function call failed, a
  156. * value of 0, implies that the call was successful.
  157. *
  158. * Purpose: This function is used in conjunction with the
  159. * _DtHelpGetTopicData() function call to provide developers
  160. * with a mechanism in which they can traverse Cache Creek
  161. * hypertext links. This call will return the file and
  162. * locationid information that when used with the
  163. * DtGetTopicData function will retrrieve the help text
  164. * and new hypertext information associated with the previous
  165. * hypertext link information.
  166. *
  167. *****************************************************************************/
  168. extern int _DtHelpProcessLinkData (
  169. char *ref_volume,
  170. DtHelpHyperLines *hyperLine,
  171. char **helpVolume,
  172. char **locationId);
  173. #ifdef __cplusplus
  174. } /* Close scope of 'extern "C"' declaration which encloses file. */
  175. #endif
  176. #endif /* _DtHelpFormatTermP_h */
  177. /* DON'T ADD ANYTHING AFTER THIS #endif */