]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/dcprint.h
Move wxCheckBoxNameStr declarations to wx/tglbtn.h from wx/port/tglbtn.h.
[wxWidgets.git] / include / wx / palmos / dcprint.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/dcprint.h
3// Purpose: wxPrinterDC class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCPRINT_H_
13#define _WX_DCPRINT_H_
14
ffecfa5a
JS
15#if wxUSE_PRINTING_ARCHITECTURE
16
17#include "wx/dc.h"
18#include "wx/cmndata.h"
19
53a2db12 20class WXDLLIMPEXP_CORE wxPrinterDC : public wxDC
ffecfa5a
JS
21{
22public:
23 // Create a printer DC (obsolete function: use wxPrintData version now)
af7e24c3 24 wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, wxPrintOrientation orientation = wxPORTRAIT);
ffecfa5a
JS
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
6d52ca53 37 wxRect GetPaperRect() const;
f415cab9 38
ffecfa5a
JS
39protected:
40 virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
41 bool useMask = FALSE);
42 virtual bool DoBlit(wxCoord xdest, wxCoord ydest,
43 wxCoord width, wxCoord height,
44 wxDC *source, wxCoord xsrc, wxCoord ysrc,
89efaf2b
FM
45 wxRasterOperationMode rop = wxCOPY, bool useMask = FALSE,
46 wxCoord xsrcMask = -1, wxCoord ysrcMask = -1);
ffecfa5a
JS
47
48 // init the dc
49 void Init();
50
51 wxPrintData m_printData;
52
53private:
54 DECLARE_DYNAMIC_CLASS_NO_COPY(wxPrinterDC)
55};
56
57// Gets an HDC for the default printer configuration
53a2db12 58// WXHDC WXDLLIMPEXP_CORE wxGetPrinterDC(int orientation);
ffecfa5a
JS
59
60// Gets an HDC for the specified printer configuration
53a2db12 61WXHDC WXDLLIMPEXP_CORE wxGetPrinterDC(const wxPrintData& data);
ffecfa5a
JS
62
63#endif // wxUSE_PRINTING_ARCHITECTURE
64
65#endif
66 // _WX_DCPRINT_H_
67