1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: print.h
|
|
|
|
// Purpose: wxPrinter, wxPrintPreview classes
|
1999-10-15 00:07:54 -04:00
|
|
|
// Author: David Webster
|
1999-07-29 01:11:30 -04:00
|
|
|
// Modified by:
|
1999-10-15 00:07:54 -04:00
|
|
|
// Created: 10/14/99
|
1999-07-29 01:11:30 -04:00
|
|
|
// RCS-ID: $Id$
|
1999-10-15 00:07:54 -04:00
|
|
|
// Copyright: (c) David Webster
|
|
|
|
// Licence: wxWindows licence
|
1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRINT_H_
|
|
|
|
#define _WX_PRINT_H_
|
|
|
|
|
|
|
|
#include "wx/prntbase.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Represents the printer: manages printing a wxPrintout object
|
|
|
|
*/
|
1999-10-15 00:07:54 -04:00
|
|
|
|
1999-07-29 01:11:30 -04:00
|
|
|
class WXDLLEXPORT wxPrinter: public wxPrinterBase
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPrinter)
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxPrinter(wxPrintData *data = NULL);
|
|
|
|
~wxPrinter();
|
|
|
|
|
|
|
|
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
|
1999-10-15 00:07:54 -04:00
|
|
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
1999-07-29 01:11:30 -04:00
|
|
|
virtual bool Setup(wxWindow *parent);
|
1999-10-15 00:07:54 -04:00
|
|
|
private:
|
1999-07-29 01:11:30 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* wxPrintPreview
|
|
|
|
* Programmer creates an object of this class to preview a wxPrintout.
|
|
|
|
*/
|
1999-10-15 00:07:54 -04:00
|
|
|
|
1999-07-29 01:11:30 -04:00
|
|
|
class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase
|
|
|
|
{
|
|
|
|
DECLARE_CLASS(wxPrintPreview)
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
|
|
|
|
~wxPrintPreview();
|
|
|
|
|
|
|
|
virtual bool Print(bool interactive);
|
|
|
|
virtual void DetermineScaling();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_PRINT_H_
|