#ifndef _WX_PRNTBASEH__
#define _WX_PRNTBASEH__
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "prntbase.h"
-#endif
-
#include "wx/defs.h"
#if wxUSE_PRINTING_ARCHITECTURE
static void SetPrintFactory( wxPrintFactory *factory );
static wxPrintFactory *GetFactory();
+private:
static wxPrintFactory *m_factory;
};
virtual bool TransferTo( wxPrintData &data ) = 0;
virtual bool TransferFrom( const wxPrintData &data ) = 0;
- virtual bool Ok() const = 0;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const = 0;
int m_ref;
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxT("canvas"));
- ~wxPreviewCanvas();
+ virtual ~wxPreviewCanvas();
void OnPaint(wxPaintEvent& event);
void OnChar(wxKeyEvent &event);
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxT("frame"));
- ~wxPreviewFrame();
+ virtual ~wxPreviewFrame();
void OnCloseWindow(wxCloseEvent& event);
virtual void Initialize();
const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL,
const wxString& name = wxT("panel"));
- ~wxPreviewControlBar();
+ virtual ~wxPreviewControlBar();
virtual void CreateButtons();
virtual void SetZoomControl(int zoom);
virtual int GetMaxPage() const;
virtual int GetMinPage() const;
- virtual bool Ok() const;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const;
virtual void SetOk(bool ok);
///////////////////////////////////////////////////////////////////////////
virtual void AdjustScrollbars(wxPreviewCanvas *canvas);
virtual bool RenderPage(int pageNum);
virtual void SetZoom(int percent);
+ virtual int GetZoom() const;
virtual bool Print(bool interactive);
virtual void DetermineScaling();
virtual int GetMaxPage() const;
virtual int GetMinPage() const;
- virtual bool Ok() const;
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk() const;
virtual void SetOk(bool ok);
private: