############################################################################### # # dtpad.dt # # Actions used with the DT Text Editor (dtpad) # # (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company # (c) Copyright 1993, 1994, 1995 International Business Machines Corp. # (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc. # (c) Copyright 1993, 1994, 1995 Novell, Inc. # # $Revision: 1.18 $ # ############################################################################### set DtDbVersion=1.0 ############################################################################### # # WARNING: This file may be overwritten in subsequent installations of # the Common Desktop Environment (CDE). Consequently, any system wide # changes should be made to an equivalent database file in # /etc/dt/types and not in this file. # ############################################################################### ################################################################### # # Data Attributes # ################################################################### DATA_ATTRIBUTES TEXTFILE { ACTIONS Open,Print ICON Dtpenpd IS_TEXT true NAME_TEMPLATE %s.txt MIME_TYPE text/plain SUNV3_TYPE text MEDIA C_STRING DESCRIPTION This file contains plain text data. Its \ data type is named TEXTFILE. A TEXTFILE must have \ a named ending with '.txt'. TYPE_LABEL TEXTFILE } DATA_CRITERIA TEXTFILE1 { DATA_ATTRIBUTES_NAME TEXTFILE MODE f&!x NAME_PATTERN *.txt } ################################################################### # # WARNING WARNING WARNING # # The following DATA_CRITERIA rule is used by dtmail to # identify the system TEXTFILE DATA_ATTRIBUTE. If you remove # or modify this rule, dtmail may not properly display text # messages. # ################################################################### DATA_CRITERIA TEXTFILE2 { DATA_ATTRIBUTES_NAME TEXTFILE MODE f&!x NAME_PATTERN text } ACTION Print { LABEL Print ARG_TYPE TEXTFILE TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/dt/bin/dtlp %Arg_1% } ############################################################################### ############################################################################### # # Actions # ############################################################################### ##################### # # PRINT actions # ##################### # # The PRINT_DTPAD action mimics the default "Print" action except # that it removes the temporary file being printed. This action # is used by the client, 'dtpad'. # ##################### ACTION PRINT_DTPAD_TEMPFILE { TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/dt/bin/dtlp -u "%(String)Arg_2%" -e %(File)Arg_1% } ###################### # # Editing Actions # ###################### ACTION Dtpad { LABEL Text Editor ICON Dtpenpd TYPE MAP MAP_ACTION DtTTMediaOpen DESCRIPTION The Text Editor (Dtpad) action opens the specified \ file in a desktop text editor window. } ########################### EOF ##############################################