1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcprint.h
|
|
|
|
// Purpose: wxPrinterDC class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
#ifndef _WX_DCPRINT_H_
|
|
|
|
#define _WX_DCPRINT_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "dcprint.h"
|
|
|
|
#endif
|
|
|
|
|
1999-06-13 18:54:04 -04:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
1998-05-20 10:12:05 -04:00
|
|
|
#include "wx/dc.h"
|
1999-03-25 18:06:01 -05:00
|
|
|
#include "wx/cmndata.h"
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxPrinterDC: public wxDC
|
|
|
|
{
|
1999-03-25 18:06:01 -05:00
|
|
|
public:
|
|
|
|
DECLARE_CLASS(wxPrinterDC)
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-03-25 18:06:01 -05:00
|
|
|
// Create a printer DC (obsolete function: use wxPrintData version now)
|
|
|
|
wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-03-25 18:06:01 -05:00
|
|
|
// Create from print data
|
|
|
|
wxPrinterDC(const wxPrintData& data);
|
|
|
|
|
|
|
|
wxPrinterDC(WXHDC theDC);
|
|
|
|
|
|
|
|
~wxPrinterDC(void);
|
|
|
|
|
|
|
|
bool StartDoc(const wxString& message);
|
|
|
|
void EndDoc(void);
|
|
|
|
void StartPage(void);
|
|
|
|
void EndPage(void);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxPrintData m_printData;
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
// Gets an HDC for the default printer configuration
|
1999-03-25 18:06:01 -05:00
|
|
|
// WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation);
|
|
|
|
|
|
|
|
// Gets an HDC for the specified printer configuration
|
|
|
|
WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-06-13 18:54:04 -04:00
|
|
|
#endif // wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
1998-05-20 10:12:05 -04:00
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_DCPRINT_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|