Add actions and types from Antonis Tsolomitis' desktop_approots contribution
[oweals/cde.git] / cde / programs / localized / C / types / xpdf.dt
1 ######################################################################
2 #
3 #    Common Desktop Environment (CDE)
4 #
5 #    Action and DataType Definition File
6 #
7 #      Generated by the CreateAction tool
8 #
9 #      $Revision: 1.0
10 #
11 #      $KEY: 108   
12 #
13 ######################################################################
14 #
15 #    WARNING:
16 #
17 #    This file was generated by the CDE CreateAction tool.
18 #    If this file is modified by some other tool, such as vi,
19 #    the CreateAction tool will no longer be able to load and
20 #    update this file.  For this reason, changes to this file
21 #    should be handled through CreateAction whenever possible.
22 #
23 ######################################################################
24
25 ACTION xpdf
26 {
27      LABEL         xpdf
28      TYPE          COMMAND
29      EXEC_STRING   xpdf "%Arg_1%"
30      ICON          xpdf
31      WINDOW_TYPE   NO_STDIO
32      DESCRIPTION   Xpdf is the default pdf viewer.
33 }
34
35 DATA_ATTRIBUTES xpdf_FILE_1
36 {
37      ACTIONS       Open,Print
38      ICON          acroread
39      DESCRIPTION   PDF files open with xpdf.
40 }
41
42 DATA_CRITERIA xpdf_FILE_1A
43 {
44      DATA_ATTRIBUTES_NAME xpdf_FILE_1
45      MODE          !d
46      PATH_PATTERN  *.pdf
47 }
48
49 ACTION Open
50 {
51      ARG_TYPE      xpdf_FILE_1
52      TYPE          MAP
53      MAP_ACTION    xpdf
54      LABEL         Open
55 }
56
57 ACTION xpdf_FILE_1_PRINT
58 {
59      TYPE          COMMAND
60      EXEC_STRING   lpr "%Arg_1%"
61      WINDOW_TYPE   NO_STDIO
62 }
63
64 ACTION Print
65 {
66      ARG_TYPE      xpdf_FILE_1
67      TYPE          MAP
68      MAP_ACTION    xpdf_FILE_1_PRINT
69      LABEL         Print
70 }
71
72