1999-01-01 11:05:26 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcprint.h
|
|
|
|
// Purpose: wxPrinterDC class
|
2003-02-28 16:54:04 -05:00
|
|
|
// Author: Stefan Csomor
|
1999-01-01 11:05:26 -05:00
|
|
|
// Modified by:
|
2003-02-28 16:54:04 -05:00
|
|
|
// Created: 1998-01-01
|
1999-01-01 11:05:26 -05:00
|
|
|
// RCS-ID: $Id$
|
2003-02-28 16:54:04 -05:00
|
|
|
// Copyright: (c) Stefan Csomor
|
2003-02-28 18:36:37 -05:00
|
|
|
// Licence: wxWindows licence
|
1999-01-01 11:05:26 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCPRINT_H_
|
|
|
|
#define _WX_DCPRINT_H_
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1999-01-01 11:05:26 -05:00
|
|
|
#pragma interface "dcprint.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/dc.h"
|
1999-11-05 04:16:09 -05:00
|
|
|
#include "wx/cmndata.h"
|
1999-01-01 11:05:26 -05:00
|
|
|
|
2003-05-19 14:27:10 -04:00
|
|
|
class wxNativePrinterDC ;
|
|
|
|
|
1999-01-01 11:05:26 -05:00
|
|
|
class WXDLLEXPORT wxPrinterDC: public wxDC
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DECLARE_CLASS(wxPrinterDC)
|
|
|
|
|
2001-02-15 16:51:14 -05:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE
|
1999-01-01 11:05:26 -05:00
|
|
|
// Create a printer DC
|
1999-11-05 04:16:09 -05:00
|
|
|
wxPrinterDC(const wxPrintData& printdata );
|
1999-01-01 11:05:26 -05:00
|
|
|
~wxPrinterDC();
|
1999-11-05 04:16:09 -05:00
|
|
|
|
|
|
|
virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
|
|
|
|
virtual void EndDoc(void) ;
|
|
|
|
virtual void StartPage(void) ;
|
|
|
|
virtual void EndPage(void) ;
|
2003-05-19 14:27:10 -04:00
|
|
|
wxPrintData& GetPrintData() { return m_printData; }
|
|
|
|
virtual void DoGetSize( int *width, int *height ) const;
|
|
|
|
|
2002-01-06 10:43:29 -05:00
|
|
|
protected:
|
2003-05-19 14:27:10 -04:00
|
|
|
wxPrintData m_printData ;
|
|
|
|
wxNativePrinterDC* m_nativePrinterDC ;
|
2001-02-15 16:51:14 -05:00
|
|
|
#endif // wxUSE_PRINTING_ARCHITECTURE
|
1999-01-01 11:05:26 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCPRINT_H_
|
|
|
|
|