1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: printps.h
|
|
|
|
// Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
|
|
|
|
// wxGenericPageSetupDialog
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c)
|
2004-05-23 10:56:36 -04:00
|
|
|
// Licence: wxWidgets licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __PRINTPSH__
|
|
|
|
#define __PRINTPSH__
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1999-03-29 15:49:05 -05:00
|
|
|
#pragma interface "printps.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/prntbase.h"
|
|
|
|
|
2002-04-07 09:29:02 -04:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
|
1999-06-15 16:21:59 -04:00
|
|
|
|
1999-03-29 15:49:05 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Represents the printer: manages printing a wxPrintout object
|
|
|
|
// ----------------------------------------------------------------------------
|
1999-03-25 18:06:01 -05:00
|
|
|
|
1999-03-29 15:49:05 -05:00
|
|
|
class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-03-25 18:06:01 -05:00
|
|
|
public:
|
|
|
|
wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL);
|
1999-03-29 15:49:05 -05:00
|
|
|
virtual ~wxPostScriptPrinter();
|
|
|
|
|
1999-03-25 18:06:01 -05:00
|
|
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
|
|
|
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
|
|
|
virtual bool Setup(wxWindow *parent);
|
2002-09-13 18:00:45 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
1999-03-29 15:49:05 -05:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxPrintPreview: programmer creates an object of this class to preview a
|
|
|
|
// wxPrintout.
|
|
|
|
// ----------------------------------------------------------------------------
|
1999-03-25 18:06:01 -05:00
|
|
|
|
1999-03-29 15:49:05 -05:00
|
|
|
class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-03-25 18:06:01 -05:00
|
|
|
public:
|
1999-03-29 15:49:05 -05:00
|
|
|
wxPostScriptPrintPreview(wxPrintout *printout,
|
|
|
|
wxPrintout *printoutForPrinting = (wxPrintout *) NULL,
|
|
|
|
wxPrintDialogData *data = (wxPrintDialogData *) NULL);
|
|
|
|
wxPostScriptPrintPreview(wxPrintout *printout,
|
|
|
|
wxPrintout *printoutForPrinting,
|
|
|
|
wxPrintData *data);
|
|
|
|
|
|
|
|
virtual ~wxPostScriptPrintPreview();
|
|
|
|
|
1999-03-25 18:06:01 -05:00
|
|
|
virtual bool Print(bool interactive);
|
1999-03-29 15:49:05 -05:00
|
|
|
virtual void DetermineScaling();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
|
2002-09-13 18:00:45 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_CLASS(wxPostScriptPrintPreview)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
1999-06-15 16:21:59 -04:00
|
|
|
#endif
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
1999-03-25 18:06:01 -05:00
|
|
|
// __PRINTPSH__
|