Added creation of printer DC to printer factory.
Added wxPrintData ctor to wxGnomePrintDC. Added wxGnomePrintPreview. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include "wx/prntbase.h"
|
||||
#include "wx/printdlg.h"
|
||||
#include "wx/print.h"
|
||||
#include "wx/dcprint.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -54,6 +55,7 @@
|
||||
#include "wx/mac/private/print.h"
|
||||
#else
|
||||
#include "wx/generic/prntdlgg.h"
|
||||
#include "wx/dcps.h"
|
||||
#endif
|
||||
|
||||
#ifdef __WXMSW__
|
||||
@@ -201,6 +203,17 @@ wxDialog *wxNativePrintFactory::CreatePrintSetupDialog( wxWindow *parent,
|
||||
#endif
|
||||
}
|
||||
|
||||
wxDC* wxNativePrintFactory::CreatePrinterDC( const wxPrintData& data )
|
||||
{
|
||||
#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
|
||||
return new wxPrinterDC(data);
|
||||
#elif defined(__WXMAC__)
|
||||
return new wxPrinterDC(data);
|
||||
#else
|
||||
return new wxPrinterDC(data);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool wxNativePrintFactory::HasOwnPrintToFile()
|
||||
{
|
||||
// Only relevant for PostScript and here the
|
||||
|
Reference in New Issue
Block a user