The great includes migration of 2019 (autotools)
Ok - so one of the steps in building CDE is an early phase called the includes phase (make includes). At this point, all of the public header files are exported to exports/include/Dt, DtI, ... Then, the software is built using that include dir. This of course does not work in autotools. Much of the software does things like #include <Dt/something.h>, so in order for the build to succeed, this behavior must be represented/replicated in some way. It seems the usual way of dealing with this is to place all public headers (and in some projects, ALL headers) into a toplevel include directory. We now do this for all public headers - they have been moved from wherever they were and placed in the appropriate spot in includes/ This will break the Imake 'make includes' phase unless the Imakefiles are fixed (remove the HEADERS = stuff, and the incdir defines). This has not been done at this point since in reality, once autotools works properly, there will be no need for the Imake stuff anymore, and I intend to get rid of it. This is just a warning for now - Imake builds in this tree will now fail at the 'includes' stage. This commit is only the migration. In upcoming commits, libtt will be fixed so that the hack being used before to get around this problem is removed as there will no longer be any need. And then the autotools work continues...
This commit is contained in:
@@ -1,237 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* 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: PrintDlgMgrP.h /main/3 1996/08/12 18:40:55 cde-hp $ */
|
||||
/*
|
||||
* DtPrint/PrintDlgMgrP.h
|
||||
*/
|
||||
/*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (c) Copyright 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 _PrintDlgMgrP_h
|
||||
#define _PrintDlgMgrP_h
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern Widget _DtCreatePDMJobSetup(Widget Parent);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtPrintDlgMgrP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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: PrintI.h /main/1 1996/10/31 11:19:07 drk $
|
||||
*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (c) Copyright 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 _DtPrintI_h
|
||||
#define _DtPrintI_h
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/******** Conditionally defined macros for thread safe DtPrint ******/
|
||||
#ifdef XTHREADS
|
||||
|
||||
#define _DtPrintWidgetToAppContext(w) \
|
||||
XtAppContext app = XtWidgetToApplicationContext(w)
|
||||
|
||||
#define _DtPrintDisplayToAppContext(d) \
|
||||
XtAppContext app = XtDisplayToApplicationContext(d)
|
||||
|
||||
#define _DtPrintAppLock(app) XtAppLock(app)
|
||||
#define _DtPrintAppUnlock(app) XtAppUnlock(app)
|
||||
#define _DtPrintProcessLock() XtProcessLock()
|
||||
#define _DtPrintProcessUnlock() XtProcessUnlock()
|
||||
|
||||
#else /* XTHREADS */
|
||||
|
||||
#define _DtPrintWidgetToAppContext(w)
|
||||
#define _DtPrintDisplayToAppContext(d)
|
||||
#define _DtPrintAppLock(app)
|
||||
#define _DtPrintAppUnlock(app)
|
||||
#define _DtPrintProcessLock()
|
||||
#define _DtPrintProcessUnlock()
|
||||
|
||||
#endif /* XTHREADS */
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtPrintI_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
@@ -1,203 +0,0 @@
|
||||
/*
|
||||
* 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: PrintMsgsP.h /main/9 1996/08/19 17:12:12 cde-hp $ */
|
||||
/*
|
||||
* DtPrint/PrintMsgsP.h
|
||||
*/
|
||||
/*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (c) Copyright 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 _DtPrintMsgsP_h
|
||||
#define _DtPrintMsgsP_h
|
||||
|
||||
#ifdef I18N_MSG
|
||||
#include <nl_types.h>
|
||||
#define DTPRINT_GETMESSAGE(set, number, string) \
|
||||
_DtPrintGetMessage(set, number, string)
|
||||
|
||||
#else /* I18N_MSG */
|
||||
#define DTPRINT_GETMESSAGE(set, number, string) string
|
||||
#endif /* I18N_MSG */
|
||||
|
||||
/*** const causes the HP compiler to complain. Remove reference until ***
|
||||
*** the build and integration people can figure out how to get this to ***
|
||||
*** work. ***/
|
||||
|
||||
/* #define CONST const */
|
||||
#define CONST
|
||||
|
||||
|
||||
/*
|
||||
* extern declarations for PrintSetupBox widget messages
|
||||
*/
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0000[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0001[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0002[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0003[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0004[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0005[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0006[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0007[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0008[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0009[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0010[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0011[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0012[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0013[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0014[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0015[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0016[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0017[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0018[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0019[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0020[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0021[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0022[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0023[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0024[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0025[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0026[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0027[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0028[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0029[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0030[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0031[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0032[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0033[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0034[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0035[];
|
||||
extern CONST char _DtPrMsgPrintSetupBox_0036[];
|
||||
|
||||
/*
|
||||
* Message set for PrintSetupBox widget
|
||||
*/
|
||||
#define MS_PrintSetupBox 1
|
||||
|
||||
/* Message IDs for PrintSetupBox */
|
||||
#define PSUB_WARN_WA_LOCATION 1
|
||||
#define PSUB_SELECT_PRINTER 2
|
||||
#define PSUB_PRINT_TO_FILE 3
|
||||
#define PSUB_SELECT_FILE 4
|
||||
#define PSUB_CANCEL 5
|
||||
#define PSUB_COPIES 6
|
||||
#define PSUB_HELP 7
|
||||
#define PSUB_PRINT 8
|
||||
#define PSUB_PRINTER_NAME 9
|
||||
#define PSUB_SETUP 10
|
||||
#define PSUB_DESCRIPTION 11
|
||||
#define PSUB_WARN_COPY_COUNT 12
|
||||
#define PSUB_WARN_SETUP_MODE 13
|
||||
#define PSUB_WARN_SETUP_MODE_CHANGE 14
|
||||
#define PSUB_PRINTER_INFO 15
|
||||
#define PSUB_INVALID_PRINTER_TITLE 16
|
||||
#define PSUB_INVALID_PRINTER_MESSAGE 17
|
||||
#define PSUB_INVALID_DISPLAY_MESSAGE 18
|
||||
#define PSUB_NOT_XP_DISPLAY_MESSAGE 19
|
||||
#define PSUB_NO_DEFAULT_MESSAGE 20
|
||||
#define PSUB_NO_DEFAULT_DISPLAY_MESSAGE 21
|
||||
#define PSUB_PRINTER_MISSING_MESSAGE 22
|
||||
#define PSUB_WARN_PRINT_DESTINATION 23
|
||||
#define PSUB_WARN_CT_CONVERSION 24
|
||||
#define PSUB_WARN_CONVERSION_ARGS 25
|
||||
#define PSUB_PRLIST_ERROR_TITLE 26
|
||||
#define PSUB_NO_PRINTERS_MESSAGE 27
|
||||
#define PSUB_DESC_UNAVAILABLE 28
|
||||
#define PSUB_SELECT_FILE_TITLE 29
|
||||
#define PSUB_PRINTER_INFO_TITLE 30
|
||||
#define PSUB_FORMAT_LABEL 31
|
||||
#define PSUB_MODEL_LABEL 32
|
||||
#define PSUB_PRINTER_LIST_LABEL 33
|
||||
#define PSUB_MORE_PRINTERS_TITLE 34
|
||||
#define PSUB_PRINT_TO_PRINTER 35
|
||||
#define PSUB_FILE_NAME 36
|
||||
#define PSUB_HELP_DLG_TITLE 37
|
||||
|
||||
/*
|
||||
* extern declarations for _DtPrint frame widgets
|
||||
*/
|
||||
extern CONST char _DtPrMsgPrintOption_0000[];
|
||||
extern CONST char _DtPrMsgPrintOption_0001[];
|
||||
extern CONST char _DtPrMsgPrintOption_0002[];
|
||||
extern CONST char _DtPrMsgPrintOption_0003[];
|
||||
extern CONST char _DtPrMsgPrintOption_0004[];
|
||||
extern CONST char _DtPrMsgPrintOption_0005[];
|
||||
extern CONST char _DtPrMsgPrintOption_0006[];
|
||||
extern CONST char _DtPrMsgPrintOption_0007[];
|
||||
extern CONST char _DtPrMsgPrintOption_0008[];
|
||||
extern CONST char _DtPrMsgPrintOption_0009[];
|
||||
|
||||
/*
|
||||
* Message set for _DtPrint frame widgets
|
||||
*/
|
||||
#define MS_PrintOptionsSet 2
|
||||
|
||||
/*
|
||||
* Message IDs for _DtPrint frame widgets
|
||||
*/
|
||||
#define DTPO_MARGINS 1
|
||||
#define DTPO_TOP 2
|
||||
#define DTPO_RIGHT 3
|
||||
#define DTPO_BOTTOM 4
|
||||
#define DTPO_LEFT 5
|
||||
|
||||
#define DTPO_HEADERS_N_FOOTERS 6
|
||||
#define DTPO_TOP_LEFT 7
|
||||
#define DTPO_TOP_RIGHT 8
|
||||
#define DTPO_BOTTOM_LEFT 9
|
||||
#define DTPO_BOTTOM_RIGHT 10
|
||||
|
||||
/*
|
||||
* extern declarations for PrintDlgMgr module
|
||||
*/
|
||||
extern CONST char _DtPrMsgPrintDlgMgr_0000[];
|
||||
extern CONST char _DtPrMsgPrintDlgMgr_0001[];
|
||||
extern CONST char _DtPrMsgPrintDlgMgr_0002[];
|
||||
|
||||
/*
|
||||
* Message set for PrintDlgMgr module
|
||||
*/
|
||||
#define MS_PrintDlgMgrSet 3
|
||||
|
||||
/*
|
||||
* Message IDs for PrintDlgMgr module
|
||||
*/
|
||||
#define DTPDM_SEND_MAIL_LABEL 1
|
||||
#define DTPDM_BANNER_LABEL 2
|
||||
#define DTPDM_SPOOL_OPTS_LABEL 3
|
||||
|
||||
|
||||
#ifdef I18N_MSG
|
||||
extern char * _DtPrintGetMessage(
|
||||
int set,
|
||||
int n,
|
||||
char * s);
|
||||
|
||||
#endif /* I18N_MSG */
|
||||
|
||||
#endif /* _DtPrintMsgsP_h */
|
||||
@@ -1,199 +0,0 @@
|
||||
/*
|
||||
* 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: PrintOptionsP.h /main/2 1996/03/12 09:28:04 drk $ */
|
||||
|
||||
#ifndef _DT_PRINT_OPTIONSP_H
|
||||
#define _DT_PRINT_OPTIONSP_H
|
||||
|
||||
/*
|
||||
*+SNOTICE
|
||||
*
|
||||
* $:$
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1994 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*+ENOTICE
|
||||
*/
|
||||
/*
|
||||
|
||||
Common Desktop Environment
|
||||
|
||||
(c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
|
||||
(c) Copyright 1993, 1994, 1995 International Business Machines Corp.
|
||||
(c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
|
||||
(c) Copyright 1993, 1994, 1995 Novell, Inc.
|
||||
(c) Copyright 1995 Digital Equipment Corp.
|
||||
(c) Copyright 1995 Fujitsu Limited
|
||||
(c) Copyright 1995 Hitachi, Ltd.
|
||||
|
||||
|
||||
RESTRICTED RIGHTS LEGEND
|
||||
|
||||
Use, duplication, or disclosure by the U.S. Government is subject to
|
||||
restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
|
||||
Technical Data and Computer Software clause in DFARS 252.227-7013. Rights
|
||||
for non-DOD U.S. Government Departments and Agencies are as set forth in
|
||||
FAR 52.227-19(c)(1,2).
|
||||
|
||||
Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
|
||||
International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A.
|
||||
Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
|
||||
Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
|
||||
Digital Equipment Corp., 111 Powdermill Road, Maynard, Massachusetts 01754, U.S.A.
|
||||
Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
|
||||
Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Message Catalog Lookup
|
||||
*/
|
||||
#define DTPO_MARGIN_FRAME_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_MARGINS, _DtPrMsgPrintOption_0000)
|
||||
#define DTPO_MARGIN_FRAME_TOP_MARGIN_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_TOP, _DtPrMsgPrintOption_0001)
|
||||
#define DTPO_MARGIN_FRAME_RIGHT_MARGIN_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_RIGHT, _DtPrMsgPrintOption_0002)
|
||||
#define DTPO_MARGIN_FRAME_BOTTOM_MARGIN_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_BOTTOM, _DtPrMsgPrintOption_0003)
|
||||
#define DTPO_MARGIN_FRAME_LEFT_MARGIN_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_LEFT, _DtPrMsgPrintOption_0004)
|
||||
|
||||
#define DTPO_HEADERFOOTER_FRAME_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_HEADERS_N_FOOTERS, _DtPrMsgPrintOption_0005)
|
||||
#define DTPO_HEADERFOOTER_FRAME_TOP_LEFT_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_TOP_LEFT, _DtPrMsgPrintOption_0006)
|
||||
#define DTPO_HEADERFOOTER_FRAME_TOP_RIGHT_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_TOP_RIGHT, _DtPrMsgPrintOption_0007)
|
||||
#define DTPO_HEADERFOOTER_FRAME_BOTTOM_LEFT_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_BOTTOM_LEFT, _DtPrMsgPrintOption_0008)
|
||||
#define DTPO_HEADERFOOTER_FRAME_BOTTOM_RIGHT_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintOptionsSet, DTPO_BOTTOM_RIGHT, _DtPrMsgPrintOption_0009)
|
||||
|
||||
|
||||
/*
|
||||
* Header/Footer Frame API
|
||||
*/
|
||||
typedef enum {
|
||||
DTPRINT_OPTION_HEADER_LEFT,
|
||||
DTPRINT_OPTION_HEADER_RIGHT,
|
||||
DTPRINT_OPTION_FOOTER_LEFT,
|
||||
DTPRINT_OPTION_FOOTER_RIGHT
|
||||
} _DtPrintHdrFtrEnum;
|
||||
|
||||
extern Widget _DtPrintCreateHdrFtrFrame(
|
||||
Widget parent,
|
||||
int nspecs,
|
||||
char **spec_strings,
|
||||
void **spec_data
|
||||
);
|
||||
|
||||
extern Widget _DtPrintHdrFtrFrameEnumToWidget(
|
||||
Widget frame,
|
||||
_DtPrintHdrFtrEnum which
|
||||
);
|
||||
|
||||
extern void _DtPrintHdrFtrFrameMenuWidgets(
|
||||
Widget frame,
|
||||
Widget *menu,
|
||||
int *nmenu_buttons,
|
||||
Widget **menu_buttons
|
||||
);
|
||||
|
||||
extern void *_DtPrintGetHdrFtrData(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern int _DtPrintGetHdrFtrIndex(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern char *_DtPrintGetHdrFtrString(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern void _DtPrintSetHdrFtrByData(
|
||||
Widget widget,
|
||||
void *data
|
||||
);
|
||||
|
||||
extern void _DtPrintSetHdrFtrByIndex(
|
||||
Widget widget,
|
||||
int index
|
||||
);
|
||||
|
||||
extern void _DtPrintSetHdrFtrByString(
|
||||
Widget widget,
|
||||
char *string
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* Margin Frame API
|
||||
*/
|
||||
typedef enum {
|
||||
DTPRINT_OPTION_MARGIN_TOP,
|
||||
DTPRINT_OPTION_MARGIN_RIGHT,
|
||||
DTPRINT_OPTION_MARGIN_BOTTOM,
|
||||
DTPRINT_OPTION_MARGIN_LEFT
|
||||
} _DtPrintMarginEnum;
|
||||
|
||||
extern Widget _DtPrintCreateMarginFrame(
|
||||
Widget parent
|
||||
);
|
||||
|
||||
extern Widget _DtPrintMarginFrameEnumToWidget(
|
||||
Widget frame,
|
||||
_DtPrintMarginEnum which
|
||||
);
|
||||
|
||||
extern char* _DtPrintGetMarginSpec(
|
||||
Widget margin
|
||||
);
|
||||
|
||||
extern void _DtPrintSetMarginSpec(
|
||||
Widget margin,
|
||||
char *spec
|
||||
);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DT_PRINT_OPTIONSP_H */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
@@ -1,536 +0,0 @@
|
||||
/*
|
||||
* 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: PrintSetupBP.h /main/16 1996/11/01 15:00:02 cde-hp $ */
|
||||
/*
|
||||
* DtPrint/PrintSetupBP.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 _DtPrintSetupBP_h
|
||||
#define _DtPrintSetupBP_h
|
||||
|
||||
#include <Xm/BulletinBP.h>
|
||||
#include <Dt/Print.h>
|
||||
#include <Dt/PrintMsgsP.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* ------------------------------------------------------------------------
|
||||
* Constant Definitions
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Message Catalog Lookup
|
||||
*/
|
||||
#define WARN_WORK_AREA_LOCATION DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_WARN_WA_LOCATION, _DtPrMsgPrintSetupBox_0000)
|
||||
#define SELECT_PRINTER_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_SELECT_PRINTER, _DtPrMsgPrintSetupBox_0001)
|
||||
#define PRINT_TO_FILE_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_PRINT_TO_FILE, _DtPrMsgPrintSetupBox_0002)
|
||||
#define SELECT_FILE_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_SELECT_FILE, _DtPrMsgPrintSetupBox_0003)
|
||||
#define CANCEL_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_CANCEL, _DtPrMsgPrintSetupBox_0004)
|
||||
#define COPIES_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_COPIES, _DtPrMsgPrintSetupBox_0005)
|
||||
#define HELP_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_HELP, _DtPrMsgPrintSetupBox_0006)
|
||||
#define PRINT_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_PRINT, _DtPrMsgPrintSetupBox_0007)
|
||||
#define PRINTER_NAME_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_PRINTER_NAME, _DtPrMsgPrintSetupBox_0008)
|
||||
#define SETUP_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_SETUP, _DtPrMsgPrintSetupBox_0009)
|
||||
#define DESCRIPTION_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_DESCRIPTION, _DtPrMsgPrintSetupBox_0010)
|
||||
#define WARN_COPY_COUNT DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_WARN_COPY_COUNT, _DtPrMsgPrintSetupBox_0011)
|
||||
#define WARN_SETUP_MODE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_WARN_SETUP_MODE, _DtPrMsgPrintSetupBox_0012)
|
||||
#define WARN_SETUP_MODE_CHANGE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_WARN_SETUP_MODE_CHANGE, _DtPrMsgPrintSetupBox_0013)
|
||||
#define PRINTER_INFO_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_PRINTER_INFO, _DtPrMsgPrintSetupBox_0014)
|
||||
#define INVALID_PRINTER_TITLE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_INVALID_PRINTER_TITLE, _DtPrMsgPrintSetupBox_0015)
|
||||
#define INVALID_PRINTER_MESSAGE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_INVALID_PRINTER_MESSAGE, _DtPrMsgPrintSetupBox_0016)
|
||||
#define INVALID_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_INVALID_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0017)
|
||||
#define NOT_XP_DISPLAY_MESSAGE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_NOT_XP_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0018)
|
||||
#define NO_DEFAULT_MESSAGE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_NO_DEFAULT_MESSAGE, _DtPrMsgPrintSetupBox_0019)
|
||||
#define NO_DEFAULT_DISPLAY_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \
|
||||
PSUB_NO_DEFAULT_DISPLAY_MESSAGE, _DtPrMsgPrintSetupBox_0020)
|
||||
#define PRINTER_MISSING_MESSAGE DTPRINT_GETMESSAGE(MS_PrintSetupBox, \
|
||||
PSUB_PRINTER_MISSING_MESSAGE, _DtPrMsgPrintSetupBox_0021)
|
||||
#define WARN_PRINT_DESTINATION DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_WARN_PRINT_DESTINATION, _DtPrMsgPrintSetupBox_0022)
|
||||
#define WARN_CT_CONVERSION DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_WARN_CT_CONVERSION, _DtPrMsgPrintSetupBox_0023)
|
||||
#define WARN_CONVERSION_ARGS DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_WARN_CONVERSION_ARGS, _DtPrMsgPrintSetupBox_0024)
|
||||
#define PRLIST_ERROR_TITLE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_PRLIST_ERROR_TITLE, _DtPrMsgPrintSetupBox_0025)
|
||||
#define NO_PRINTERS_MESSAGE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_NO_PRINTERS_MESSAGE, _DtPrMsgPrintSetupBox_0026)
|
||||
#define DESC_UNAVAILABLE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_DESC_UNAVAILABLE, _DtPrMsgPrintSetupBox_0027)
|
||||
#define SELECT_FILE_TITLE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_SELECT_FILE_TITLE, _DtPrMsgPrintSetupBox_0028)
|
||||
#define PRINTER_INFO_TITLE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_PRINTER_INFO_TITLE, _DtPrMsgPrintSetupBox_0029)
|
||||
#define FORMAT_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_FORMAT_LABEL, _DtPrMsgPrintSetupBox_0030)
|
||||
#define MODEL_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_MODEL_LABEL, _DtPrMsgPrintSetupBox_0031)
|
||||
#define PRINTER_LIST_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_PRINTER_LIST_LABEL, _DtPrMsgPrintSetupBox_0032)
|
||||
#define MORE_PRINTERS_TITLE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_MORE_PRINTERS_TITLE, _DtPrMsgPrintSetupBox_0033)
|
||||
#define PRINT_TO_PRINTER_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_PRINT_TO_PRINTER, _DtPrMsgPrintSetupBox_0034)
|
||||
#define FILE_NAME_LABEL DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_FILE_NAME, _DtPrMsgPrintSetupBox_0035)
|
||||
#define HELP_DLG_TITLE DTPRINT_GETMESSAGE( \
|
||||
MS_PrintSetupBox, PSUB_HELP_DLG_TITLE, _DtPrMsgPrintSetupBox_0036)
|
||||
#
|
||||
/*
|
||||
* Constants for Use in Allocation Geometry Matrix.
|
||||
*/
|
||||
#define DtPSUB_MAX_WIDGETS_VERT 12
|
||||
|
||||
/*
|
||||
* ------------------------------------------------------------------------
|
||||
* Type Definitions
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* data private to default resource procedures
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
String printer_name_ct;
|
||||
String printer_name;
|
||||
String description;
|
||||
} DtPrintSelectPrinterRec, *DtPrintSelectPrinterList;
|
||||
|
||||
typedef struct _DtPrintDefaultProcData
|
||||
{
|
||||
/*
|
||||
* common data
|
||||
*/
|
||||
Widget error_message_box;
|
||||
XtEnum messages_hint;
|
||||
Widget help_dialog;
|
||||
/*
|
||||
* select file proc
|
||||
*/
|
||||
Widget file_selection_box;
|
||||
/*
|
||||
* select printer proc
|
||||
*/
|
||||
Widget printer_selection_box;
|
||||
Widget printer_list_box;
|
||||
String* xp_server_list;
|
||||
int xp_server_count;
|
||||
DtPrintSelectPrinterList* printer_lists;
|
||||
int* printer_counts;
|
||||
int selected_printer;
|
||||
Display* select_printer_info_display;
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
XPContext select_printer_info_context;
|
||||
#endif /* PRINTING_SUPPORT */
|
||||
/*
|
||||
* printer info proc
|
||||
*/
|
||||
Widget printer_info_box;
|
||||
|
||||
} DtPrintDefaultProcData;
|
||||
|
||||
/*
|
||||
* verify state
|
||||
*/
|
||||
typedef enum {
|
||||
DtPRINT_VERIFIED,
|
||||
DtPRINT_IN_VERIFY,
|
||||
DtPRINT_NOT_VERIFIED
|
||||
} DtPrintVerifyState;
|
||||
|
||||
/*
|
||||
* Constraint part record for PrintSetupBox widget
|
||||
*/
|
||||
typedef struct _DtPrintSetupBoxConstraintPart
|
||||
{
|
||||
char unused;
|
||||
} DtPrintSetupBoxConstraintPart, * DtPrintSetupBoxConstraint;
|
||||
/*
|
||||
* New fields for the PrintSetupBox widget class record
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
XtCallbackProc list_callback ;
|
||||
XtPointer extension; /* Pointer to extension record */
|
||||
} DtPrintSetupBoxClassPart;
|
||||
/*
|
||||
* Full class record declaration
|
||||
*/
|
||||
typedef struct _DtPrintSetupBoxClassRec
|
||||
{
|
||||
CoreClassPart core_class;
|
||||
CompositeClassPart composite_class;
|
||||
ConstraintClassPart constraint_class;
|
||||
XmManagerClassPart manager_class;
|
||||
XmBulletinBoardClassPart bulletin_board_class;
|
||||
DtPrintSetupBoxClassPart print_setup_box_class;
|
||||
} DtPrintSetupBoxClassRec;
|
||||
|
||||
externalref DtPrintSetupBoxClassRec dtPrintSetupBoxClassRec;
|
||||
|
||||
/*
|
||||
* New fields for the PrintSetupBox widget record
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
/*
|
||||
* synthetic resources
|
||||
*/
|
||||
String file_name;
|
||||
String printer_name;
|
||||
XmString description_string;
|
||||
int copies;
|
||||
/*
|
||||
* flag resources
|
||||
*/
|
||||
Boolean minimize_buttons;
|
||||
XtEnum print_destination;
|
||||
XtEnum print_setup_mode;
|
||||
XtEnum work_area_location;
|
||||
/*
|
||||
* procedure resources
|
||||
*/
|
||||
DtPrintSetupProc printer_info_proc;
|
||||
DtPrintSetupProc select_file_proc;
|
||||
DtPrintSetupProc select_printer_proc;
|
||||
DtPrintSetupProc verify_printer_proc;
|
||||
/*
|
||||
* callback resources
|
||||
*/
|
||||
XtCallbackList cancel_callback;
|
||||
XtCallbackList close_display_callback;
|
||||
XtCallbackList print_callback;
|
||||
XtCallbackList setup_callback;
|
||||
/*
|
||||
* other resources
|
||||
*/
|
||||
XrmOptionDescList options;
|
||||
Cardinal option_count;
|
||||
/*
|
||||
* Xp standard resources
|
||||
*/
|
||||
XtEnum xp_printer_name_mode;
|
||||
/*
|
||||
* internal flags
|
||||
*/
|
||||
Boolean adding_sel_widgets;
|
||||
DtPrintVerifyState verify_printer_state;
|
||||
Boolean copy_count_supported;
|
||||
/*
|
||||
* internal data
|
||||
*/
|
||||
String modal_printer_spec;
|
||||
Display* print_display;
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
XPContext print_context;
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
XtIntervalId timeout_id;
|
||||
/*
|
||||
* descendents
|
||||
*/
|
||||
Widget bottom_separator;
|
||||
Widget bottom_work_area;
|
||||
Widget button_separator;
|
||||
Widget copies_control;
|
||||
Widget copies_spin_box;
|
||||
Widget description;
|
||||
Widget description_label;
|
||||
Widget destination_radio_box;
|
||||
Widget file_name_label;
|
||||
Widget file_name_text;
|
||||
Widget help_button;
|
||||
Widget print_button;
|
||||
Widget printer_info_button;
|
||||
Widget printer_name_label;
|
||||
Widget printer_name_text;
|
||||
Widget printer_name_combo;
|
||||
Widget select_file_button;
|
||||
Widget select_printer_button;
|
||||
Widget setup_button;
|
||||
Widget top_separator;
|
||||
Widget top_work_area;
|
||||
/*
|
||||
* data private to the default resource procedures
|
||||
*/
|
||||
DtPrintDefaultProcData default_proc_data;
|
||||
|
||||
} DtPrintSetupBoxPart;
|
||||
|
||||
/*
|
||||
* Full instance record declaration
|
||||
*/
|
||||
typedef struct _DtPrintSetupBoxRec
|
||||
{
|
||||
CorePart core;
|
||||
CompositePart composite;
|
||||
ConstraintPart constraint;
|
||||
XmManagerPart manager;
|
||||
XmBulletinBoardPart bulletin_board;
|
||||
DtPrintSetupBoxPart print_setup_box;
|
||||
} DtPrintSetupBoxRec;
|
||||
|
||||
/*
|
||||
* ------------------------------------------------------------------------
|
||||
* Macro Definitions
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Instance Record Access
|
||||
*/
|
||||
#define PSUB_AddingSelWidgets(w) \
|
||||
(((DtPrintSetupBoxWidget) w)->print_setup_box.adding_sel_widgets)
|
||||
#define PSUB_AutoUnmanage(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->bulletin_board.auto_unmanage)
|
||||
#define PSUB_BottomSeparator(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_separator)
|
||||
#define PSUB_BottomWorkArea(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.bottom_work_area)
|
||||
#define PSUB_ButtonSeparator(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.button_separator)
|
||||
#define PSUB_ButtonFontList(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->bulletin_board.button_font_list)
|
||||
#define PSUB_CancelButton(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->bulletin_board.cancel_button)
|
||||
#define PSUB_CancelCallback(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.cancel_callback)
|
||||
#define PSUB_CloseDisplayCallback(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.close_display_callback)
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
#define PSUB_Context(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.print_context)
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
#define PSUB_Copies(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.copies)
|
||||
#define PSUB_CopiesControl(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_control)
|
||||
#define PSUB_CopiesSpinBox(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.copies_spin_box)
|
||||
#define PSUB_CopyCountSupported(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.copy_count_supported)
|
||||
#define PSUB_DefaultButton(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->bulletin_board.default_button)
|
||||
#define PSUB_DefaultProcData(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.default_proc_data)
|
||||
#define PSUB_Description(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.description)
|
||||
#define PSUB_DescriptionLabel(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.description_label)
|
||||
#define PSUB_DescriptionString(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.description_string)
|
||||
#define PSUB_DestinationRadioBox(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.destination_radio_box)
|
||||
#define PSUB_Display(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.print_display)
|
||||
#define PSUB_FileName(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name)
|
||||
#define PSUB_FileNameLabel(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_label)
|
||||
#define PSUB_FileNameText(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.file_name_text)
|
||||
#define PSUB_HelpButton(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.help_button)
|
||||
#define PSUB_LabelFontList(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->bulletin_board.label_font_list)
|
||||
#define PSUB_MarginHeight(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_height)
|
||||
#define PSUB_MarginWidth(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->bulletin_board.margin_width)
|
||||
#define PSUB_MinimizeButtons(w) \
|
||||
(((DtPrintSetupBoxWidget) w)->print_setup_box.minimize_buttons)
|
||||
#define PSUB_ModalPrinterSpec(w) \
|
||||
(((DtPrintSetupBoxWidget) w)->print_setup_box.modal_printer_spec)
|
||||
#define PSUB_MustMatch(w) \
|
||||
(((DtPrintSetupBoxWidget) w)->print_setup_box.must_match)
|
||||
#define PSUB_OptionCount(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.option_count)
|
||||
#define PSUB_Options(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.options)
|
||||
#define PSUB_PrintButton(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.print_button)
|
||||
#define PSUB_PrintCallback(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.print_callback)
|
||||
#define PSUB_PrintDestination(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.print_destination)
|
||||
#define PSUB_PrinterInfoButton(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_button)
|
||||
#define PSUB_PrinterInfoProc(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_info_proc)
|
||||
#define PSUB_PrinterName(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name)
|
||||
#define PSUB_PrinterNameText(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_text)
|
||||
#define PSUB_PrinterNameCombo(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_combo)
|
||||
#define PSUB_PrinterNameLabel(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.printer_name_label)
|
||||
#define PSUB_PrintSetupMode(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.print_setup_mode)
|
||||
#define PSUB_SelectFileButton(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_button)
|
||||
#define PSUB_SelectFileProc(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.select_file_proc)
|
||||
#define PSUB_SelectPrinterButton(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_button)
|
||||
#define PSUB_SelectPrinterProc(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.select_printer_proc)
|
||||
#define PSUB_SetupButton(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_button)
|
||||
#define PSUB_SetupCallback(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.setup_callback)
|
||||
#define PSUB_Shell(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->bulletin_board.shell)
|
||||
#define PSUB_StringDirection(w) \
|
||||
(((DtPrintSetupBoxWidget)(w))->manager.string_direction)
|
||||
#define PSUB_Text(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.text)
|
||||
#define PSUB_TextColumns(w) \
|
||||
(((DtPrintSetupBoxWidget) w)->print_setup_box.text_columns)
|
||||
#define PSUB_TextFontList(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->bulletin_board.text_font_list)
|
||||
#define PSUB_TimeoutId(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.timeout_id)
|
||||
#define PSUB_TopSeparator(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.top_separator)
|
||||
#define PSUB_TopWorkArea(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.top_work_area)
|
||||
#define PSUB_VerifyPrinterProc(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_proc)
|
||||
#define PSUB_VerifyPrinterState(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.verify_printer_state)
|
||||
#define PSUB_WorkAreaLocation(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.work_area_location)
|
||||
#define PSUB_XpPrinterNameMode(w) \
|
||||
(((DtPrintSetupBoxWidget) (w))->print_setup_box.xp_printer_name_mode)
|
||||
|
||||
/*
|
||||
* ------------------------------------------------------------------------
|
||||
* Private Function Declarations
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Child Widget Creation Functions
|
||||
*/
|
||||
extern void _DtPrintSetupBoxCreateButtonSeparator(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateBottomSeparator(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateCancelButton(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateCopiesControl(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateDescription(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateDescriptionLabel(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateDestinationRadioBox(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateFileNameLabel(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateFileNameText(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateHelpButton(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreatePrintButton(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreatePrinterInfoButton(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreatePrinterNameLabel(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreatePrinterNameCombo(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateSelectFileButton(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateSelectPrinterButton(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateSetupButton(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
extern void _DtPrintSetupBoxCreateTopSeparator(
|
||||
DtPrintSetupBoxWidget psub);
|
||||
/*
|
||||
* Synthetic resource internal->external conversion functions
|
||||
*/
|
||||
extern void _DtPrintSetupBoxGetCopies(
|
||||
Widget wid,
|
||||
int resource_offset,
|
||||
XtArgVal *value);
|
||||
extern void _DtPrintSetupBoxGetDescription(
|
||||
Widget wid,
|
||||
int resource_offset,
|
||||
XtArgVal *value);
|
||||
extern void _DtPrintSetupBoxGetFileName(
|
||||
Widget wid,
|
||||
int resource_offset,
|
||||
XtArgVal *value);
|
||||
extern void _DtPrintSetupBoxGetPrinterName(
|
||||
Widget wid,
|
||||
int resource_offset,
|
||||
XtArgVal *value);
|
||||
/*
|
||||
* Geometry Management
|
||||
*/
|
||||
extern XmGeoMatrix _DtPrintSetupBoxGeoMatrixCreate(
|
||||
Widget wid,
|
||||
Widget instigator,
|
||||
XtWidgetGeometry *desired);
|
||||
extern Boolean _DtPrintSetupBoxNoGeoRequest(
|
||||
XmGeoMatrix geoSpec);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtPrintSetupBP_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* 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: PsubDefProcI.h /main/10 1996/11/01 15:00:46 cde-hp $ */
|
||||
/*
|
||||
* DtPrint/PsubDefProcI.h
|
||||
*/
|
||||
/*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (c) Copyright 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 _DtPsubDefProcI_h
|
||||
#define _DtPsubDefProcI_h
|
||||
|
||||
#include <Dt/Print.h>
|
||||
#include <Dt/PrintMsgsP.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* ------------------------------------------------------------------------
|
||||
* Private Function Declarations
|
||||
*
|
||||
*/
|
||||
extern void _DtPrintDefProcInitialize(Widget w);
|
||||
extern void _DtPrintDefProcManageErrorBox(DtPrintDefaultProcData* dpd);
|
||||
|
||||
/*
|
||||
* Procedure Resource Defaults
|
||||
*/
|
||||
extern XtEnum _DtPrintSetupBoxXPrinterInfoProc(
|
||||
Widget w,
|
||||
DtPrintSetupData* print_data);
|
||||
extern XtEnum _DtPrintSetupBoxSelectFileProc(
|
||||
Widget w,
|
||||
DtPrintSetupData* print_data);
|
||||
extern XtEnum _DtPrintSetupBoxSelectXPrinterProc(
|
||||
Widget w,
|
||||
DtPrintSetupData* print_data);
|
||||
extern XtEnum _DtPrintSetupBoxVerifyXPrinterProc(
|
||||
Widget w,
|
||||
DtPrintSetupData* print_data);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtPsubDefProcI_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
@@ -1,102 +0,0 @@
|
||||
/*
|
||||
* 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: PsubUtilI.h /main/3 1996/08/12 18:41:41 cde-hp $ */
|
||||
/*
|
||||
* DtPrint/PsubUtilI.h
|
||||
*/
|
||||
/*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (c) Copyright 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 _DtPsubUtilI_h
|
||||
#define _DtPsubUtilI_h
|
||||
|
||||
#include <Dt/Print.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* ------------------------------------------------------------------------
|
||||
* Type Definitions
|
||||
*
|
||||
*/
|
||||
typedef enum {
|
||||
DtPRINT_DEC_NET,
|
||||
DtPRINT_TCP_IPC,
|
||||
DtPRINT_NET_UNSPECIFIED
|
||||
} DtPrintSpecNet;
|
||||
|
||||
/*
|
||||
* ------------------------------------------------------------------------
|
||||
* Private Function Declarations
|
||||
*
|
||||
*/
|
||||
String _DtPrintCreateXPrinterSpecifier(
|
||||
String printer_name,
|
||||
String host_name,
|
||||
DtPrintSpecNet spec_net,
|
||||
int display_num,
|
||||
int screen_num);
|
||||
void _DtPrintFreeStringList(
|
||||
String* string_list);
|
||||
String _DtPrintGetDefaultXPrinterName(
|
||||
Widget w);
|
||||
String* _DtPrintGetXpPrinterList(
|
||||
Widget w);
|
||||
String* _DtPrintGetXpServerList(
|
||||
Widget w);
|
||||
void _DtPrintParseXDisplaySpecifier(
|
||||
const String display_spec,
|
||||
String* host_name,
|
||||
DtPrintSpecNet* spec_net,
|
||||
int* display_num,
|
||||
int* screen_num);
|
||||
void _DtPrintParseXPrinterSpecifier(
|
||||
const String specifier,
|
||||
String* printer_name,
|
||||
String* display_spec);
|
||||
XtEnum _DtPrintVerifyXPrinter(
|
||||
Widget w,
|
||||
String printer_spec,
|
||||
String* new_printer_spec,
|
||||
Display** new_display
|
||||
#if 0 && defined(PRINTING_SUPPORTED)
|
||||
,XPContext* new_context
|
||||
#endif /* PRINTING_SUPPORTED */
|
||||
);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* Close scope of 'extern "C"' declaration which encloses file. */
|
||||
#endif
|
||||
|
||||
#endif /* _DtPsubUtilI_h */
|
||||
/* DON'T ADD ANYTHING AFTER THIS #endif */
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* 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: dtpdmd.h /main/4 1996/08/12 18:41:45 cde-hp $ */
|
||||
/******************************************************************************
|
||||
******************************************************************************
|
||||
**
|
||||
** File: dtpdmd.h
|
||||
**
|
||||
** Description: Header file for the "dtpdmd/dtpdm protocol" which
|
||||
** consists of a standard command line dtpdmd->dtpdm
|
||||
** and starndard exit codes dtpdm->dtpdmd.
|
||||
**
|
||||
** Other dtpdmd header stuff lives here too.
|
||||
**
|
||||
** (c) Copyright 1995, 1996, Hewlett-Packard Company, all rights reserved.
|
||||
**
|
||||
******************************************************************************
|
||||
*****************************************************************************/
|
||||
|
||||
/*
|
||||
* (c) Copyright 1996 Digital Equipment Corporation.
|
||||
* (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.
|
||||
*/
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* Standard command line parameters for any PDM which
|
||||
* will become a child of dtpdmd via fork/exec.
|
||||
*
|
||||
* generic_pdm [dt-pdm-command options] [dtpdmd options]
|
||||
*
|
||||
* where [dt-pdm-command options] is:
|
||||
* - any additional options that were specified along with
|
||||
* the dt-pdm-command attribute from the X Print Server.
|
||||
*
|
||||
* where [dtpdmd options] is any of:
|
||||
* -display dpy Specified the display connection to the Video X-Server.
|
||||
* -window vwid Specified the window id on dpy.
|
||||
* -pdisplay pdpy Specified the display connection to the Print X-Server.
|
||||
* -pcontext pcid Specified the print context id on pdpy.
|
||||
*/
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* Standard exit() codes for any PDM which is a child of dtpdmd.
|
||||
*/
|
||||
#define PDM_EXIT_NONE None
|
||||
#define PDM_EXIT_OK 191 /* "OK" */
|
||||
#define PDM_EXIT_CANCEL 192 /* "CANCEL" */
|
||||
#define PDM_EXIT_VXAUTH 193 /* no print display authorization */
|
||||
#define PDM_EXIT_PXAUTH 194 /* no video display authorization */
|
||||
#define PDM_EXIT_ERROR 195 /* all other error reasons */
|
||||
|
||||
/*
|
||||
* Misc information.
|
||||
*/
|
||||
#define DEFAULT_PDM_EXECUTABLE "dtpdm"
|
||||
|
||||
Reference in New Issue
Block a user