123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- /*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
- /* $XConsortium: Print.h /main/13 1996/10/31 02:09:08 cde-hp $ */
- /*
- * DtPrint/Print.h
- */
- /* (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
- * ALL RIGHTS RESERVED
- * (c) Copyright 1989, 1996 DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
- * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992, 1995, 1996,
- * HEWLETT-PACKARD COMPANY
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc.
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
- #ifndef _DtPrint_h
- #define _DtPrint_h
- #include <Xm/Xm.h>
- #if 0 && defined(PRINTING_SUPPORTED)
- #include <X11/extensions/Print.h>
- #endif /* PRINTING_SUPPORTED */
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*
- * Class record constants
- */
- externalref WidgetClass dtPrintSetupBoxWidgetClass;
- typedef struct _DtPrintSetupBoxClassRec * DtPrintSetupBoxWidgetClass;
- typedef struct _DtPrintSetupBoxRec * DtPrintSetupBoxWidget;
- #ifndef DtIsPrintSetupBox
- #define DtIsPrintSetupBox(w) (XtIsSubclass (w, dtPrintSetupBoxWidgetClass))
- #endif
- /*
- * Resource Names
- */
- #define DtNcancelCallback "cancelCallback"
- #define DtNclosePrintDisplayCallback "closePrintDisplayCallback"
- #define DtNcopies "copies"
- #define DtNdescription "description"
- #define DtNdestroyContextCallback "destroyContextCallback"
- #define DtNfileName "fileName"
- #ifndef DtNminimizeButtons
- # define DtNminimizeButtons "minimizeButtons"
- #endif
- #define DtNoptionCount "optionCount"
- #define DtNoptions "options"
- #define DtNprintCallback "printCallback"
- #define DtNprintDestination "printDestination"
- #define DtNprinterInfoProc "printerInfoProc"
- #define DtNprinterName "printerName"
- #define DtNprintSetupMode "printSetupMode"
- #define DtNselectFileProc "selectFileProc"
- #define DtNselectPrinterProc "selectPrinterProc"
- #define DtNsetupCallback "setupCallback"
- #define DtNverifyPrinterProc "verifyPrinterProc"
- #define DtNworkAreaLocation "workAreaLocation"
- #define DtCCancelCallback "CancelCallback"
- #define DtCClosePrintDisplayCallback "ClosePrintDisplayCallback"
- #define DtCCopies "Copies"
- #define DtCDescription "Description"
- #define DtCDestroyContextCallback "DestroyContextCallback"
- #define DtCFileName "FileName"
- #ifndef DtCMinimizeButtons
- # define DtCMinimizeButtons "MinimizeButtons"
- #endif
- #define DtCOptionCount "OptionCount"
- #define DtCOptions "Options"
- #define DtCPrintCallback "PrintCallback"
- #define DtCPrintDestination "PrintDestination"
- #define DtCPrinterInfoProc "PrinterInfoProc"
- #define DtCPrinterName "PrinterName"
- #define DtCPrintSetupMode "PrintSetupMode"
- #define DtCSelectFileProc "SelectFileProc"
- #define DtCSelectPrinterProc "SelectPrinterProc"
- #define DtCSetupCallback "SetupCallback"
- #define DtCVerifyPrinterProc "VerifyPrinterProc"
- #define DtCWorkAreaLocation "WorkAreaLocation"
- #define DtRPrintSetupProc "PrintSetupProc"
- /*
- * DtNsetupMode Resource Values
- */
- enum {
- DtPRINT_SETUP_PLAIN,
- DtPRINT_SETUP_XP
- };
- /*
- * DtNworkAreaLocation Resource Values
- */
- enum {
- DtWORK_AREA_NONE,
- DtWORK_AREA_TOP,
- DtWORK_AREA_TOP_AND_BOTTOM,
- DtWORK_AREA_BOTTOM
- };
- /*
- * DtNprintDestination Resource Values
- */
- enum { DtPRINT_NO_DESTINATION, DtPRINT_TO_PRINTER, DtPRINT_TO_FILE };
- /*
- * DtNprinterNameMode Resource Values
- */
- enum { DtSHORT_NAME, DtMEDIUM_NAME, DtLONG_NAME };
- /*
- * Mode values for DtPrintSetupBoxResetConnection()
- */
- typedef enum {
- DtPRINT_CLOSE_CONNECTION,
- DtPRINT_RELEASE_CONNECTION
- } DtPrintResetConnectionMode;
- /*
- * Callback Reasons
- */
- enum {
- DtPRINT_CR_NONE,
- DtPRINT_CR_CANCEL,
- DtPRINT_CR_CLOSE_PRINT_DISPLAY,
- DtPRINT_CR_PRINT,
- DtPRINT_CR_SETUP
- };
- /*
- * DtPrint proecdure return values
- */
- enum {
- DtPRINT_SUCCESS,
- DtPRINT_BAD_PARM,
- DtPRINT_FAILURE,
- DtPRINT_INVALID_DISPLAY,
- DtPRINT_NOT_XP_DISPLAY,
- DtPRINT_NO_CONNECTION,
- DtPRINT_NO_DEFAULT,
- DtPRINT_NO_DEFAULT_DISPLAY,
- DtPRINT_NO_PRINTER,
- DtPRINT_PRINTER_MISSING
- };
- enum {
- DtPRINT_HINT_MESSAGES_OK,
- DtPRINT_HINT_NO_MESSAGES
- };
- /*
- * PrintSetupBox Callback Structure Definition
- */
- typedef struct _DtPrintSetupData
- {
- String printer_name;
- Display *print_display;
- #ifdef PRINTING_SUPPORT
- XPContext print_context;
- #endif /* PRINTING_SUPPORTED */
- XtEnum destination;
- String dest_info;
- XtEnum messages_hint;
- } DtPrintSetupData;
- typedef struct _DtPrintSetupCallbackStruct
- {
- int reason;
- XEvent *event;
- DtPrintSetupData *print_data;
- } DtPrintSetupCallbackStruct;
- /*
- * PrintSetupBox Procedure Resource Type Definition
- */
- typedef XtEnum (*DtPrintSetupProc)(Widget, DtPrintSetupData*);
- /*
- * Public Function Declarations
- */
- extern Widget DtCreatePrintSetupBox(
- Widget p,
- String name,
- ArgList args,
- Cardinal n) ;
- extern Widget DtCreatePrintSetupDialog(
- Widget ds_p,
- String name,
- ArgList sb_args,
- Cardinal sb_n) ;
- extern DtPrintSetupData* DtPrintCopySetupData(
- DtPrintSetupData* target,
- const DtPrintSetupData* source);
- extern XtEnum DtPrintFillSetupData(
- Widget psub,
- DtPrintSetupData* print_data);
- extern void DtPrintFreeSetupData(
- DtPrintSetupData* target);
- extern XtEnum DtPrintResetConnection(
- Widget psub,
- DtPrintResetConnectionMode m);
- #ifdef __cplusplus
- } /* Close scope of 'extern "C"' declaration which encloses file. */
- #endif
- #endif /* _DtPrint_h */
- /* DON'T ADD ANYTHING AFTER THIS #endif */
|