InfoShow.sgm 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <!-- $XConsortium: InfoShow.sgm /main/2 1996/09/20 11:10:27 cdedoc $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDE.INFO.showtopic">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.INFO.showtopic">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtInfoShowTopic</RefEntryTitle>
  13. <ManVolNum>API</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtInfoShowTopic</Function></RefName>
  17. <RefPurpose>provide the user access to a local information corpus at a specific location
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <RefSynopsisDiv>
  21. <FuncSynopsis Remap="ANSI">
  22. <FuncSynopsisInfo>#include &lt;Dt/Info.h>
  23. </FuncSynopsisInfo>
  24. <FuncDef>DtIfnoShowStatus <Function>DtInfoShowTopic</Function></FuncDef>
  25. <ParamDef>const char <Parameter>*info_lib</Parameter></ParamDef>
  26. <ParamDef>const char <Parameter>*locator</Parameter></ParamDef>
  27. </FuncSynopsis>
  28. </RefSynopsisDiv>
  29. <RefSect1>
  30. <Title>DESCRIPTION</Title>
  31. <para>
  32. By invoking <Function>DtInfoShowTopic</Function>, a client application requests that dtinfo display a
  33. particular section of data, or topic. <Function>DtInfoShowTopic</Function> sends a ToolTalk message
  34. to any active dtinfo process that can access the
  35. requested information in the current locale. The browser is started if it is not already running. This
  36. corresponds to invoking the <command>dtinfo</command> command with the <option>-sect</option> option from the command line.
  37. </para>
  38. <para>
  39. The locator parameter must be a valid, resolvable location in the specified or default infolib for dtinfo to
  40. display the location. Unfortunately, there is no way to determine this from the calling application as
  41. <function>DtInfoShowTopic</function> will return an ok status as long as the message has been delivered to dtinfo. In the
  42. case of an invalid locator, dtinfo will still map to the current workspace of the invoking application and
  43. display an error dialog.
  44. </para>
  45. <para>
  46. This API is implemented in the Desktop Services library, <literal>DtSvc</literal>. To access the DtShowInfoTopic
  47. API, include the header file <filename>Dt/Info.h</filename> and link with <literal>-lDtSvc</literal>.
  48. </para>
  49. </RefSect1>
  50. <refsect1>
  51. <Title>ARGUMENTS</Title>
  52. <VariableList>
  53. <VarListEntry>
  54. <Term><symbol role="Variable">*info_lib</symbol></Term>
  55. <ListItem>
  56. <Para>
  57. Specifies a file path, relative or absolute, to an information library. If
  58. <symbol role="Variable">info_lib</symbol> is NULL, the browser displays the default information library(s).
  59. </Para>
  60. </ListItem>
  61. </VarListEntry>
  62. <VarListEntry>
  63. <Term><symbol role="Variable">*locator</symbol></Term>
  64. <ListItem>
  65. <Para>
  66. Specifies the information library section in generalized locator format.
  67. </Para>
  68. </ListItem>
  69. </VarListEntry>
  70. </VariableList>
  71. </RefSect1>
  72. <RefSect1>
  73. <Title>RETURN VALUE</Title>
  74. <VariableList>
  75. <VarListEntry>
  76. <Term><SystemItem Class="Constant">DtINFO_SHOW_OK</SystemItem></Term>
  77. <ListItem>
  78. <Para>
  79. ToolTalk request successfully sent.
  80. </Para>
  81. </ListItem>
  82. </VarListEntry>
  83. <VarListEntry>
  84. <Term><SystemItem Class="Constant">DtINFO_SHOW_BAD_LOCATOR</SystemItem></Term>
  85. <ListItem>
  86. <Para>
  87. The locator argument is NULL.
  88. </Para>
  89. </ListItem>
  90. </VarListEntry>
  91. <VarListEntry>
  92. <Term><SystemItem Class="Constant">DtINFO_SHOW_TT_OPEN_FAIL</SystemItem></Term>
  93. <ListItem>
  94. <Para>
  95. Call to <function>tt_open()</function> failed.
  96. </Para>
  97. </ListItem>
  98. </VarListEntry>
  99. <VarListEntry>
  100. <Term><SystemItem Class="Constant">DtINFO_SHOW_MSG_CREATE_FAIL</SystemItem></Term>
  101. <ListItem>
  102. <Para>
  103. Call to <function>tt_message_create()</function> failed.
  104. </Para>
  105. </ListItem>
  106. </VarListEntry>
  107. <VarListEntry>
  108. <Term><SystemItem Class="Constant">DtINFO_SHOW_MSG_SEND_FAIL</SystemItem></Term>
  109. <ListItem>
  110. <Para>
  111. Call to <function>tt_message_send()</function> failed.
  112. </Para>
  113. </ListItem>
  114. </VarListEntry>
  115. </variablelist>
  116. </RefSect1>
  117. <refsect1>
  118. <title>ENVIRONMENT</title>
  119. <variablelist>
  120. <VarListEntry>
  121. <Term><SystemItem Class="environvar">DTINFOLIBSEARCHPATH</SystemItem></Term>
  122. <ListItem>
  123. <Para>
  124. Search path environment variable for locating information libraries on
  125. local and remote mounted systems.
  126. </Para>
  127. </ListItem>
  128. </VarListEntry>
  129. <VarListEntry>
  130. <Term><SystemItem Class="environvar">DTINFOLIBDEFAULT</SystemItem></Term>
  131. <ListItem>
  132. <Para>
  133. Specifies the name of the default information library(s) to load if the
  134. locator argument is NULL. Multiple information libraries can be
  135. specified by a comma separated list.
  136. </Para>
  137. </ListItem>
  138. </VarListEntry>
  139. </variablelist>
  140. </RefSect1>
  141. </RefEntry>