1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/generic/printps.h
|
1998-05-20 14:01:55 +00:00
|
|
|
// Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
|
|
|
|
// wxGenericPageSetupDialog
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
2005-05-04 18:57:50 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __PRINTPSH__
|
|
|
|
#define __PRINTPSH__
|
|
|
|
|
|
|
|
#include "wx/prntbase.h"
|
|
|
|
|
2002-04-07 13:29:02 +00:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
|
1999-06-15 20:21:59 +00:00
|
|
|
|
1999-03-29 20:49:05 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Represents the printer: manages printing a wxPrintout object
|
|
|
|
// ----------------------------------------------------------------------------
|
1999-03-25 23:06:01 +00:00
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPostScriptPrinter : public wxPrinterBase
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1999-03-25 23:06:01 +00:00
|
|
|
public:
|
2009-01-19 13:55:27 +00:00
|
|
|
wxPostScriptPrinter(wxPrintDialogData *data = NULL);
|
1999-03-29 20:49:05 +00:00
|
|
|
virtual ~wxPostScriptPrinter();
|
|
|
|
|
2004-06-17 16:22:36 +00:00
|
|
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
|
1999-03-25 23:06:01 +00:00
|
|
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
|
|
|
virtual bool Setup(wxWindow *parent);
|
2004-06-17 16:22:36 +00:00
|
|
|
|
2002-09-13 22:00:45 +00:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
1999-03-29 20:49:05 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxPrintPreview: programmer creates an object of this class to preview a
|
|
|
|
// wxPrintout.
|
|
|
|
// ----------------------------------------------------------------------------
|
1999-03-25 23:06:01 +00:00
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPostScriptPrintPreview : public wxPrintPreviewBase
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1999-03-25 23:06:01 +00:00
|
|
|
public:
|
1999-03-29 20:49:05 +00:00
|
|
|
wxPostScriptPrintPreview(wxPrintout *printout,
|
2009-01-19 13:55:27 +00:00
|
|
|
wxPrintout *printoutForPrinting = NULL,
|
|
|
|
wxPrintDialogData *data = NULL);
|
1999-03-29 20:49:05 +00:00
|
|
|
wxPostScriptPrintPreview(wxPrintout *printout,
|
|
|
|
wxPrintout *printoutForPrinting,
|
|
|
|
wxPrintData *data);
|
|
|
|
|
|
|
|
virtual ~wxPostScriptPrintPreview();
|
|
|
|
|
1999-03-25 23:06:01 +00:00
|
|
|
virtual bool Print(bool interactive);
|
1999-03-29 20:49:05 +00:00
|
|
|
virtual void DetermineScaling();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
|
2002-09-13 22:00:45 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_CLASS(wxPostScriptPrintPreview)
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
1999-06-15 20:21:59 +00:00
|
|
|
#endif
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
1999-03-25 23:06:01 +00:00
|
|
|
// __PRINTPSH__
|