PsubUtilI.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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: PsubUtilI.h /main/3 1996/08/12 18:41:41 cde-hp $ */
  24. /*
  25. * DtPrint/PsubUtilI.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 _DtPsubUtilI_h
  37. #define _DtPsubUtilI_h
  38. #include <Dt/Print.h>
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42. /*
  43. * ------------------------------------------------------------------------
  44. * Type Definitions
  45. *
  46. */
  47. typedef enum {
  48. DtPRINT_DEC_NET,
  49. DtPRINT_TCP_IPC,
  50. DtPRINT_NET_UNSPECIFIED
  51. } DtPrintSpecNet;
  52. /*
  53. * ------------------------------------------------------------------------
  54. * Private Function Declarations
  55. *
  56. */
  57. String _DtPrintCreateXPrinterSpecifier(
  58. String printer_name,
  59. String host_name,
  60. DtPrintSpecNet spec_net,
  61. int display_num,
  62. int screen_num);
  63. void _DtPrintFreeStringList(
  64. String* string_list);
  65. String _DtPrintGetDefaultXPrinterName(
  66. Widget w);
  67. String* _DtPrintGetXpPrinterList(
  68. Widget w);
  69. String* _DtPrintGetXpServerList(
  70. Widget w);
  71. void _DtPrintParseXDisplaySpecifier(
  72. const String display_spec,
  73. String* host_name,
  74. DtPrintSpecNet* spec_net,
  75. int* display_num,
  76. int* screen_num);
  77. void _DtPrintParseXPrinterSpecifier(
  78. const String specifier,
  79. String* printer_name,
  80. String* display_spec);
  81. XtEnum _DtPrintVerifyXPrinter(
  82. Widget w,
  83. String printer_spec,
  84. String* new_printer_spec,
  85. Display** new_display
  86. #if 0 && defined(PRINTING_SUPPORTED)
  87. ,XPContext* new_context
  88. #endif /* PRINTING_SUPPORTED */
  89. );
  90. #ifdef __cplusplus
  91. } /* Close scope of 'extern "C"' declaration which encloses file. */
  92. #endif
  93. #endif /* _DtPsubUtilI_h */
  94. /* DON'T ADD ANYTHING AFTER THIS #endif */