]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/palmos/dcprint.h
added Unicode-friendly wxSTRINGIZE_T()
[wxWidgets.git] / include / wx / palmos / dcprint.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/dcprint.h
3// Purpose: wxPrinterDC class
4// Author: William Osborne - minimal working wxPalmOS port
5// Modified by:
6// Created: 10/13/04
7// RCS-ID: $Id$
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCPRINT_H_
13#define _WX_DCPRINT_H_
14
15#if wxUSE_PRINTING_ARCHITECTURE
16
17#include "wx/dc.h"
18#include "wx/cmndata.h"
19
20class WXDLLEXPORT wxPrinterDC : public wxDC
21{
22public:
23 // Create a printer DC (obsolete function: use wxPrintData version now)
24 wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT);
25
26 // Create from print data
27 wxPrinterDC(const wxPrintData& data);
28
29 wxPrinterDC(WXHDC theDC);
30
31 // override some base class virtuals
32 virtual bool StartDoc(const wxString& message);
33 virtual void EndDoc();
34 virtual void StartPage();
35 virtual void EndPage();
36
37protected:
38 virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
39 bool useMask = FALSE);
40 virtual bool DoBlit(wxCoord xdest, wxCoord ydest,
41 wxCoord width, wxCoord height,
42 wxDC *source, wxCoord xsrc, wxCoord ysrc,
43 int rop = wxCOPY, bool useMask = FALSE, wxCoord xsrcMask = -1, wxCoord ysrcMask = -1);
44
45 // init the dc
46 void Init();
47
48 wxPrintData m_printData;
49
50private:
51 DECLARE_DYNAMIC_CLASS_NO_COPY(wxPrinterDC)
52};
53
54// Gets an HDC for the default printer configuration
55// WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation);
56
57// Gets an HDC for the specified printer configuration
58WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data);
59
60#endif // wxUSE_PRINTING_ARCHITECTURE
61
62#endif
63 // _WX_DCPRINT_H_
64