datatypes.dt.src 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. XCOMM ##########################################################################
  2. XCOMM
  3. XCOMM datatypes.dt
  4. XCOMM
  5. XCOMM Action and DataType definitions for the Common Desktop Environment
  6. XCOMM (CDE) DT components.
  7. XCOMM
  8. XCOMM (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
  9. XCOMM (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
  10. XCOMM (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
  11. XCOMM (c) Copyright 1993, 1994, 1995 Novell, Inc.
  12. XCOMM
  13. XCOMM $TOG: datatypes.dt.src /main/6 1997/05/28 11:43:48 mgreess $
  14. XCOMM
  15. XCOMM ##########################################################################
  16. #define HASH #
  17. set DtDbVersion=1.0
  18. XCOMM ##########################################################################
  19. XCOMM
  20. %|nls-10-#HASH WARNING:...#|
  21. XCOMM
  22. XCOMM ##########################################################################
  23. XCOMM ##################################################################
  24. XCOMM
  25. %|nls-11-#HASH Data Attributes#|
  26. XCOMM
  27. XCOMM ##################################################################
  28. DATA_ATTRIBUTES BM
  29. {
  30. ACTIONS Open,Print
  31. ICON Dtbitmp
  32. NAME_TEMPLATE %s.bm
  33. MIME_TYPE text/plain
  34. SUNV3_TYPE xbm-file
  35. DESCRIPTION %|nls-3001-#This is#|
  36. TYPE_LABEL %|nls-31000-#BM#|
  37. }
  38. DATA_CRITERIA BM1
  39. {
  40. DATA_ATTRIBUTES_NAME BM
  41. MODE f
  42. NAME_PATTERN *.bm
  43. }
  44. DATA_CRITERIA BM2
  45. {
  46. DATA_ATTRIBUTES_NAME BM
  47. MODE f
  48. NAME_PATTERN *.xbm
  49. }
  50. ACTION Open
  51. {
  52. LABEL %|nls-1-Open|
  53. ARG_TYPE BM
  54. TYPE MAP
  55. MAP_ACTION Dticon
  56. }
  57. ACTION Print
  58. {
  59. LABEL %|nls-2-Print|
  60. ARG_TYPE BM
  61. TYPE MAP
  62. MAP_ACTION NoPrint
  63. }
  64. XCOMM #######################################################
  65. DATA_ATTRIBUTES PM
  66. {
  67. ACTIONS Open,Print
  68. ICON Dtpixmp
  69. NAME_TEMPLATE %s.pm
  70. MIME_TYPE text/plain
  71. SUNV3_TYPE xpm-file
  72. DESCRIPTION %|nls-3002-#This is#|
  73. TYPE_LABEL %|nls-31001-#PM#|
  74. }
  75. DATA_CRITERIA PM1
  76. {
  77. DATA_ATTRIBUTES_NAME PM
  78. MODE f
  79. NAME_PATTERN *.pm
  80. }
  81. DATA_CRITERIA PM2
  82. {
  83. DATA_ATTRIBUTES_NAME PM
  84. MODE f
  85. NAME_PATTERN *.xpm
  86. }
  87. DATA_CRITERIA PM3
  88. {
  89. DATA_ATTRIBUTES_NAME PM
  90. MODE f
  91. CONTENT 0 string ! XPM2
  92. }
  93. ACTION Open
  94. {
  95. LABEL %|nls-1-Open|
  96. ARG_TYPE PM
  97. TYPE MAP
  98. MAP_ACTION Dticon
  99. }
  100. ACTION Print
  101. {
  102. LABEL %|nls-2-Print|
  103. ARG_TYPE PM
  104. TYPE MAP
  105. MAP_ACTION NoPrint
  106. }
  107. XCOMM #######################################################
  108. DATA_ATTRIBUTES PCL
  109. {
  110. ACTIONS Open,Print
  111. ICON Dtpcl
  112. NAME_TEMPLATE %s.pcl
  113. MIME_TYPE application/octet-stream
  114. DESCRIPTION %|nls-3003-#This is#|
  115. TYPE_LABEL %|nls-31002-#PCL#|
  116. }
  117. DATA_CRITERIA PCL1
  118. {
  119. DATA_ATTRIBUTES_NAME PCL
  120. CONTENT 0 byte 033 0105
  121. MODE f
  122. }
  123. DATA_CRITERIA PCL2
  124. {
  125. DATA_ATTRIBUTES_NAME PCL
  126. NAME_PATTERN *.pcl
  127. MODE f
  128. }
  129. ACTION Open
  130. {
  131. LABEL %|nls-1-Open|
  132. ARG_TYPE PCL
  133. TYPE COMMAND
  134. WINDOW_TYPE NO_STDIO
  135. EXEC_STRING CDE_INSTALLATION_TOP/bin/dterror.ds \
  136. "%|nls-3005-#Cannot#|" \
  137. "%|nls-13-#Information#|" \
  138. "%|nls-6-#OK#|"
  139. DESCRIPTION %|nls-3004-#Your system #|
  140. }
  141. ACTION Print
  142. {
  143. LABEL %|nls-2-Print|
  144. ARG_TYPE PCL
  145. TYPE MAP
  146. MAP_ACTION PrintRaw
  147. }
  148. XCOMM #######################################################
  149. DATA_ATTRIBUTES POSTSCRIPT
  150. {
  151. ACTIONS Open,Print
  152. ICON Dtps
  153. NAME_TEMPLATE %s.ps
  154. MIME_TYPE application/postscript
  155. SUNV3_TYPE postscript-file
  156. DESCRIPTION %|nls-3006-#This file#|
  157. TYPE_LABEL %|nls-31003-#POSTSCRIPT#|
  158. }
  159. DATA_CRITERIA POSTSCRIPT1
  160. {
  161. DATA_ATTRIBUTES_NAME POSTSCRIPT
  162. MODE f
  163. NAME_PATTERN *.ps
  164. }
  165. DATA_CRITERIA POSTSCRIPT2
  166. {
  167. DATA_ATTRIBUTES_NAME POSTSCRIPT
  168. MODE f
  169. NAME_PATTERN *.PS
  170. }
  171. DATA_CRITERIA POSTSCRIPT3
  172. {
  173. DATA_ATTRIBUTES_NAME POSTSCRIPT
  174. CONTENT 0 string %!
  175. MODE f
  176. }
  177. ACTION Open
  178. {
  179. LABEL %|nls-1-Open|
  180. ARG_TYPE POSTSCRIPT
  181. TYPE MAP
  182. MAP_ACTION DisplayPS
  183. }
  184. ACTION Print
  185. {
  186. LABEL %|nls-2-Print|
  187. ARG_TYPE POSTSCRIPT
  188. TYPE MAP
  189. MAP_ACTION PrintRaw
  190. }
  191. XCOMM #######################################################
  192. DATA_ATTRIBUTES AUDIO_AU
  193. {
  194. ACTIONS Open,Play
  195. ICON Dtaudio
  196. NAME_TEMPLATE %s.au
  197. MIME_TYPE audio/basic
  198. SUNV3_TYPE audio-file
  199. DESCRIPTION %|nls-3009-#This file#|
  200. TYPE_LABEL %|nls-31004-#AUDIO#|
  201. }
  202. DATA_CRITERIA AUDIO_AU1
  203. {
  204. DATA_ATTRIBUTES_NAME AUDIO_AU
  205. MODE f
  206. NAME_PATTERN *.au
  207. }
  208. DATA_CRITERIA AUDIO_AU2
  209. {
  210. DATA_ATTRIBUTES_NAME AUDIO_AU
  211. CONTENT 0 string \.snd
  212. MODE f
  213. }
  214. #ifdef sun
  215. ACTION Open
  216. {
  217. LABEL %|nls-1-Open|
  218. ARG_TYPE AUDIO_AU
  219. TYPE COMMAND
  220. WINDOW_TYPE NO_STDIO
  221. EXEC_STRING /usr/openwin/bin/audiotool "%Arg_1%"
  222. DESCRIPTION %|nls-3032-#Your system #|
  223. }
  224. ACTION Play
  225. {
  226. LABEL %|nls-3012-Play|
  227. ARG_TYPE AUDIO_AU
  228. TYPE MAP
  229. MAP_ACTION Open
  230. DESCRIPTION %|nls-3032-#Your system #|
  231. }
  232. #else
  233. ACTION Open
  234. {
  235. LABEL %|nls-1-Open|
  236. ARG_TYPE AUDIO_AU
  237. TYPE COMMAND
  238. WINDOW_TYPE NO_STDIO
  239. EXEC_STRING CDE_INSTALLATION_TOP/bin/dterror.ds \
  240. "%|nls-3013-#Cannot#|" \
  241. "%|nls-13-#Information#|" \
  242. "%|nls-6-#OK#|"
  243. DESCRIPTION %|nls-3010-#Your system #|
  244. }
  245. ACTION Play
  246. {
  247. LABEL %|nls-3012-Play|
  248. ARG_TYPE AUDIO_AU
  249. TYPE COMMAND
  250. WINDOW_TYPE NO_STDIO
  251. EXEC_STRING CDE_INSTALLATION_TOP/bin/dterror.ds \
  252. "%|nls-3013-#Cannot#|" \
  253. "%|nls-13-#Information#|" \
  254. "%|nls-6-#OK#|"
  255. DESCRIPTION %|nls-3011-#Your system #|
  256. }
  257. #endif
  258. #
  259. DATA_ATTRIBUTES AUDIO_SND
  260. {
  261. ACTIONS Open,Play
  262. ICON Dtaudio
  263. NAME_TEMPLATE %s.snd
  264. MIME_TYPE audio/basic
  265. SUNV3_TYPE audio-file
  266. DESCRIPTION %|nls-3033-#This file#|
  267. TYPE_LABEL %|nls-31004-#AUDIO#|
  268. }
  269. DATA_CRITERIA AUDIO_SND1
  270. {
  271. DATA_ATTRIBUTES_NAME AUDIO_SND
  272. MODE f
  273. NAME_PATTERN *.snd
  274. }
  275. ACTION Open
  276. {
  277. LABEL %|nls-1-Open|
  278. ARG_TYPE AUDIO_SND
  279. TYPE COMMAND
  280. WINDOW_TYPE NO_STDIO
  281. EXEC_STRING CDE_INSTALLATION_TOP/bin/dterror.ds \
  282. "%|nls-3013-#Cannot#|" \
  283. "%|nls-13-#Information#|" \
  284. "%|nls-6-#OK#|"
  285. DESCRIPTION %|nls-3011-#Your system #|
  286. }
  287. ACTION Play
  288. {
  289. LABEL %|nls-3012-Play|
  290. ARG_TYPE AUDIO_SND
  291. TYPE MAP
  292. MAP_ACTION Open
  293. DESCRIPTION %|nls-3011-#Your system #|
  294. }
  295. #
  296. DATA_ATTRIBUTES AUDIO_WAV
  297. {
  298. ACTIONS Open,Play
  299. ICON Dtaudio
  300. NAME_TEMPLATE %s.wav
  301. MIME_TYPE audio/basic
  302. SUNV3_TYPE audio-file
  303. DESCRIPTION %|nls-3034-#This file#|
  304. TYPE_LABEL %|nls-31004-#AUDIO#|
  305. }
  306. DATA_CRITERIA AUDIO_WAV1
  307. {
  308. DATA_ATTRIBUTES_NAME AUDIO_WAV
  309. MODE f
  310. NAME_PATTERN *.wav
  311. }
  312. ACTION Open
  313. {
  314. LABEL %|nls-1-Open|
  315. ARG_TYPE AUDIO_WAV
  316. TYPE COMMAND
  317. WINDOW_TYPE NO_STDIO
  318. EXEC_STRING CDE_INSTALLATION_TOP/bin/dterror.ds \
  319. "%|nls-3013-#Cannot#|" \
  320. "%|nls-13-#Information#|" \
  321. "%|nls-6-#OK#|"
  322. DESCRIPTION %|nls-3011-#Your system #|
  323. }
  324. ACTION Play
  325. {
  326. LABEL %|nls-3012-Play|
  327. ARG_TYPE AUDIO_WAV
  328. TYPE MAP
  329. MAP_ACTION Open
  330. DESCRIPTION %|nls-3011-#Your system #|
  331. }
  332. ACTION Print
  333. {
  334. LABEL %|nls-2-Print|
  335. ARG_TYPE AUDIO_AU,AUDIO_SND,AUDIO_WAV
  336. TYPE MAP
  337. MAP_ACTION NoPrint
  338. }
  339. XCOMM #######################################################
  340. DATA_ATTRIBUTES TIFF
  341. {
  342. ACTIONS Open
  343. ICON Dtimage
  344. NAME_TEMPLATE %s.tif
  345. MIME_TYPE image/tiff
  346. SUNV3_TYPE tiff-file
  347. DESCRIPTION %|nls-3014-#This file#|
  348. TYPE_LABEL %|nls-31005-#TIFF#|
  349. }
  350. DATA_CRITERIA TIFF1
  351. {
  352. DATA_ATTRIBUTES_NAME TIFF
  353. MODE f
  354. NAME_PATTERN *.TIFF
  355. }
  356. DATA_CRITERIA TIFF2
  357. {
  358. DATA_ATTRIBUTES_NAME TIFF
  359. MODE f
  360. NAME_PATTERN *.TIF
  361. }
  362. DATA_CRITERIA TIFF3
  363. {
  364. DATA_ATTRIBUTES_NAME TIFF
  365. MODE f
  366. NAME_PATTERN *.tiff
  367. }
  368. DATA_CRITERIA TIFF4
  369. {
  370. DATA_ATTRIBUTES_NAME TIFF
  371. MODE f
  372. NAME_PATTERN *.tif
  373. }
  374. DATA_CRITERIA TIFF5
  375. {
  376. DATA_ATTRIBUTES_NAME TIFF
  377. CONTENT 0 byte 0115 0115
  378. MODE f
  379. }
  380. DATA_CRITERIA TIFF6
  381. {
  382. DATA_ATTRIBUTES_NAME TIFF
  383. CONTENT 0 byte 0111 0111
  384. MODE f
  385. }
  386. ACTION Open
  387. {
  388. LABEL %|nls-1-Open|
  389. ARG_TYPE TIFF
  390. TYPE MAP
  391. MAP_ACTION DisplayImage
  392. DESCRIPTION Use the tiff viewer
  393. }
  394. ACTION Print
  395. {
  396. LABEL %|nls-2-Print|
  397. ARG_TYPE TIFF
  398. TYPE MAP
  399. MAP_ACTION NoPrint
  400. }
  401. XCOMM #######################################################
  402. DATA_ATTRIBUTES JPEG
  403. {
  404. ACTIONS Open
  405. ICON Dtimage
  406. NAME_TEMPLATE %s.jpg
  407. MIME_TYPE image/jpeg
  408. SUNV3_TYPE jpeg-file
  409. DESCRIPTION %|nls-3017-#This file#|
  410. TYPE_LABEL %|nls-31006-#JPEG#|
  411. }
  412. DATA_CRITERIA JPEG1
  413. {
  414. DATA_ATTRIBUTES_NAME JPEG
  415. MODE f
  416. NAME_PATTERN *.JPEG
  417. }
  418. DATA_CRITERIA JPEG2
  419. {
  420. DATA_ATTRIBUTES_NAME JPEG
  421. MODE f
  422. NAME_PATTERN *.jpg
  423. }
  424. DATA_CRITERIA JPEG3
  425. {
  426. DATA_ATTRIBUTES_NAME JPEG
  427. MODE f
  428. NAME_PATTERN *.jpeg
  429. }
  430. DATA_CRITERIA JPEG4
  431. {
  432. DATA_ATTRIBUTES_NAME JPEG
  433. MODE f
  434. NAME_PATTERN *.JPG
  435. }
  436. DATA_CRITERIA JPEG5
  437. {
  438. DATA_ATTRIBUTES_NAME JPEG
  439. CONTENT 0 byte 0377 0330 0377
  440. MODE f
  441. }
  442. DATA_CRITERIA JPEG6
  443. {
  444. DATA_ATTRIBUTES_NAME JPEG
  445. MODE f
  446. CONTENT 0 short 0xffd8
  447. }
  448. ACTION Open
  449. {
  450. LABEL %|nls-1-Open|
  451. ARG_TYPE JPEG
  452. TYPE MAP
  453. MAP_ACTION DisplayImage
  454. DESCRIPTION Use the jpeg viewer
  455. }
  456. ACTION Print
  457. {
  458. LABEL %|nls-2-Print|
  459. ARG_TYPE JPEG
  460. TYPE MAP
  461. MAP_ACTION NoPrint
  462. }
  463. XCOMM #####################################################################
  464. XCOMM ## BMP
  465. DATA_ATTRIBUTES BMP
  466. {
  467. ACTIONS Open
  468. ICON Dtimage
  469. DESCRIPTION This file contains a graphics image in \
  470. BMP format. Its data type is named BMP. BMP files \
  471. have names ending with '.bmp', '.BMP' or '.Bmp'.
  472. }
  473. DATA_CRITERIA BMP1
  474. {
  475. DATA_ATTRIBUTES_NAME BMP
  476. MODE f
  477. PATH_PATTERN *.bmp
  478. }
  479. DATA_CRITERIA BMP2
  480. {
  481. DATA_ATTRIBUTES_NAME BMP
  482. MODE f
  483. PATH_PATTERN *.BMP
  484. }
  485. DATA_CRITERIA BMP3
  486. {
  487. DATA_ATTRIBUTES_NAME BMP
  488. MODE f
  489. PATH_PATTERN *.Bmp
  490. }
  491. DATA_CRITERIA BMP4
  492. {
  493. DATA_ATTRIBUTES_NAME BMP
  494. CONTENT 0 string BM
  495. MODE f
  496. }
  497. DATA_CRITERIA BMP4
  498. {
  499. DATA_ATTRIBUTES_NAME BMP
  500. CONTENT 0 string IC
  501. MODE f
  502. }
  503. DATA_CRITERIA BMP4
  504. {
  505. DATA_ATTRIBUTES_NAME BMP
  506. CONTENT 0 string CI
  507. MODE f
  508. }
  509. DATA_CRITERIA BMP4
  510. {
  511. DATA_ATTRIBUTES_NAME BMP
  512. CONTENT 0 string CP
  513. MODE f
  514. }
  515. ACTION Open
  516. {
  517. LABEL %|nls-1-Open|
  518. ARG_TYPE BMP
  519. TYPE MAP
  520. MAP_ACTION DisplayImage
  521. DESCRIPTION Use the bitmap viewer
  522. }
  523. ACTION Print
  524. {
  525. LABEL %|nls-2-Print|
  526. ARG_TYPE BMP
  527. TYPE MAP
  528. MAP_ACTION NoPrint
  529. }
  530. XCOMM #######################################################
  531. DATA_ATTRIBUTES GIF
  532. {
  533. ACTIONS Open
  534. ICON Dtimage
  535. NAME_TEMPLATE %s.gif
  536. MIME_TYPE image/gif
  537. SUNV3_TYPE gif-file
  538. DESCRIPTION %|nls-3023-#This file#|
  539. TYPE_LABEL %|nls-31008-#GIF#|
  540. }
  541. DATA_CRITERIA GIF1
  542. {
  543. DATA_ATTRIBUTES_NAME GIF
  544. MODE f
  545. NAME_PATTERN *.gif
  546. }
  547. DATA_CRITERIA GIF2
  548. {
  549. DATA_ATTRIBUTES_NAME GIF
  550. MODE f
  551. NAME_PATTERN *.GIF
  552. }
  553. DATA_CRITERIA GIF3
  554. {
  555. DATA_ATTRIBUTES_NAME GIF
  556. CONTENT 0 string GIF87a
  557. MODE f
  558. }
  559. DATA_CRITERIA GIF4
  560. {
  561. DATA_ATTRIBUTES_NAME GIF
  562. CONTENT 0 string GIF89a
  563. MODE f
  564. }
  565. ACTION Open
  566. {
  567. LABEL %|nls-1-Open|
  568. ARG_TYPE GIF
  569. TYPE MAP
  570. MAP_ACTION DisplayImage
  571. DESCRIPTION Use the gif viewer
  572. }
  573. ACTION Print
  574. {
  575. LABEL %|nls-2-Print|
  576. ARG_TYPE GIF
  577. TYPE MAP
  578. MAP_ACTION NoPrint
  579. }
  580. XCOMM #######################################################################
  581. XCOMM ## PNG
  582. DATA_ATTRIBUTES PNG
  583. {
  584. ACTIONS Open
  585. ICON Dtimage
  586. NAME_TEMPLATE %s.png
  587. MIME_TYPE image/png
  588. DESCRIPTION This file contains a graphics image in PNG format. \
  589. Its data type is named PNG. PNG files have \
  590. names ending with .png or .PNG
  591. TYPE_LABEL PNG
  592. }
  593. DATA_CRITERIA PNG1
  594. {
  595. DATA_ATTRIBUTES_NAME PNG
  596. MODE f
  597. NAME_PATTERN *.png
  598. }
  599. DATA_CRITERIA PNG2
  600. {
  601. DATA_ATTRIBUTES_NAME PNG
  602. MODE f
  603. NAME_PATTERN *.PNG
  604. }
  605. DATA_CRITERIA PNG3
  606. {
  607. DATA_ATTRIBUTES_NAME PNG
  608. CONTENT 0 string PNG
  609. MODE f
  610. }
  611. DATA_CRITERIA PNG4
  612. {
  613. DATA_ATTRIBUTES_NAME PNG
  614. CONTENT 0 byte 0x89 0x50 0x4e 0x47
  615. MODE f
  616. }
  617. ACTION Open
  618. {
  619. LABEL %|nls-1-Open|
  620. ARG_TYPE PNG
  621. TYPE MAP
  622. MAP_ACTION DisplayImage
  623. DESCRIPTION Use the png viewer
  624. }
  625. ACTION Print
  626. {
  627. LABEL %|nls-2-Print|
  628. ARG_TYPE PNG
  629. TYPE MAP
  630. MAP_ACTION NoPrint
  631. }
  632. XCOMM #######################################################
  633. DATA_ATTRIBUTES README
  634. {
  635. ACTIONS Open,Print
  636. ICON DtRdMe
  637. IS_TEXT true
  638. NAME_TEMPLATE README
  639. MIME_TYPE text/plain
  640. DESCRIPTION %|nls-3026-#This#|
  641. TYPE_LABEL %|nls-31009-#README#|
  642. }
  643. DATA_CRITERIA README1
  644. {
  645. DATA_ATTRIBUTES_NAME README
  646. MODE f
  647. NAME_PATTERN README
  648. }
  649. DATA_CRITERIA README2
  650. {
  651. DATA_ATTRIBUTES_NAME README
  652. MODE f
  653. NAME_PATTERN README.*
  654. }
  655. DATA_CRITERIA README3
  656. {
  657. DATA_ATTRIBUTES_NAME README
  658. MODE f
  659. NAME_PATTERN Read.*.Me
  660. }
  661. DATA_CRITERIA README4
  662. {
  663. DATA_ATTRIBUTES_NAME README
  664. MODE f
  665. NAME_PATTERN read.*.me
  666. }
  667. DATA_CRITERIA README5
  668. {
  669. DATA_ATTRIBUTES_NAME README
  670. MODE f
  671. NAME_PATTERN READ.*.ME
  672. }
  673. DATA_CRITERIA README6
  674. {
  675. DATA_ATTRIBUTES_NAME README
  676. MODE f
  677. NAME_PATTERN readme
  678. }
  679. XCOMM #######################################################
  680. DATA_ATTRIBUTES HTML
  681. {
  682. ACTIONS Open,Print
  683. ICON Dtdata
  684. IS_TEXT true
  685. NAME_TEMPLATE %s.html
  686. MIME_TYPE text/html
  687. DESCRIPTION %|nls-3027-#This file#|
  688. }
  689. DATA_CRITERIA HTML1
  690. {
  691. DATA_ATTRIBUTES_NAME HTML
  692. MODE f
  693. NAME_PATTERN *.html
  694. }
  695. DATA_CRITERIA HTML2
  696. {
  697. DATA_ATTRIBUTES_NAME HTML
  698. MODE f
  699. CONTENT 0 string <HTML>
  700. }
  701. DATA_CRITERIA HTML3
  702. {
  703. DATA_ATTRIBUTES_NAME HTML
  704. MODE f
  705. CONTENT 0 string <html>
  706. }
  707. ACTION Print
  708. {
  709. LABEL %|nls-2-Print|
  710. ARG_TYPE HTML
  711. TYPE COMMAND
  712. WINDOW_TYPE NO_STDIO
  713. EXEC_STRING /usr/dt/bin/dtlp "%Arg_1%"
  714. }
  715. XCOMM #######################################################
  716. DATA_ATTRIBUTES ENRICHED_TEXT
  717. {
  718. ACTIONS Open,Print
  719. ICON Dtdata
  720. IS_TEXT true
  721. NAME_TEMPLATE %s.rt
  722. MIME_TYPE text/enriched
  723. DESCRIPTION %|nls-3035-#This file#|
  724. TYPE_LABEL %|nls-31108-#ENRICHED_TEXT#|
  725. }
  726. DATA_CRITERIA ENRICHED_TEXT1
  727. {
  728. DATA_ATTRIBUTES_NAME ENRICHED_TEXT
  729. MODE f
  730. NAME_PATTERN *.ert
  731. }
  732. ACTION Print
  733. {
  734. LABEL %|nls-2-Print|
  735. ARG_TYPE ENRICHED_TEXT
  736. TYPE COMMAND
  737. WINDOW_TYPE NO_STDIO
  738. EXEC_STRING /usr/dt/bin/dtlp "%Arg_1%"
  739. }
  740. XCOMM #######################################################
  741. DATA_ATTRIBUTES RICHTEXT
  742. {
  743. ACTIONS Open,Print
  744. ICON Dtdata
  745. IS_TEXT true
  746. NAME_TEMPLATE %s.rt
  747. MIME_TYPE text/richtext
  748. DESCRIPTION %|nls-3028-#This file#|
  749. TYPE_LABEL %|nls-31011-#RICHTEXT#|
  750. }
  751. DATA_CRITERIA RICHTEXT1
  752. {
  753. DATA_ATTRIBUTES_NAME RICHTEXT
  754. MODE f
  755. NAME_PATTERN *.rt
  756. }
  757. ACTION Print
  758. {
  759. LABEL %|nls-2-Print|
  760. ARG_TYPE RICHTEXT
  761. TYPE COMMAND
  762. WINDOW_TYPE NO_STDIO
  763. EXEC_STRING /usr/dt/bin/dtlp "%Arg_1%"
  764. }
  765. XCOMM #######################################################
  766. DATA_ATTRIBUTES UIL
  767. {
  768. ACTIONS Open,Print
  769. ICON Dtuil
  770. NAME_TEMPLATE %s.uil
  771. MIME_TYPE text/plain
  772. DESCRIPTION %|nls-3030-#This file#|
  773. TYPE_LABEL %|nls-31099-#UIL#|
  774. }
  775. DATA_CRITERIA UIL1
  776. {
  777. DATA_ATTRIBUTES_NAME UIL
  778. MODE !d
  779. NAME_PATTERN *.uil
  780. }
  781. DATA_CRITERIA UIL2
  782. {
  783. DATA_ATTRIBUTES_NAME UIL
  784. MODE !d
  785. NAME_PATTERN *.UIL
  786. }
  787. XCOMM #######################################################
  788. DATA_ATTRIBUTES MSDOS_EXE
  789. {
  790. ACTIONS (None)
  791. ICON Dtexec
  792. IS_EXECUTABLE true
  793. NAME_TEMPLATE %s.exe
  794. MIME_TYPE application/octet-stream
  795. SUNV3_TYPE msdos-file
  796. DESCRIPTION %|nls-3029-#This is#|
  797. TYPE_LABEL %|nls-31012-#MSDOS_EXE#|
  798. }
  799. DATA_CRITERIA MSDOS_EXE1
  800. {
  801. DATA_ATTRIBUTES_NAME MSDOS_EXE
  802. MODE f&x
  803. NAME_PATTERN *.exe
  804. }
  805. DATA_CRITERIA MSDOS_EXE2
  806. {
  807. DATA_ATTRIBUTES_NAME MSDOS_EXE
  808. MODE f&x
  809. NAME_PATTERN *.EXE
  810. }
  811. ACTION Print
  812. {
  813. LABEL %|nls-2-Print|
  814. ARG_TYPE MSDOS_EXE
  815. TYPE MAP
  816. MAP_ACTION NoPrint
  817. }
  818. XCOMM #####################################################################
  819. XCOMM ## PDF
  820. DATA_ATTRIBUTES PDF
  821. {
  822. ACTIONS Open,Print
  823. ICON acroread
  824. NAME_TEMPLATE %s.pdf
  825. MIME_TYPE application/pdf
  826. DESCRIPTION This file contains pdf data. Its data type \
  827. is named PDF. PDF files have names ending with '.pdf' \
  828. or '.PDF', or contain the characters "%PDF".
  829. TYPE_LABEL PDF
  830. }
  831. DATA_CRITERIA PDF1
  832. {
  833. DATA_ATTRIBUTES_NAME PDF
  834. MODE f&!x
  835. NAME_PATTERN *.pdf
  836. }
  837. DATA_CRITERIA PDF2
  838. {
  839. DATA_ATTRIBUTES_NAME PDF
  840. MODE f&!x
  841. NAME_PATTERN *.PDF
  842. }
  843. DATA_CRITERIA PDF3
  844. {
  845. DATA_ATTRIBUTES_NAME PDF
  846. CONTENT 0 string %PDF
  847. MODE f&!x
  848. }
  849. ACTION Open
  850. {
  851. LABEL Open
  852. ARG_TYPE PDF
  853. TYPE MAP
  854. MAP_ACTION DisplayPDF
  855. }
  856. ACTION Print
  857. {
  858. LABEL Print
  859. ARG_TYPE PDF
  860. TYPE MAP
  861. MAP_ACTION DisplayPDF
  862. }
  863. XCOMM ######################## EOF ############################################