]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/printpalm.cpp
Use wxMBConvUTF8 when G_FILENAME_ENCODING is UTF-8, and set
[wxWidgets.git] / src / palmos / printpalm.cpp
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/printpalm.cpp
ffecfa5a 3// Purpose: wxPalmPrinter framework
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 "printpalm.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#include "wx/defs.h"
32
33// Don't use the Windows printer if we're in wxUniv mode and using
34// the PostScript architecture
35#if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
36
37#ifndef WX_PRECOMP
38 #include "wx/window.h"
39 #include "wx/palmos/private.h"
40 #include "wx/utils.h"
41 #include "wx/dc.h"
42 #include "wx/app.h"
43 #include "wx/msgdlg.h"
44 #include "wx/intl.h"
45#endif
46
47#include "wx/palmos/printpalm.h"
48#include "wx/dcprint.h"
49#include "wx/printdlg.h"
50#include "wx/log.h"
51#include "wx/palmos/private.h"
52
53// ---------------------------------------------------------------------------
54// private functions
55// ---------------------------------------------------------------------------
56
57// ---------------------------------------------------------------------------
58// wxWin macros
59// ---------------------------------------------------------------------------
60
61 IMPLEMENT_DYNAMIC_CLASS(wxPalmPrinter, wxPrinterBase)
62 IMPLEMENT_CLASS(wxPalmPrintPreview, wxPrintPreviewBase)
63
64// ===========================================================================
65// implementation
66// ===========================================================================
67
68// ---------------------------------------------------------------------------
69// Printer
70// ---------------------------------------------------------------------------
71
72wxPalmPrinter::wxPalmPrinter(wxPrintDialogData *data)
73 : wxPrinterBase(data)
74{
75}
76
77wxPalmPrinter::~wxPalmPrinter()
78{
79}
80
81bool wxPalmPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
82{
83 return false;
84}
85
86wxDC* wxPalmPrinter::PrintDialog(wxWindow *parent)
87{
88 wxDC* dc = (wxDC*) NULL;
89
90 return dc;
91}
92
93bool wxPalmPrinter::Setup(wxWindow *parent)
94{
95 return false;
96}
97
98/*
99* Print preview
100*/
101
102wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout *printout,
103 wxPrintout *printoutForPrinting,
104 wxPrintDialogData *data)
105 : wxPrintPreviewBase(printout, printoutForPrinting, data)
106{
107}
108
109wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout *printout,
110 wxPrintout *printoutForPrinting,
111 wxPrintData *data)
112 : wxPrintPreviewBase(printout, printoutForPrinting, data)
113{
114}
115
116wxPalmPrintPreview::~wxPalmPrintPreview()
117{
118}
119
120bool wxPalmPrintPreview::Print(bool interactive)
121{
122 return false;
123}
124
125void wxPalmPrintPreview::DetermineScaling()
126{
127}
128
129#endif
130 // wxUSE_PRINTING_ARCHITECTURE