433e9357394c4324e31294d0d9e0829fc3e65761
[oweals/cde.git] / cde / programs / localized / C / types / dtpad.dt
1 # ##########################################################################
2
3 #      dtpad.dt
4
5 #      Actions used with the DT Text Editor (dtpad)
6
7 #     (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
8 #     (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
9 #     (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
10 #     (c) Copyright 1993, 1994, 1995 Novell, Inc.
11
12 #      $XConsortium: dtpad.dt.src /main/4 1996/04/23 17:35:35 drk $
13
14 # ##########################################################################
15
16 set DtDbVersion=1.0
17
18 # ##########################################################################
19
20 # WARNING:  This file may be overwritten in subsequent installations of
21 #     the Common Desktop Environment (CDE).  Consequently, any system wide
22 #     changes should be made to an equivalent database file in
23 #     /etc/dt/types and not in this file.
24
25 # ##########################################################################
26
27 # ##################################################################
28
29 # Data Attributes
30
31 # ##################################################################
32 DATA_ATTRIBUTES TEXTFILE
33 {
34         ACTIONS         Open,Print
35         ICON            Dtdata
36         IS_TEXT         true
37         NAME_TEMPLATE   %s.txt
38         MIME_TYPE       text/plain
39         SUNV3_TYPE      text
40         MEDIA           C_STRING
41         DESCRIPTION     This file contains plain text data. Its \
42                         data type is named TEXTFILE.  A TEXTFILE must have \
43                         a named ending with '.txt'.
44         TYPE_LABEL      TEXTFILE
45 }
46 DATA_CRITERIA TEXTFILE1
47 {
48         DATA_ATTRIBUTES_NAME TEXTFILE
49         MODE            f&!x
50         NAME_PATTERN    *.txt
51 }
52 # ##################################################################
53
54 #  WARNING WARNING WARNING
55 #
56 # The following DATA_CRITERIA rule is used by dtmail to
57 # identify the system TEXTFILE DATA_ATTRIBUTE. If you remove
58 # or modify this rule, dtmail may not properly display text
59 # messages.
60
61 # ##################################################################
62 DATA_CRITERIA TEXTFILE2
63 {
64         DATA_ATTRIBUTES_NAME TEXTFILE
65         MODE            f&!x
66         NAME_PATTERN    text
67 }
68 ACTION Print
69 {
70         LABEL           Print
71         ARG_TYPE        TEXTFILE
72         TYPE            COMMAND
73         WINDOW_TYPE     NO_STDIO
74         EXEC_STRING     /usr/dt/bin/dtlp "%Arg_1%"
75 }
76
77 # ##########################################################################
78 # ##########################################################################
79
80 # Actions
81
82 # ##########################################################################
83 # ####################
84
85 # PRINT actions
86
87 # ####################
88
89 # The PRINT_DTPAD action mimics the default "Print" action except
90 # that it removes the temporary file being printed.  This action
91 # is used by the client, 'dtpad'. 
92
93 # ####################
94 ACTION PRINT_DTPAD_TEMPFILE
95 {
96         TYPE            COMMAND
97         WINDOW_TYPE     NO_STDIO
98         EXEC_STRING     /usr/dt/bin/dtlp -u "%(String)Arg_2%" -e "%(File)Arg_1%"
99 }
100
101 # #####################
102
103 # Editing Actions
104
105 # #####################
106 ACTION Dtpad
107 {
108         LABEL           Text Editor
109         ICON            Dtpenpd
110         TYPE            MAP
111         MAP_ACTION      DtTTMediaOpen
112         DESCRIPTION     The Text Editor (Dtpad) action opens the specified \
113                         file in a desktop text editor window.
114 }
115
116 # ######################## EOF ############################################