]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/dcprint.cpp
Committing in .
[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
20#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "dcprint.h"
22#endif
23
24// For compilers that support precompilation, includes "wx.h".
25#include "wx/wxprec.h"
26
27#ifdef __BORLANDC__
28 #pragma hdrstop
29#endif
30
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
39#if wxUSE_PRINTING_ARCHITECTURE
40
41#include "wx/palmos/private.h"
42
43#if wxUSE_WXDIB
44#include "wx/palmos/dib.h"
45#endif
46
47#include "wx/dcprint.h"
ffecfa5a
JS
48
49// ----------------------------------------------------------------------------
50// wxWin macros
51// ----------------------------------------------------------------------------
52
53IMPLEMENT_CLASS(wxPrinterDC, wxDC)
54
55// ============================================================================
56// implementation
57// ============================================================================
58
59// ----------------------------------------------------------------------------
60// wxPrinterDC construction
61// ----------------------------------------------------------------------------
62
63// This form is deprecated
64wxPrinterDC::wxPrinterDC(const wxString& driver_name,
65 const wxString& device_name,
66 const wxString& file,
67 bool interactive,
68 int orientation)
69{
70}
71
72wxPrinterDC::wxPrinterDC(const wxPrintData& printData)
73{
74}
75
76
77wxPrinterDC::wxPrinterDC(WXHDC dc)
78{
79}
80
81void wxPrinterDC::Init()
82{
83}
84
85// ----------------------------------------------------------------------------
86// wxPrinterDC {Start/End}{Page/Doc} methods
87// ----------------------------------------------------------------------------
88
89bool wxPrinterDC::StartDoc(const wxString& message)
90{
91 return false;
92}
93
94void wxPrinterDC::EndDoc()
95{
96}
97
98void wxPrinterDC::StartPage()
99{
100}
101
102void wxPrinterDC::EndPage()
103{
104}
105
106// Returns default device and port names
107static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
108{
109 return false;
110}
111
112// Gets an HDC for the specified printer configuration
113WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
114{
115 return (WXHDC) 0;
116}
117
118// ----------------------------------------------------------------------------
119// wxPrinterDC bit blitting/bitmap drawing
120// ----------------------------------------------------------------------------
121
122// helper of DoDrawBitmap() and DoBlit()
123static
124bool DrawBitmapUsingStretchDIBits(HDC hdc,
125 const wxBitmap& bmp,
126 wxCoord x, wxCoord y)
127{
128 return false;
129}
130
131void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,
132 wxCoord x, wxCoord y,
133 bool useMask)
134{
135}
136
137bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
138 wxCoord width, wxCoord height,
139 wxDC *source,
140 wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
141 int WXUNUSED(rop), bool useMask,
142 wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
143{
144 return false;
145}
146
147#endif
148 // wxUSE_PRINTING_ARCHITECTURE