PrintOptionsP.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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: PrintOptionsP.h /main/2 1996/03/12 09:28:04 drk $ */
  24. #ifndef _DT_PRINT_OPTIONSP_H
  25. #define _DT_PRINT_OPTIONSP_H
  26. /*
  27. *+SNOTICE
  28. *
  29. * $:$
  30. *
  31. * RESTRICTED CONFIDENTIAL INFORMATION:
  32. *
  33. * The information in this document is subject to special
  34. * restrictions in a confidential disclosure agreement between
  35. * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
  36. * document outside HP, IBM, Sun, USL, SCO, or Univel without
  37. * Sun's specific written approval. This document and all copies
  38. * and derivative works thereof must be returned or destroyed at
  39. * Sun's request.
  40. *
  41. * Copyright 1994 Sun Microsystems, Inc. All rights reserved.
  42. *
  43. *+ENOTICE
  44. */
  45. /*
  46. Common Desktop Environment
  47. (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
  48. (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
  49. (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
  50. (c) Copyright 1993, 1994, 1995 Novell, Inc.
  51. (c) Copyright 1995 Digital Equipment Corp.
  52. (c) Copyright 1995 Fujitsu Limited
  53. (c) Copyright 1995 Hitachi, Ltd.
  54. RESTRICTED RIGHTS LEGEND
  55. Use, duplication, or disclosure by the U.S. Government is subject to
  56. restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
  57. Technical Data and Computer Software clause in DFARS 252.227-7013. Rights
  58. for non-DOD U.S. Government Departments and Agencies are as set forth in
  59. FAR 52.227-19(c)(1,2).
  60. Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
  61. International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A.
  62. Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
  63. Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
  64. Digital Equipment Corp., 111 Powdermill Road, Maynard, Massachusetts 01754, U.S.A.
  65. Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
  66. Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
  67. */
  68. #ifdef __cplusplus
  69. extern "C" {
  70. #endif
  71. /*
  72. * Message Catalog Lookup
  73. */
  74. #define DTPO_MARGIN_FRAME_LABEL DTPRINT_GETMESSAGE( \
  75. MS_PrintOptionsSet, DTPO_MARGINS, _DtPrMsgPrintOption_0000)
  76. #define DTPO_MARGIN_FRAME_TOP_MARGIN_LABEL DTPRINT_GETMESSAGE( \
  77. MS_PrintOptionsSet, DTPO_TOP, _DtPrMsgPrintOption_0001)
  78. #define DTPO_MARGIN_FRAME_RIGHT_MARGIN_LABEL DTPRINT_GETMESSAGE( \
  79. MS_PrintOptionsSet, DTPO_RIGHT, _DtPrMsgPrintOption_0002)
  80. #define DTPO_MARGIN_FRAME_BOTTOM_MARGIN_LABEL DTPRINT_GETMESSAGE( \
  81. MS_PrintOptionsSet, DTPO_BOTTOM, _DtPrMsgPrintOption_0003)
  82. #define DTPO_MARGIN_FRAME_LEFT_MARGIN_LABEL DTPRINT_GETMESSAGE( \
  83. MS_PrintOptionsSet, DTPO_LEFT, _DtPrMsgPrintOption_0004)
  84. #define DTPO_HEADERFOOTER_FRAME_LABEL DTPRINT_GETMESSAGE( \
  85. MS_PrintOptionsSet, DTPO_HEADERS_N_FOOTERS, _DtPrMsgPrintOption_0005)
  86. #define DTPO_HEADERFOOTER_FRAME_TOP_LEFT_LABEL DTPRINT_GETMESSAGE( \
  87. MS_PrintOptionsSet, DTPO_TOP_LEFT, _DtPrMsgPrintOption_0006)
  88. #define DTPO_HEADERFOOTER_FRAME_TOP_RIGHT_LABEL DTPRINT_GETMESSAGE( \
  89. MS_PrintOptionsSet, DTPO_TOP_RIGHT, _DtPrMsgPrintOption_0007)
  90. #define DTPO_HEADERFOOTER_FRAME_BOTTOM_LEFT_LABEL DTPRINT_GETMESSAGE( \
  91. MS_PrintOptionsSet, DTPO_BOTTOM_LEFT, _DtPrMsgPrintOption_0008)
  92. #define DTPO_HEADERFOOTER_FRAME_BOTTOM_RIGHT_LABEL DTPRINT_GETMESSAGE( \
  93. MS_PrintOptionsSet, DTPO_BOTTOM_RIGHT, _DtPrMsgPrintOption_0009)
  94. /*
  95. * Header/Footer Frame API
  96. */
  97. typedef enum {
  98. DTPRINT_OPTION_HEADER_LEFT,
  99. DTPRINT_OPTION_HEADER_RIGHT,
  100. DTPRINT_OPTION_FOOTER_LEFT,
  101. DTPRINT_OPTION_FOOTER_RIGHT
  102. } _DtPrintHdrFtrEnum;
  103. extern Widget _DtPrintCreateHdrFtrFrame(
  104. Widget parent,
  105. int nspecs,
  106. char **spec_strings,
  107. void **spec_data
  108. );
  109. extern Widget _DtPrintHdrFtrFrameEnumToWidget(
  110. Widget frame,
  111. _DtPrintHdrFtrEnum which
  112. );
  113. extern void _DtPrintHdrFtrFrameMenuWidgets(
  114. Widget frame,
  115. Widget *menu,
  116. int *nmenu_buttons,
  117. Widget **menu_buttons
  118. );
  119. extern void *_DtPrintGetHdrFtrData(
  120. Widget widget
  121. );
  122. extern int _DtPrintGetHdrFtrIndex(
  123. Widget widget
  124. );
  125. extern char *_DtPrintGetHdrFtrString(
  126. Widget widget
  127. );
  128. extern void _DtPrintSetHdrFtrByData(
  129. Widget widget,
  130. void *data
  131. );
  132. extern void _DtPrintSetHdrFtrByIndex(
  133. Widget widget,
  134. int index
  135. );
  136. extern void _DtPrintSetHdrFtrByString(
  137. Widget widget,
  138. char *string
  139. );
  140. /*
  141. * Margin Frame API
  142. */
  143. typedef enum {
  144. DTPRINT_OPTION_MARGIN_TOP,
  145. DTPRINT_OPTION_MARGIN_RIGHT,
  146. DTPRINT_OPTION_MARGIN_BOTTOM,
  147. DTPRINT_OPTION_MARGIN_LEFT
  148. } _DtPrintMarginEnum;
  149. extern Widget _DtPrintCreateMarginFrame(
  150. Widget parent
  151. );
  152. extern Widget _DtPrintMarginFrameEnumToWidget(
  153. Widget frame,
  154. _DtPrintMarginEnum which
  155. );
  156. extern char* _DtPrintGetMarginSpec(
  157. Widget margin
  158. );
  159. extern void _DtPrintSetMarginSpec(
  160. Widget margin,
  161. char *spec
  162. );
  163. #ifdef __cplusplus
  164. } /* Close scope of 'extern "C"' declaration which encloses file. */
  165. #endif
  166. #endif /* _DT_PRINT_OPTIONSP_H */
  167. /* DON'T ADD ANYTHING AFTER THIS #endif */