git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50376
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxDCImpl* wxGtkPrintFactory::CreatePrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data )
{
return new wxGtkPrinterDCImpl( owner, data );
}
wxDCImpl* wxGtkPrintFactory::CreatePrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data )
{
return new wxGtkPrinterDCImpl( owner, data );
}
-#else
-
-wxDC* wxGtkPrintFactory::CreatePrinterDC( const wxPrintData& data )
-{
- return new wxGtkPrinterDC(data);
-}
-
-#endif
-
bool wxGtkPrintFactory::HasOwnPrintToFile()
{
return true;
bool wxGtkPrintFactory::HasOwnPrintToFile()
{
return true;
SetPrintContext(context);
native->SetPrintContext( context );
SetPrintContext(context);
native->SetPrintContext( context );
wxPrinterDC *printDC = new wxPrinterDC( printdata );
wxPrinterDC *printDC = new wxPrinterDC( printdata );
-#else
- wxGtkPrinterDC *printDC = new wxGtkPrinterDC( printdata );
-#endif
m_dc = printDC;
if (!m_dc->IsOk())
m_dc = printDC;
if (!m_dc->IsOk())
m_printDialogData = dialog.GetPrintDialogData();
m_printDialogData = dialog.GetPrintDialogData();
return new wxPrinterDC( m_printDialogData.GetPrintData() );
return new wxPrinterDC( m_printDialogData.GetPrintData() );
-#else
- return new wxGtkPrinterDC( m_printDialogData.GetPrintData() );
-#endif
}
bool wxGtkPrinter::Setup( wxWindow * WXUNUSED(parent) )
}
bool wxGtkPrinter::Setup( wxWindow * WXUNUSED(parent) )
#define YLOG2DEVREL(x) ((double)(LogicalToDeviceYRel(x)) * m_DEV2PS)
#define YLOG2DEVREL(x) ((double)(LogicalToDeviceYRel(x)) * m_DEV2PS)
IMPLEMENT_ABSTRACT_CLASS(wxGtkPrinterDCImpl, wxDCImpl)
IMPLEMENT_ABSTRACT_CLASS(wxGtkPrinterDCImpl, wxDCImpl)
-#else
-IMPLEMENT_ABSTRACT_CLASS(wxGtkPrinterDC, wxDC)
-#endif
wxGtkPrinterDCImpl::wxGtkPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data ) :
wxDCImpl( owner )
wxGtkPrinterDCImpl::wxGtkPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data ) :
wxDCImpl( owner )
-#else
-wxGtkPrinterDC::wxGtkPrinterDC( const wxPrintData& data )
-#endif
void wxGtkPrinterDCImpl::DoDrawPolyPolygon(int n, int count[], wxPoint points[], wxCoord xoffset, wxCoord yoffset, int fillStyle)
{
void wxGtkPrinterDCImpl::DoDrawPolyPolygon(int n, int count[], wxPoint points[], wxCoord xoffset, wxCoord yoffset, int fillStyle)
{
wxDCImpl::DoDrawPolyPolygon( n, count, points, xoffset, yoffset, fillStyle );
wxDCImpl::DoDrawPolyPolygon( n, count, points, xoffset, yoffset, fillStyle );
-#else
- wxDC::DoDrawPolyPolygon( n, count, points, xoffset, yoffset, fillStyle );
-#endif
}
void wxGtkPrinterDCImpl::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
}
void wxGtkPrinterDCImpl::DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)