1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: printwin.h
|
|
|
|
// Purpose: wxWindowsPrinter, wxWindowsPrintPreview classes
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
1999-04-02 17:30:56 -05:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
#ifndef _WX_PRINTWIN_H_
|
|
|
|
#define _WX_PRINTWIN_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1999-04-02 17:30:56 -05:00
|
|
|
#pragma interface "printwin.h"
|
1998-05-20 10:12:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/prntbase.h"
|
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Represents the printer: manages printing a wxPrintout object
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxWindowsPrinter : public wxPrinterBase
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1999-04-02 17:30:56 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxWindowsPrinter)
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
public:
|
|
|
|
wxWindowsPrinter(wxPrintDialogData *data = NULL);
|
|
|
|
virtual ~wxWindowsPrinter();
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
virtual bool Print(wxWindow *parent,
|
|
|
|
wxPrintout *printout,
|
|
|
|
bool prompt = TRUE);
|
|
|
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
|
|
|
virtual bool Setup(wxWindow *parent);
|
1998-08-28 07:00:50 -04:00
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
private:
|
|
|
|
WXFARPROC m_lpAbortProc;
|
2003-01-02 18:38:11 -05:00
|
|
|
|
|
|
|
DECLARE_NO_COPY_CLASS(wxWindowsPrinter)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// wxPrintPreview: programmer creates an object of this class to preview a
|
|
|
|
// wxPrintout.
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxWindowsPrintPreview : public wxPrintPreviewBase
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1999-04-02 17:30:56 -05:00
|
|
|
public:
|
|
|
|
wxWindowsPrintPreview(wxPrintout *printout,
|
|
|
|
wxPrintout *printoutForPrinting = NULL,
|
|
|
|
wxPrintDialogData *data = NULL);
|
|
|
|
wxWindowsPrintPreview(wxPrintout *printout,
|
|
|
|
wxPrintout *printoutForPrinting,
|
|
|
|
wxPrintData *data);
|
|
|
|
virtual ~wxWindowsPrintPreview();
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
virtual bool Print(bool interactive);
|
|
|
|
virtual void DetermineScaling();
|
2003-07-21 20:24:07 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxWindowsPrintPreview)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1999-04-02 17:30:56 -05:00
|
|
|
// _WX_PRINTWIN_H_
|