dtinfo.dt.src 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. XCOMM ##########################################################################
  2. XCOMM
  3. XCOMM dtinfo.dt
  4. XCOMM
  5. XCOMM Action and DataType definitions for the Common Desktop Environment
  6. XCOMM Information Manager.
  7. XCOMM
  8. XCOMM (c) Copyright 1996 Digital Equipment Corporation.
  9. XCOMM (c) Copyright 1996 Hewlett-Packard Company.
  10. XCOMM (c) Copyright 1996 International Business Machines Corp.
  11. XCOMM (c) Copyright 1996 Sun Microsystems, Inc.
  12. XCOMM (c) Copyright 1996 Novell, Inc.
  13. XCOMM (c) Copyright 1996 FUJITSU LIMITED.
  14. XCOMM (c) Copyright 1996 Hitachi.
  15. XCOMM
  16. XCOMM $TOG: dtinfo.dt.src /main/10 1998/07/29 17:09:46 mgreess $
  17. XCOMM
  18. XCOMM ##########################################################################
  19. #define HASH #
  20. #define STAR *
  21. set DtDbVersion=1.0
  22. XCOMM ##########################################################################
  23. XCOMM
  24. %|nls-10-#HASH WARNING:...#|
  25. XCOMM
  26. XCOMM ##########################################################################
  27. XCOMM ##################################################################
  28. XCOMM
  29. %|nls-11-#HASH Data Attributes#|
  30. XCOMM
  31. XCOMM ##################################################################
  32. DATA_ATTRIBUTES DtInfoLib
  33. {
  34. ACTIONS Open,Print
  35. TYPE_LABEL %|nls-31200-#Info#|
  36. ICON Dtinlib
  37. IS_TEXT false
  38. DESCRIPTION %|nls-31201-#On#|
  39. }
  40. DATA_CRITERIA DtInfoLib1
  41. {
  42. DATA_ATTRIBUTES_NAME DtInfoLib
  43. NAME_PATTERN *.dti
  44. XCOMM CONTENT 0 filename .oli
  45. MODE d|l
  46. LINK_NAME *.dti
  47. }
  48. XCOMM ##################################################################
  49. ACTION Open
  50. {
  51. ARG_TYPE DtInfoLib
  52. TYPE MAP
  53. MAP_ACTION DtLoadInfoLib
  54. }
  55. ACTION Print
  56. {
  57. LABEL %|nls-31204-#Print#|
  58. ARG_TYPE DtInfoLib
  59. TYPE MAP
  60. MAP_ACTION NoPrint
  61. }
  62. DATA_ATTRIBUTES TMPPRINTFILE
  63. {
  64. ACTIONS Print
  65. NAME_TEMPLATE %s.itp
  66. DESCRIPTION This is a temporary file generated by dtinfo when infolib \
  67. sections are dropped on the printer icon on the front panel \
  68. for printing.
  69. TYPE_LABEL TMPPRINTFILE
  70. }
  71. DATA_CRITERIA TMPPRINTFILE1
  72. {
  73. DATA_ATTRIBUTES_NAME TMPPRINTFILE
  74. MODE f
  75. CONTENT 0 string mmdb:
  76. PATH_PATTERN $HOME/.dt/tmp/STAR
  77. }
  78. ACTION DtLoadInfoLib
  79. {
  80. LABEL %|nls-18031-#Information Manager#|
  81. ICON Dtinfo
  82. DESCRIPTION %|nls-31203-#Start#|
  83. HASH
  84. TYPE TT_MSG
  85. TT_CLASS TT_REQUEST
  86. TT_SCOPE TT_SESSION
  87. TT_OPERATION DtInfo_LoadInfoLib
  88. TT_FILE %Arg_1%
  89. HASH
  90. HASH Name of the action to invoke
  91. HASH
  92. TT_ARG0_MODE TT_IN
  93. TT_ARG0_VTYPE string
  94. TT_ARG0_VALUE DtInfoStart
  95. HASH
  96. HASH Name of the host where the InfoLib exists
  97. HASH
  98. TT_ARG1_MODE TT_IN
  99. TT_ARG1_VTYPE string
  100. TT_ARG1_VALUE %LocalHost%
  101. HASH
  102. HASH Name of the locale
  103. HASH
  104. TT_ARG2_MODE TT_IN
  105. TT_ARG2_VTYPE string
  106. TT_ARG2_VALUE $LANG
  107. }
  108. ACTION DtShowInfoAtLoc
  109. {
  110. TYPE TT_MSG
  111. TT_CLASS TT_REQUEST
  112. TT_SCOPE TT_SESSION
  113. TT_OPERATION DtInfo_ShowInfoAtLoc
  114. TT_FILE %Arg_1%
  115. HASH
  116. HASH Name of the action to invoke
  117. HASH
  118. TT_ARG0_MODE TT_IN
  119. TT_ARG0_VTYPE string
  120. TT_ARG0_VALUE DtInfoStartAtLoc
  121. HASH
  122. HASH Name of the host where the InfoLib exists
  123. HASH
  124. TT_ARG1_MODE TT_IN
  125. TT_ARG1_VTYPE string
  126. TT_ARG1_VALUE %LocalHost%
  127. HASH
  128. HASH Name of the locale
  129. HASH
  130. TT_ARG2_MODE TT_IN
  131. TT_ARG2_VTYPE string
  132. TT_ARG2_VALUE $LANG
  133. HASH
  134. HASH Name of the section (in generalized locator format)
  135. HASH
  136. TT_ARG3_MODE TT_IN
  137. TT_ARG3_VTYPE string
  138. TT_ARG3_VALUE %Arg_2%
  139. }
  140. XCOMM ##################################################################
  141. ACTION DtInfoStart
  142. {
  143. TYPE COMMAND
  144. WINDOW_TYPE NO_STDIO
  145. EXEC_STRING /usr/dt/bin/dtinfo \
  146. -l "%(String)Arg_1%"
  147. }
  148. ACTION DtInfoStartAtLoc
  149. {
  150. TYPE COMMAND
  151. WINDOW_TYPE NO_STDIO
  152. EXEC_STRING /usr/dt/bin/dtinfo \
  153. -l "%(String)Arg_1%" \
  154. -sect "%(String)Arg_2%"
  155. }