]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/dcprint.cpp
Removed comma
[wxWidgets.git] / src / palmos / dcprint.cpp
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/dcprint.cpp
3// Purpose: wxPrinterDC class
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
ffecfa5a
JS
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
6d50343d
WS
27#if wxUSE_PRINTING_ARCHITECTURE
28
29#include "wx/dcprint.h"
30
ffecfa5a
JS
31#ifndef WX_PRECOMP
32 #include "wx/string.h"
33 #include "wx/log.h"
34 #include "wx/window.h"
35 #include "wx/dcmemory.h"
463c4d71 36 #include "wx/math.h"
ffecfa5a
JS
37#endif
38
ffecfa5a
JS
39#include "wx/palmos/private.h"
40
41#if wxUSE_WXDIB
42#include "wx/palmos/dib.h"
43#endif
44
ffecfa5a
JS
45
46// ----------------------------------------------------------------------------
47// wxWin macros
48// ----------------------------------------------------------------------------
49
50IMPLEMENT_CLASS(wxPrinterDC, wxDC)
51
52// ============================================================================
53// implementation
54// ============================================================================
55
56// ----------------------------------------------------------------------------
57// wxPrinterDC construction
58// ----------------------------------------------------------------------------
59
60// This form is deprecated
61wxPrinterDC::wxPrinterDC(const wxString& driver_name,
62 const wxString& device_name,
63 const wxString& file,
64 bool interactive,
65 int orientation)
66{
67}
68
69wxPrinterDC::wxPrinterDC(const wxPrintData& printData)
70{
71}
72
73
74wxPrinterDC::wxPrinterDC(WXHDC dc)
75{
76}
77
78void wxPrinterDC::Init()
79{
80}
81
82// ----------------------------------------------------------------------------
83// wxPrinterDC {Start/End}{Page/Doc} methods
84// ----------------------------------------------------------------------------
85
86bool wxPrinterDC::StartDoc(const wxString& message)
87{
88 return false;
89}
90
91void wxPrinterDC::EndDoc()
92{
93}
94
95void wxPrinterDC::StartPage()
96{
97}
98
99void wxPrinterDC::EndPage()
100{
101}
102
103// Returns default device and port names
104static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
105{
106 return false;
107}
108
109// Gets an HDC for the specified printer configuration
110WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
111{
112 return (WXHDC) 0;
113}
114
115// ----------------------------------------------------------------------------
116// wxPrinterDC bit blitting/bitmap drawing
117// ----------------------------------------------------------------------------
118
119// helper of DoDrawBitmap() and DoBlit()
120static
121bool DrawBitmapUsingStretchDIBits(HDC hdc,
122 const wxBitmap& bmp,
123 wxCoord x, wxCoord y)
124{
125 return false;
126}
127
128void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,
129 wxCoord x, wxCoord y,
130 bool useMask)
131{
132}
133
134bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
135 wxCoord width, wxCoord height,
136 wxDC *source,
137 wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
138 int WXUNUSED(rop), bool useMask,
139 wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
140{
141 return false;
142}
143
144#endif
145 // wxUSE_PRINTING_ARCHITECTURE