-fpermissive to allow GCC to compile old C++
[oweals/cde.git] / cde / programs / dtmail / dtmail / MailMsg.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 /*
24  *+SNOTICE
25  *
26  *  $TOG: MailMsg.h /main/5 1998/04/22 14:17:19 mgreess $
27  *
28  *  RESTRICTED CONFIDENTIAL INFORMATION:
29  *
30  *  The information in this document is subject to special
31  *  restrictions in a confidential disclosure agreement between
32  *  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
33  *  document outside HP, IBM, Sun, USL, SCO, or Univel without
34  *  Sun's specific written approval.  This document and all copies
35  *  and derivative works thereof must be returned or destroyed at
36  *  Sun's request.
37  *
38  *  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
39  *
40  *+ENOTICE
41  */
42
43 #ifndef MAILMSG_H
44 #define MAILMSG_H
45
46 #include <nl_types.h>
47 #include <Dt/MsgCatP.h>
48
49 /*
50  * DtMail comment tag is NL_COMMENT (NL = National Language).
51  * genmsg will extract comment blocks containing NL_COMMENT.
52  */
53
54 extern nl_catd DT_catd;   /* Catgets file descriptor */
55
56 #define DTMAIL_CAT        "DtMail"
57 #define NL_SET            1
58 #define BUTTON_SET        1
59 #define TITLE_SET         1
60 #define LABEL_SET         1
61 #define DIALOG_SET        3
62 #define MSG_SET           3
63 #define ERR_SET           2
64
65 #ifdef XGETTEXT
66 #define MAILMSG(msgid, str)   dgettext(NL_SET, msgid, str)
67 #else
68 #define MAILMSG(msgid, str)   catgets(DT_catd, NL_SET, msgid, str)
69 #endif
70
71 #ifdef hpV4
72 #define GETMSG(DT_catd, NL_SET, msgid, str) _DtCatgetsCached(DT_catd, NL_SET, msgid, str)
73 #else
74 #define GETMSG(DT_catd, NL_SET, msgid, str) catgets(DT_catd, NL_SET, msgid, str)
75 #endif
76
77
78 /*  MailBox.C             msgid  100 - 199
79  *  MBOX_*
80  */
81
82 /*  MsgScrollingList.C    msgid  200 - 299
83  *  MSGLIST_*
84  */
85
86 /*  RoamCmds.C            msgid  300 - 399
87  *  ROCMD_*
88  */
89
90 /*  RoamMenuWindow.C      msgid  400 - 499
91  *  ROMENU_*
92  */
93
94 /*  SendMsgDialog.C       msgid  500 - 599
95  *  SEND_*
96  */
97
98 /*  Undelete.C            msgid  600 - 699
99  *  UNDEL_*
100  */
101
102 #endif  // MAILMSG_H