2004-10-27 07:19:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-09-15 11:26:27 -04:00
|
|
|
// Name: wx/gtk/gnome/gprint.h
|
2004-10-27 07:19:30 -04:00
|
|
|
// Author: Robert Roebling
|
|
|
|
// Purpose: GNOME printing support
|
|
|
|
// Created: 09/20/04
|
2005-09-15 11:26:27 -04:00
|
|
|
// RCS-ID: $Id$
|
2004-10-27 07:19:30 -04:00
|
|
|
// Copyright: Robert Roebling
|
2004-11-01 13:40:51 -05:00
|
|
|
// Licence: wxWindows Licence
|
2004-10-27 07:19:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-12-07 00:44:44 -05:00
|
|
|
#ifndef _WX_GTK_GPRINT_H_
|
|
|
|
#define _WX_GTK_GPRINT_H_
|
2004-10-27 07:19:30 -04:00
|
|
|
|
2005-09-25 16:49:40 -04:00
|
|
|
#include "wx/defs.h"
|
2004-10-27 07:19:30 -04:00
|
|
|
|
2004-11-01 13:40:51 -05:00
|
|
|
#if wxUSE_LIBGNOMEPRINT
|
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
#include "wx/print.h"
|
|
|
|
#include "wx/printdlg.h"
|
2005-09-25 16:49:40 -04:00
|
|
|
#include "wx/dc.h"
|
2007-09-05 15:26:46 -04:00
|
|
|
#include "wx/module.h"
|
2004-10-27 07:19:30 -04:00
|
|
|
|
|
|
|
typedef struct _GnomePrintJob GnomePrintJob;
|
|
|
|
typedef struct _GnomePrintContext GnomePrintContext;
|
|
|
|
typedef struct _GnomePrintConfig GnomePrintConfig;
|
|
|
|
|
2007-09-05 15:26:46 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxGnomePrintModule
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxGnomePrintModule: public wxModule
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGnomePrintModule() {}
|
|
|
|
bool OnInit();
|
|
|
|
void OnExit();
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxGnomePrintModule)
|
|
|
|
};
|
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
// wxGnomePrintNativeData
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxGnomePrintNativeData: public wxPrintNativeDataBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGnomePrintNativeData();
|
|
|
|
virtual ~wxGnomePrintNativeData();
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
virtual bool TransferTo( wxPrintData &data );
|
|
|
|
virtual bool TransferFrom( const wxPrintData &data );
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2006-10-08 17:56:55 -04:00
|
|
|
virtual bool Ok() const { return IsOk(); }
|
|
|
|
virtual bool IsOk() const { return true; }
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
GnomePrintConfig* GetPrintConfig() { return m_config; }
|
2004-11-22 16:50:31 -05:00
|
|
|
void SetPrintJob( GnomePrintJob *job ) { m_job = job; }
|
2004-10-27 07:19:30 -04:00
|
|
|
GnomePrintJob* GetPrintJob() { return m_job; }
|
2005-09-15 11:26:27 -04:00
|
|
|
|
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
private:
|
|
|
|
GnomePrintConfig *m_config;
|
|
|
|
GnomePrintJob *m_job;
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxGnomePrintNativeData)
|
|
|
|
};
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
// wxGnomePrintFactory
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxGnomePrintFactory: public wxPrintFactory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual wxPrinterBase *CreatePrinter( wxPrintDialogData *data );
|
2005-09-15 11:26:27 -04:00
|
|
|
|
|
|
|
virtual wxPrintPreviewBase *CreatePrintPreview( wxPrintout *preview,
|
|
|
|
wxPrintout *printout = NULL,
|
2004-10-27 07:19:30 -04:00
|
|
|
wxPrintDialogData *data = NULL );
|
2005-09-15 11:26:27 -04:00
|
|
|
virtual wxPrintPreviewBase *CreatePrintPreview( wxPrintout *preview,
|
2004-10-27 07:19:30 -04:00
|
|
|
wxPrintout *printout,
|
|
|
|
wxPrintData *data );
|
2005-09-15 11:26:27 -04:00
|
|
|
|
|
|
|
virtual wxPrintDialogBase *CreatePrintDialog( wxWindow *parent,
|
2004-10-27 07:19:30 -04:00
|
|
|
wxPrintDialogData *data = NULL );
|
2005-09-15 11:26:27 -04:00
|
|
|
virtual wxPrintDialogBase *CreatePrintDialog( wxWindow *parent,
|
2004-10-27 07:19:30 -04:00
|
|
|
wxPrintData *data );
|
2004-11-20 09:46:25 -05:00
|
|
|
|
|
|
|
virtual wxPageSetupDialogBase *CreatePageSetupDialog( wxWindow *parent,
|
|
|
|
wxPageSetupDialogData * data = NULL );
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2007-11-14 09:49:40 -05:00
|
|
|
#if wxUSE_NEW_DC
|
2007-11-30 08:48:22 -05:00
|
|
|
virtual wxDCImpl* CreatePrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data );
|
2007-11-14 09:49:40 -05:00
|
|
|
#else
|
2006-10-24 11:41:39 -04:00
|
|
|
virtual wxDC* CreatePrinterDC( const wxPrintData& data );
|
2007-11-14 09:49:40 -05:00
|
|
|
#endif
|
2006-10-24 11:41:39 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
virtual bool HasPrintSetupDialog();
|
|
|
|
virtual wxDialog *CreatePrintSetupDialog( wxWindow *parent, wxPrintData *data );
|
|
|
|
virtual bool HasOwnPrintToFile();
|
|
|
|
virtual bool HasPrinterLine();
|
|
|
|
virtual wxString CreatePrinterLine();
|
|
|
|
virtual bool HasStatusLine();
|
|
|
|
virtual wxString CreateStatusLine();
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
virtual wxPrintNativeDataBase *CreatePrintNativeData();
|
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
2004-11-17 11:59:50 -05:00
|
|
|
// wxGnomePrintDialog
|
2004-10-27 07:19:30 -04:00
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
2004-11-17 11:59:50 -05:00
|
|
|
class wxGnomePrintDialog: public wxPrintDialogBase
|
2004-10-27 07:19:30 -04:00
|
|
|
{
|
|
|
|
public:
|
2004-11-17 11:59:50 -05:00
|
|
|
wxGnomePrintDialog( wxWindow *parent,
|
2004-11-20 09:46:25 -05:00
|
|
|
wxPrintDialogData* data = NULL );
|
2004-11-17 11:59:50 -05:00
|
|
|
wxGnomePrintDialog( wxWindow *parent, wxPrintData* data);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxGnomePrintDialog();
|
2004-11-17 11:59:50 -05:00
|
|
|
|
|
|
|
wxPrintData& GetPrintData()
|
|
|
|
{ return m_printDialogData.GetPrintData(); }
|
|
|
|
wxPrintDialogData& GetPrintDialogData()
|
|
|
|
{ return m_printDialogData; }
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-11-17 11:59:50 -05:00
|
|
|
wxDC *GetPrintDC();
|
2004-10-27 07:19:30 -04:00
|
|
|
|
|
|
|
virtual int ShowModal();
|
|
|
|
|
|
|
|
virtual bool Validate();
|
|
|
|
virtual bool TransferDataToWindow();
|
|
|
|
virtual bool TransferDataFromWindow();
|
|
|
|
|
2006-12-07 00:44:44 -05:00
|
|
|
protected:
|
2004-10-27 07:19:30 -04:00
|
|
|
// Implement some base class methods to do nothing to avoid asserts and
|
|
|
|
// GTK warnings, since this is not a real wxDialog.
|
|
|
|
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height),
|
|
|
|
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
|
|
|
|
virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height)) {}
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2006-12-07 00:44:44 -05:00
|
|
|
private:
|
2004-11-17 11:59:50 -05:00
|
|
|
void Init();
|
|
|
|
wxPrintDialogData m_printDialogData;
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-11-17 11:59:50 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxGnomePrintDialog)
|
2004-10-27 07:19:30 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
2004-11-20 09:46:25 -05:00
|
|
|
// wxGnomePageSetupDialog
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxGnomePageSetupDialog: public wxPageSetupDialogBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGnomePageSetupDialog( wxWindow *parent,
|
|
|
|
wxPageSetupDialogData* data = NULL );
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxGnomePageSetupDialog();
|
2004-11-20 09:46:25 -05:00
|
|
|
|
|
|
|
virtual wxPageSetupDialogData& GetPageSetupDialogData();
|
|
|
|
|
|
|
|
virtual int ShowModal();
|
|
|
|
|
|
|
|
virtual bool Validate();
|
|
|
|
virtual bool TransferDataToWindow();
|
|
|
|
virtual bool TransferDataFromWindow();
|
|
|
|
|
2006-12-07 00:44:44 -05:00
|
|
|
protected:
|
2004-11-20 09:46:25 -05:00
|
|
|
// Implement some base class methods to do nothing to avoid asserts and
|
|
|
|
// GTK warnings, since this is not a real wxDialog.
|
|
|
|
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height),
|
|
|
|
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
|
|
|
|
virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height)) {}
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2006-12-07 00:44:44 -05:00
|
|
|
private:
|
2004-11-20 09:46:25 -05:00
|
|
|
wxPageSetupDialogData m_pageDialogData;
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-11-20 09:46:25 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxGnomePageSetupDialog)
|
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
2004-10-27 07:19:30 -04:00
|
|
|
// wxGnomePrinter
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxGnomePrinter: public wxPrinterBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGnomePrinter(wxPrintDialogData *data = NULL);
|
|
|
|
virtual ~wxGnomePrinter();
|
|
|
|
|
|
|
|
virtual bool Print(wxWindow *parent,
|
|
|
|
wxPrintout *printout,
|
|
|
|
bool prompt = true);
|
|
|
|
virtual wxDC* PrintDialog(wxWindow *parent);
|
|
|
|
virtual bool Setup(wxWindow *parent);
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
private:
|
2004-11-18 09:45:40 -05:00
|
|
|
bool m_native_preview;
|
2004-10-27 07:19:30 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxGnomePrinter)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxGnomePrinter);
|
2004-10-27 07:19:30 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
2007-11-13 08:20:15 -05:00
|
|
|
// wxGnomePrinterDC
|
2004-10-27 07:19:30 -04:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2007-11-14 09:49:40 -05:00
|
|
|
#if wxUSE_NEW_DC
|
2007-11-30 08:48:22 -05:00
|
|
|
class wxGnomePrinterDCImpl : public wxDCImpl
|
2007-11-14 09:49:40 -05:00
|
|
|
#else
|
2007-11-30 08:48:22 -05:00
|
|
|
#define wxGnomePrinterDCImpl wxGnomePrinterDC
|
2007-11-14 09:49:40 -05:00
|
|
|
class wxGnomePrinterDC : public wxDC
|
|
|
|
#endif
|
2004-10-27 07:19:30 -04:00
|
|
|
{
|
|
|
|
public:
|
2007-11-14 09:49:40 -05:00
|
|
|
#if wxUSE_NEW_DC
|
2007-11-30 08:48:22 -05:00
|
|
|
wxGnomePrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data );
|
2007-11-14 09:49:40 -05:00
|
|
|
#else
|
2007-11-13 08:20:15 -05:00
|
|
|
wxGnomePrinterDC( const wxPrintData& data );
|
2007-11-14 09:49:40 -05:00
|
|
|
#endif
|
2007-11-30 08:48:22 -05:00
|
|
|
virtual ~wxGnomePrinterDCImpl();
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2006-10-08 17:56:55 -04:00
|
|
|
bool Ok() const { return IsOk(); }
|
|
|
|
bool IsOk() const;
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2006-12-07 00:44:44 -05:00
|
|
|
bool CanDrawBitmap() const { return true; }
|
|
|
|
void Clear();
|
|
|
|
void SetFont( const wxFont& font );
|
|
|
|
void SetPen( const wxPen& pen );
|
|
|
|
void SetBrush( const wxBrush& brush );
|
2009-01-08 09:21:53 -05:00
|
|
|
void SetLogicalFunction( wxRasterOperationMode function );
|
2006-12-07 00:44:44 -05:00
|
|
|
void SetBackground( const wxBrush& brush );
|
|
|
|
void DestroyClippingRegion();
|
|
|
|
bool StartDoc(const wxString& message);
|
|
|
|
void EndDoc();
|
|
|
|
void StartPage();
|
|
|
|
void EndPage();
|
|
|
|
wxCoord GetCharHeight() const;
|
|
|
|
wxCoord GetCharWidth() const;
|
|
|
|
bool CanGetTextExtent() const { return true; }
|
|
|
|
wxSize GetPPI() const;
|
|
|
|
virtual int GetDepth() const { return 24; }
|
|
|
|
void SetBackgroundMode(int WXUNUSED(mode)) { }
|
|
|
|
void SetPalette(const wxPalette& WXUNUSED(palette)) { }
|
|
|
|
|
|
|
|
protected:
|
2009-01-08 09:21:53 -05:00
|
|
|
bool DoFloodFill(wxCoord x1, wxCoord y1, const wxColour &col,
|
|
|
|
wxFloodFillStyle style=wxFLOOD_SURFACE );
|
2004-10-27 07:19:30 -04:00
|
|
|
bool DoGetPixel(wxCoord x1, wxCoord y1, wxColour *col) const;
|
|
|
|
void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2);
|
|
|
|
void DoCrossHair(wxCoord x, wxCoord y);
|
|
|
|
void DoDrawArc(wxCoord x1,wxCoord y1,wxCoord x2,wxCoord y2,wxCoord xc,wxCoord yc);
|
|
|
|
void DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea);
|
|
|
|
void DoDrawPoint(wxCoord x, wxCoord y);
|
|
|
|
void DoDrawLines(int n, wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0);
|
2009-01-08 09:21:53 -05:00
|
|
|
void DoDrawPolygon(int n, wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
|
|
|
void DoDrawPolyPolygon(int n, int count[], wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fillStyle=wxODDEVEN_RULE);
|
2004-10-27 07:19:30 -04:00
|
|
|
void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
|
|
|
void DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20.0);
|
|
|
|
void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
2005-09-15 11:26:27 -04:00
|
|
|
#if wxUSE_SPLINES
|
2007-10-19 10:53:55 -04:00
|
|
|
void DoDrawSpline(const wxPointList *points);
|
2008-11-15 06:10:34 -05:00
|
|
|
#endif
|
2004-10-27 07:19:30 -04:00
|
|
|
bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
2009-01-08 09:21:53 -05:00
|
|
|
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
|
|
|
wxRasterOperationMode = wxCOPY, bool useMask = false,
|
2004-10-27 07:19:30 -04:00
|
|
|
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
|
|
|
|
void DoDrawIcon( const wxIcon& icon, wxCoord x, wxCoord y );
|
|
|
|
void DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask = false );
|
|
|
|
void DoDrawText(const wxString& text, wxCoord x, wxCoord y );
|
|
|
|
void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle);
|
|
|
|
void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
2008-06-07 21:45:56 -04:00
|
|
|
void DoSetDeviceClippingRegion( const wxRegion &WXUNUSED(clip) )
|
|
|
|
{
|
|
|
|
wxFAIL_MSG( "not implemented" );
|
|
|
|
}
|
2004-10-27 07:19:30 -04:00
|
|
|
void DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y,
|
2009-01-19 08:55:27 -05:00
|
|
|
wxCoord *descent = NULL,
|
|
|
|
wxCoord *externalLeading = NULL,
|
|
|
|
const wxFont *theFont = NULL ) const;
|
2004-10-27 07:19:30 -04:00
|
|
|
void DoGetSize(int* width, int* height) const;
|
|
|
|
void DoGetSizeMM(int *width, int *height) const;
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2007-05-26 18:27:58 -04:00
|
|
|
void SetPrintData(const wxPrintData& data);
|
2004-10-27 07:19:30 -04:00
|
|
|
wxPrintData& GetPrintData() { return m_printData; }
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2007-11-14 09:49:40 -05:00
|
|
|
// overriden for wxPrinterDC Impl
|
2008-11-15 06:10:34 -05:00
|
|
|
virtual wxRect GetPaperRect() const;
|
|
|
|
virtual int GetResolution() const;
|
2007-11-14 09:49:40 -05:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
private:
|
2006-10-24 11:41:39 -04:00
|
|
|
wxPrintData m_printData;
|
2004-10-27 07:19:30 -04:00
|
|
|
PangoContext *m_context;
|
|
|
|
PangoLayout *m_layout;
|
|
|
|
PangoFontDescription *m_fontdesc;
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
unsigned char m_currentRed;
|
|
|
|
unsigned char m_currentGreen;
|
|
|
|
unsigned char m_currentBlue;
|
2008-11-15 06:10:34 -05:00
|
|
|
|
2007-09-10 10:00:44 -04:00
|
|
|
double m_pageHeight;
|
2005-09-15 11:26:27 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
GnomePrintContext *m_gpc;
|
2007-05-26 18:27:58 -04:00
|
|
|
GnomePrintJob* m_job;
|
2004-10-27 07:19:30 -04:00
|
|
|
|
2006-02-24 04:36:35 -05:00
|
|
|
void makeEllipticalPath(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
2007-04-24 21:49:47 -04:00
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
private:
|
2007-11-30 08:48:22 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxGnomePrinterDCImpl)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxGnomePrinterDCImpl);
|
2004-10-27 07:19:30 -04:00
|
|
|
};
|
|
|
|
|
2006-10-24 11:41:39 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxGnomePrintPreview: programmer creates an object of this class to preview a
|
|
|
|
// wxPrintout.
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2006-10-24 12:32:08 -04:00
|
|
|
class wxGnomePrintPreview : public wxPrintPreviewBase
|
2006-10-24 11:41:39 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGnomePrintPreview(wxPrintout *printout,
|
2009-01-19 08:55:27 -05:00
|
|
|
wxPrintout *printoutForPrinting = NULL,
|
|
|
|
wxPrintDialogData *data = NULL);
|
2006-10-24 11:41:39 -04:00
|
|
|
wxGnomePrintPreview(wxPrintout *printout,
|
|
|
|
wxPrintout *printoutForPrinting,
|
|
|
|
wxPrintData *data);
|
|
|
|
|
|
|
|
virtual ~wxGnomePrintPreview();
|
|
|
|
|
|
|
|
virtual bool Print(bool interactive);
|
|
|
|
virtual void DetermineScaling();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_CLASS(wxGnomePrintPreview)
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-11-01 13:40:51 -05:00
|
|
|
#endif
|
|
|
|
// wxUSE_LIBGNOMEPRINT
|
|
|
|
|
2004-10-27 07:19:30 -04:00
|
|
|
#endif
|