widget/os2/nsPrintdOS2.h
author Vivien Nicolas <21@vingtetun.org> and Chris Jones <jones.chris.g@gmail.com>
Thu, 24 Jan 2013 10:39:18 -0800
changeset 118338 893e68b73efd5d9f564016c34b9c8e10c774bb28
parent 115050 2d1a365a332043ac3cc4bbc0cc2c216610004ce8
permissions -rw-r--r--
Rollup of bug 819000: Preload about:blank. r=cjones,jlebar a=cjones Includes the following patches Bug 819000: Bail out of PresShell::Paint if not active. r=roc Bug 819000: Make sure preloaded docshells are reset to active. r=jlebar Bug 819000: Preload about:blank. r=cjones a=cjones

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 *
 * 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/. */

/* Original Code: Syd Logan (syd@netscape.com) 3/12/99 */

#ifndef nsPrintdOS2_h___
#define nsPrintdOS2_h___

#include <limits.h>

#ifdef __cplusplus
extern "C" {
#endif

/* 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

typedef enum  
{
  printToFile = 0, 
  printToPrinter, 
  printPreview 
} printDest;

typedef struct OS2prdata {
        printDest destination;     /* print to file, printer or print preview */
        int copies;                /* number of copies to print   0 < n < 999 */
        char printer[ PATH_MAX ];  /* Printer selected - name*/
        char path[ PATH_MAX ];     /* If destination = printToFile, dest file */
        bool cancel;		     /* If true, user cancelled */
} OS2PrData;

#ifdef __cplusplus
}
#endif

#endif /* nsPrintdOS2_h___ */