X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c061373dc5ba0ed5e3670af0698154302f1fec2c..18860312a42d941279c3b9b84b32775d8e80fddf:/src/common/prntbase.cpp diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 512ae64a71..d6dc62a0a4 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -10,7 +10,8 @@ ///////////////////////////////////////////////////////////////////////////// #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "prntbase.h" + #pragma implementation "prntbase.h" + #pragma implementation "printdlg.h" #endif // For compilers that support precompilation, includes "wx.h". @@ -145,6 +146,28 @@ wxPrintDialogBase *wxNativePrintFactory::CreatePrintDialog( wxWindow *parent, #endif } +wxPrintNativeDataBase *wxNativePrintFactory::CreatePrintNativeData() +{ +#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__) + return new wxWindowsPrintNativeData; +#elif defined(__WXMAC__) + return new wxMacPrintNativeData; +#else + return new wxPostScriptPrintNativeData; +#endif +} + +//---------------------------------------------------------------------------- +// wxPrintNativeDataBase +//---------------------------------------------------------------------------- + +IMPLEMENT_ABSTRACT_CLASS(wxPrintNativeDataBase, wxObject) + +wxPrintNativeDataBase::wxPrintNativeDataBase() +{ + m_ref = 1; +} + //---------------------------------------------------------------------------- // wxPrinterBase //----------------------------------------------------------------------------