dtcm: Coverity 89287
[oweals/cde.git] / cde / programs / dtwm / WmParseP.c
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /******************************<+>*************************************
24  **********************************************************************
25  **
26  **  File:        WmParseP.c
27  **
28  **  Project:     HP/Motif Workspace Manager (dtwm)
29  **
30  **  Description:
31  **  -----------
32  **  This file contains the common strings used in parsing the 
33  **  dtwmrc file
34  **
35  **
36  *********************************************************************
37  **
38  ** (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
39  ** ALL RIGHTS RESERVED
40  **
41  **********************************************************************
42  **********************************************************************
43  **
44  **
45  **********************************************************************
46  ******************************<+>*************************************/
47
48 /*
49  * Included Files:
50  */
51
52 /*
53  * Panel keywords (2.x compatibility)
54  */
55 char _dtwmFpPanelOld[]          = "frontpanel";
56 char _dtwmFpRowOld[]            = "row";
57
58 char _dtwmFpDropEffects[]       = "dropeffects";
59
60 /*
61  * Panel keywords (3.0 syntax)
62  */
63 char _dtwmFpPanel[]             = "panel";
64 char _dtwmFpBox[]               = "box";
65 char _dtwmFpCommand[]           = "command";
66 char _dtwmFpControl[]           = "control";
67 char _dtwmFpSwitch[]            = "switch";
68
69 char _dtwmFpAnimation[] = "animation";
70 char _dtwmFpInclude[]           = "include";
71
72 /*
73  * Panel, Box, Control common attribute keywords
74  */
75 char _dtwmFpaColorSet[] = "color_set";
76 char _dtwmFpaBackgroundTile[]   = "background_tile";
77 char _dtwmFpaLayoutPolicy[]     = "layout_policy";
78 char _dtwmFpaOrientation[]      = "orientation";
79 char _dtwmFpaSubpanelDirection[]        = "subpanel_direction";
80 char _dtwmFpaNumberOfRows[]     = "number_of_rows";
81 char _dtwmFpaNumberOfColumns[]  = "number_of_columns";
82 char _dtwmFpaTitle[]            = "title";
83
84 /*
85  * Control old reserved names and control types
86  */
87 char    _dtwmFpnDtwmblank[]             = "dtwmblank";
88 char    _dtwmFpnDtwmbox[]               = "dtwmbox";
89 char    _dtwmFpnDtwmbusy[]              = "dtwmbusy";
90 char    _dtwmFpnDtwmclock[]             = "dtwmclock";
91 char    _dtwmFpnDtwmdate[]              = "dtwmdate";
92 char    _dtwmFpnDtwmload[]              = "dtload";
93 char    _dtwmFpnDtwmname[]              = "dtwmname";
94 char    _dtwmFpnDtwmrib[]               = "dtwmrib";
95 char    _dtwmFpnDtwmswitch[]            = "dtwmswtch";
96
97 char    _dtwmFptClock[]         = "clock";
98 char    _dtwmFptDate[]                  = "date";
99 char    _dtwmFptBlank[]         = "blank";
100 char    _dtwmFptBusy[]                  = "busy";
101 char    _dtwmFptButton[]                = "button";
102 char    _dtwmFptClient[]                = "client";
103 char    _dtwmFptIconbox[]               = "iconbox";
104 char    _dtwmFptMail[]                  = "mail";
105 char    _dtwmFptMonitorFile[]           = "monitor_file";
106
107 /*
108  * Panel type keywords
109  */
110 char    _dtwmFptFrontPanel[]            = "front_panel";
111
112 /*
113  * Box type keywords
114  */
115 char    _dtwmFptPrimary[]               = "primary";
116 char    _dtwmFptSecondary[]             = "secondary";
117 char    _dtwmFptSubpanel[]              = "subpanel";
118 char    _dtwmFptRowColumn[]             = "row_column";
119
120 /* 
121  * Layout types
122  */
123 char    _dtwmFptStandard[]              = "standard";
124 char    _dtwmFptAsNeeded[]              = "as_needed";
125
126 /* 
127  * Orientation keywords
128  */
129 char    _dtwmFptHorizontal[]            = "horizontal";
130 char    _dtwmFptVertical[]              = "vertical";
131
132 /* 
133  * Subpanel Direction keywords
134  */
135 char    _dtwmFptNorth[]         = "north";
136 char    _dtwmFptSouth[]         = "south";
137 char    _dtwmFptEast[]                  = "east";
138 char    _dtwmFptWest[]                  = "west";
139
140 /* 
141  * Control-specific attribute keywords 
142  */
143 char    _dtwmFpaClientGeometry[]        = "client_geometry";
144 char    _dtwmFpaClientName[]            = "client_name";
145 char    _dtwmFpaContextMenu[]           = "context_menu";
146 char    _dtwmFpaDropAction[]            = "drop_action";
147 char    _dtwmFpaDropAnimation[] = "drop_animation";
148 char    _dtwmFpaPushAnimation[] = "push_animation";
149 char    _dtwmFpaAlternateImage[]        = "alternate_image";
150 char    _dtwmFpaHelpString[]            = "help_string";
151 char    _dtwmFpaHelpTopic[]             = "help_topic";
152 char    _dtwmFpaImage[]         = "image";
153 char    _dtwmFpaLabel[]         = "label";
154 char    _dtwmFpaPushAction[]            = "push_action";
155 char    _dtwmFpaPushRecall[]            = "push_recall";
156 char    _dtwmFpaTrue[]                  = "true";
157 char    _dtwmFpaType[]                  = "type";
158 char    _dtwmFpaSubPanel[]              = "subpanel";
159