PdmMsgs.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. /* $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. #ifdef I18N_MSG
  39. #include <Dt/MsgCatP.h>
  40. #define DTPDM_GETMESSAGE(set, number, string) \
  41. DtPdmGetMessage(set, number, string)
  42. #else /* I18N_MSG */
  43. #define DTPDM_GETMESSAGE(set, number, string) (string)
  44. #endif /* I18N_MSG */
  45. /*** const causes the HP compiler to complain. Remove reference until ***
  46. *** the build and integration people can figure out how to get this to ***
  47. *** work. ***/
  48. /* #define CONST const */
  49. #define CONST
  50. #define PDM_MSG_ERR_X_LOCALE DTPDM_GETMESSAGE(MS_DtPdmMsg, 1, DtPdmMsg_0001)
  51. #define PDM_MSG_TRAY_AUTO_SELECT DTPDM_GETMESSAGE(MS_DtPdmMsg, 2, DtPdmMsg_0002)
  52. #define PDM_MSG_SIZE_DEFAULT DTPDM_GETMESSAGE(MS_DtPdmMsg, 3, DtPdmMsg_0003)
  53. #define PDM_MSG_WARN_MSS DTPDM_GETMESSAGE(MS_DtPdmMsg, 4, DtPdmMsg_0004)
  54. #define PDM_MSG_WARN_ITM DTPDM_GETMESSAGE(MS_DtPdmMsg, 5, DtPdmMsg_0005)
  55. #define PDM_MSG_WARN_DOC_FMT DTPDM_GETMESSAGE(MS_DtPdmMsg, 6, DtPdmMsg_0006)
  56. extern CONST char DtPdmMsg_0001[];
  57. extern CONST char DtPdmMsg_0002[];
  58. extern CONST char DtPdmMsg_0003[];
  59. extern CONST char DtPdmMsg_0004[];
  60. extern CONST char DtPdmMsg_0005[];
  61. extern CONST char DtPdmMsg_0006[];
  62. /*
  63. * Message sets
  64. */
  65. #define MS_DtPdmOid 1
  66. #define MS_DtPdmMsg 2
  67. #ifdef I18N_MSG
  68. /* Message IDs */
  69. extern const char * DtPdmGetMessage(
  70. int set,
  71. int n,
  72. const char * s);
  73. #endif /* I18N_MSG */
  74. #endif /* _PdmMsgs_h */