dthelp.dt.src 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. XCOMM #######################################################################
  2. XCOMM
  3. XCOMM dthelp.dt
  4. XCOMM
  5. XCOMM Actions and filetypes for Help files.
  6. XCOMM
  7. XCOMM (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
  8. XCOMM (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
  9. XCOMM (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
  10. XCOMM (c) Copyright 1993, 1994, 1995 Novell, Inc.
  11. XCOMM
  12. XCOMM $XConsortium: dthelp.dt.src /main/4 1996/04/23 17:35:19 drk $
  13. XCOMM
  14. XCOMM #####################################################################
  15. #define HASH #
  16. set DtDbVersion=1.0
  17. XCOMM ##########################################################################
  18. XCOMM
  19. %|nls-10-#HASH WARNING:...#|
  20. XCOMM
  21. XCOMM ##########################################################################
  22. XCOMM ##################################################################
  23. XCOMM
  24. %|nls-11-#HASH Data Attributes#|
  25. XCOMM
  26. XCOMM ##################################################################
  27. DATA_ATTRIBUTES DTHELP_VOL
  28. {
  29. ACTIONS Open,Print
  30. ICON Dthvol
  31. NAME_TEMPLATE %s.sdl
  32. MIME_TYPE application/octet-stream
  33. DESCRIPTION %|nls-11001-#This is#|
  34. TYPE_LABEL %|nls-31047-#DTHELP_VOL#|
  35. }
  36. DATA_CRITERIA DTHELP_VOL1
  37. {
  38. DATA_ATTRIBUTES_NAME DTHELP_VOL
  39. MODE f
  40. NAME_PATTERN *.sdl
  41. }
  42. DATA_CRITERIA DTHELP_VOL2
  43. {
  44. DATA_ATTRIBUTES_NAME DTHELP_VOL
  45. MODE f
  46. NAME_PATTERN *.hv
  47. }
  48. ACTION Open
  49. {
  50. LABEL %|nls-1-Open|
  51. ARG_TYPE DTHELP_VOL
  52. TYPE MAP
  53. MAP_ACTION Dthelpview
  54. }
  55. ACTION Print
  56. {
  57. LABEL %|nls-2-Print|
  58. ARG_TYPE DTHELP_VOL
  59. TYPE MAP
  60. MAP_ACTION NoPrint
  61. }
  62. XCOMM #########################################################
  63. DATA_ATTRIBUTES DTHELP_HT
  64. {
  65. ACTIONS (None)
  66. ICON Dthtop
  67. NAME_TEMPLATE %s.ht
  68. MIME_TYPE application/octet-stream
  69. DESCRIPTION %|nls-11002-#This is#|
  70. TYPE_LABEL %|nls-31048-#DTHELP_HT#|
  71. }
  72. DATA_CRITERIA DTHELP_HT1
  73. {
  74. DATA_ATTRIBUTES_NAME DTHELP_HT
  75. NAME_PATTERN *.ht
  76. MODE f
  77. }
  78. XCOMM #########################################################
  79. DATA_ATTRIBUTES DTHELP_HVK
  80. {
  81. ACTIONS (None)
  82. ICON Dthtop
  83. NAME_TEMPLATE %s.hvk
  84. MIME_TYPE application/octet-stream
  85. DESCRIPTION %|nls-11003-#This is#|
  86. TYPE_LABEL %|nls-31049-#DTHELP_HVK#|
  87. }
  88. DATA_CRITERIA DTHELP_HVK1
  89. {
  90. DATA_ATTRIBUTES_NAME DTHELP_HVK
  91. NAME_PATTERN *.hvk
  92. MODE f
  93. }
  94. XCOMM #########################################################
  95. DATA_ATTRIBUTES DTHELP_XRH
  96. {
  97. ACTIONS (None)
  98. ICON Dthtop
  99. NAME_TEMPLATE %s.xrh
  100. MIME_TYPE application/octet-stream
  101. DESCRIPTION %|nls-11004-#This is#|
  102. TYPE_LABEL %|nls-31050-#DTHELP_XRH#|
  103. }
  104. DATA_CRITERIA DTHELP_XRH
  105. {
  106. DATA_ATTRIBUTES_NAME DTHELP_XRH
  107. NAME_PATTERN *.xrh
  108. MODE f
  109. }
  110. XCOMM ##################################################################
  111. XCOMM ##################################################################
  112. XCOMM
  113. %|nls-12-#HASH Actions#|
  114. XCOMM
  115. XCOMM ##################################################################
  116. ACTION Dthelpview
  117. {
  118. LABEL %|nls-11005-#Help Viewer#|
  119. ARG_COUNT 0
  120. ICON Fphelp
  121. TYPE COMMAND
  122. WINDOW_TYPE NO_STDIO
  123. EXEC_STRING /bin/sh -c '/usr/dt/bin/dthelpgen -dir $HOME/.dt/help/$DTUSERSESSION; \
  124. /usr/dt/bin/dthelpview -helpVolume browser '
  125. DESCRIPTION %|nls-11007-#The#|
  126. }
  127. ACTION Dthelpview
  128. {
  129. LABEL %|nls-11005-#Help Viewer#|
  130. ICON Fphelp
  131. TYPE COMMAND
  132. WINDOW_TYPE NO_STDIO
  133. EXEC_STRING /bin/sh -c '/usr/dt/bin/dthelpgen \
  134. -dir $HOME/.dt/help/$DTUSERSESSION; \
  135. /usr/dt/bin/dthelpview -helpVolume "%(File)Arg_1%" '
  136. DESCRIPTION %|nls-11007-#The#|
  137. }
  138. XCOMM #######
  139. ACTION Dthelpgen
  140. {
  141. LABEL %|nls-11014-#Help Generator#|
  142. ICON Fphelp
  143. TYPE COMMAND
  144. WINDOW_TYPE NO_STDIO
  145. EXEC_STRING /bin/sh -c '/usr/dt/bin/dthelpgen -dir \
  146. "%(File)Arg_1"%|nls-11015-#Location to put files:#|"%"'
  147. DESCRIPTION %|nls-11016-#The#|
  148. }
  149. ACTION Dthelpgen_delay
  150. {
  151. LABEL %|nls-11014-#Help Generator#|
  152. ICON Fphelp
  153. TYPE COMMAND
  154. WINDOW_TYPE NO_STDIO
  155. EXEC_STRING /bin/sh -c 'sleep 15; /usr/dt/bin/dthelpgen -dir \
  156. $HOME/.dt/help/$DTUSERSESSION'
  157. DESCRIPTION %|nls-11016-#The#|
  158. }
  159. XCOMM #######
  160. ACTION Dtmanpageview
  161. {
  162. LABEL %|nls-11010-#Man Page Viewer#|
  163. ICON Dthover
  164. TYPE COMMAND
  165. WINDOW_TYPE NO_STDIO
  166. EXEC_STRING sh -c ' /usr/dt/bin/dthelpview -manPage \
  167. `basename "%(File)Arg_1"%|nls-11011-#Man#|"%" | sed /[.].*/s///` \
  168. -xrm "Dthelpview*manBox*columns: %|nls-11012-#100#|"'
  169. DESCRIPTION %|nls-11013-#The#|
  170. }
  171. XCOMM ######################## EOF ############################################