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)
|
1999-03-29 15:49:05 -05:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __PRINTPSH__
|
|
|
|
#define __PRINTPSH__
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
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"
|
|
|
|
|
1999-06-15 16:21:59 -04:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
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
|
|
|
DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
|
1999-03-29 15:49:05 -05: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);
|
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
|
|
|
DECLARE_CLASS(wxPostScriptPrintPreview)
|
1999-03-29 15:49:05 -05: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);
|
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__
|