1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-19 20:14:35 -04:00
|
|
|
// Name: wx/generic/printps.h
|
1998-05-20 10:01:55 -04:00
|
|
|
// Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
|
|
|
|
// wxGenericPageSetupDialog
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
2005-05-04 14:57:50 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __PRINTPSH__
|
|
|
|
#define __PRINTPSH__
|
|
|
|
|
|
|
|
#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
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPostScriptPrinter : public wxPrinterBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-03-25 18:06:01 -05:00
|
|
|
public:
|
2009-01-19 08:55:27 -05:00
|
|
|
wxPostScriptPrinter(wxPrintDialogData *data = NULL);
|
1999-03-29 15:49:05 -05:00
|
|
|
virtual ~wxPostScriptPrinter();
|
|
|
|
|
2004-06-17 12:22:36 -04:00
|
|
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
|
1999-03-25 18:06:01 -05:00
|
|
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
|
|
|
virtual bool Setup(wxWindow *parent);
|
2004-06-17 12:22:36 -04:00
|
|
|
|
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
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE 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,
|
2009-01-19 08:55:27 -05:00
|
|
|
wxPrintout *printoutForPrinting = NULL,
|
|
|
|
wxPrintDialogData *data = NULL);
|
1999-03-29 15:49:05 -05:00
|
|
|
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__
|