2006-02-17 00:31:54 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04: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-17 00:31:54 +03:00
|
|
|
|
|
|
|
/* Original Code: Syd Logan (syd@netscape.com) 3/12/99 */
|
|
|
|
|
|
|
|
#ifndef nsPrintdOS2_h___
|
|
|
|
#define nsPrintdOS2_h___
|
|
|
|
|
|
|
|
#include <limits.h>
|
|
|
|
|
2012-10-01 06:10:22 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2006-02-17 00:31:54 +03: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-17 00:32:09 +03:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
printToFile = 0,
|
|
|
|
printToPrinter,
|
|
|
|
printPreview
|
|
|
|
} printDest;
|
|
|
|
|
2006-02-17 00:31:54 +03:00
|
|
|
typedef struct OS2prdata {
|
2006-02-17 00:32:09 +03:00
|
|
|
printDest destination; /* print to file, printer or print preview */
|
2006-02-17 00:31:54 +03:00
|
|
|
int copies; /* number of copies to print 0 < n < 999 */
|
|
|
|
char printer[ PATH_MAX ]; /* Printer selected - name*/
|
2006-02-17 00:32:10 +03:00
|
|
|
char path[ PATH_MAX ]; /* If destination = printToFile, dest file */
|
2011-09-29 10:19:26 +04:00
|
|
|
bool cancel; /* If true, user cancelled */
|
2006-02-17 00:31:54 +03:00
|
|
|
} OS2PrData;
|
|
|
|
|
2012-10-01 06:10:22 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2006-02-17 00:31:54 +03:00
|
|
|
|
|
|
|
#endif /* nsPrintdOS2_h___ */
|