Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtpdm / PdmMsgs.h
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 librararies 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 /* $XConsortium: PdmMsgs.h /main/3 1996/08/12 18:42:31 cde-hp $ */
24 /*
25  * dtpdm/PrintMsgsP.h
26  */
27 /*
28  * (c) Copyright 1996 Digital Equipment Corporation.
29  * (c) Copyright 1996 Hewlett-Packard Company.
30  * (c) Copyright 1996 International Business Machines Corp.
31  * (c) Copyright 1996 Sun Microsystems, Inc.
32  * (c) Copyright 1996 Novell, Inc. 
33  * (c) Copyright 1996 FUJITSU LIMITED.
34  * (c) Copyright 1996 Hitachi.
35  */
36 #ifndef _PdmMsgs_h
37 #define _PdmMsgs_h
38
39 #ifdef I18N_MSG
40 #include <nl_types.h>
41 #define DTPDM_GETMESSAGE(set, number, string) \
42     DtPdmGetMessage(set, number, string)
43
44 #else /* I18N_MSG */
45 #define DTPDM_GETMESSAGE(set, number, string) (string)
46 #endif /* I18N_MSG */
47
48 /*** const causes the HP compiler to complain.  Remove reference until   ***
49  *** the build and integration people can figure out how to get this to  ***
50  *** work.                                                               ***/
51
52 /* #define CONST        const */
53 #define CONST
54
55 #define PDM_MSG_ERR_X_LOCALE DTPDM_GETMESSAGE(MS_DtPdmMsg, 1, DtPdmMsg_0001)
56 #define PDM_MSG_TRAY_AUTO_SELECT DTPDM_GETMESSAGE(MS_DtPdmMsg, 2, DtPdmMsg_0002)
57 #define PDM_MSG_SIZE_DEFAULT DTPDM_GETMESSAGE(MS_DtPdmMsg, 3, DtPdmMsg_0003)
58 #define PDM_MSG_WARN_MSS DTPDM_GETMESSAGE(MS_DtPdmMsg, 4, DtPdmMsg_0004)
59 #define PDM_MSG_WARN_ITM DTPDM_GETMESSAGE(MS_DtPdmMsg, 5, DtPdmMsg_0005)
60 #define PDM_MSG_WARN_DOC_FMT DTPDM_GETMESSAGE(MS_DtPdmMsg, 6, DtPdmMsg_0006)
61
62 extern CONST char DtPdmMsg_0001[];
63 extern CONST char DtPdmMsg_0002[];
64 extern CONST char DtPdmMsg_0003[];
65 extern CONST char DtPdmMsg_0004[];
66 extern CONST char DtPdmMsg_0005[];
67 extern CONST char DtPdmMsg_0006[];
68
69 /* 
70  * Message sets
71  */
72 #define MS_DtPdmOid             1
73 #define MS_DtPdmMsg             2
74
75 #ifdef I18N_MSG
76
77 /* Message IDs */
78
79 extern const char * DtPdmGetMessage(
80                                     int set,
81                                     int n,
82                                     const char * s);
83
84 #endif /* I18N_MSG */
85
86 #endif /* _PdmMsgs_h */