2006-02-16 21:31:54 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
2012-05-21 11:12:37 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-02-16 21:31:54 +00:00
|
|
|
|
|
|
|
/* Original Code: Syd Logan (syd@netscape.com) 3/12/99 */
|
|
|
|
|
|
|
|
#ifndef nsPrintdOS2_h___
|
|
|
|
#define nsPrintdOS2_h___
|
|
|
|
|
|
|
|
#include <limits.h>
|
|
|
|
|
2012-10-01 02:10:22 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2006-02-16 21:31:54 +00:00
|
|
|
|
|
|
|
/* stolen from nsPostScriptObj.h. needs to be put somewhere else that
|
|
|
|
both ps and gtk can see easily */
|
|
|
|
|
|
|
|
#ifndef PATH_MAX
|
|
|
|
#ifdef _POSIX_PATH_MAX
|
|
|
|
#define PATH_MAX _POSIX_PATH_MAX
|
|
|
|
#else
|
|
|
|
#define PATH_MAX 256
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2006-02-16 21:32:09 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
printToFile = 0,
|
|
|
|
printToPrinter,
|
|
|
|
printPreview
|
|
|
|
} printDest;
|
|
|
|
|
2006-02-16 21:31:54 +00:00
|
|
|
typedef struct OS2prdata {
|
2006-02-16 21:32:09 +00:00
|
|
|
printDest destination; /* print to file, printer or print preview */
|
2006-02-16 21:31:54 +00:00
|
|
|
int copies; /* number of copies to print 0 < n < 999 */
|
|
|
|
char printer[ PATH_MAX ]; /* Printer selected - name*/
|
2006-02-16 21:32:10 +00:00
|
|
|
char path[ PATH_MAX ]; /* If destination = printToFile, dest file */
|
2011-09-29 06:19:26 +00:00
|
|
|
bool cancel; /* If true, user cancelled */
|
2006-02-16 21:31:54 +00:00
|
|
|
} OS2PrData;
|
|
|
|
|
2012-10-01 02:10:22 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2006-02-16 21:31:54 +00:00
|
|
|
|
|
|
|
#endif /* nsPrintdOS2_h___ */
|