#if wxUSE_PRINTING_ARCHITECTURE
+#include "wx/dcprint.h"
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/dc.h"
#endif // !WX_PRECOMP
#include "wx/prntbase.h"
-#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/print.h"
#include "wx/module.h"
#include "wx/intl.h"
#include "wx/progdlg.h"
#include "wx/log.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/generic/printps.h"
-#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/generic/prntdlgg.h"
#include "wx/generic/progdlgg.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/dcmemory.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/mac/uma.h"
-#include "wx/dcprint.h"
#include "wx/region.h"
#include "wx/image.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/dcmemory.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/mac/uma.h"
-#include "wx/dcprint.h"
#include "wx/region.h"
#include "wx/image.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: dcprint.cpp
+// Name: src/mac/carbon/dcprint.cpp
// Purpose: wxPrinterDC class
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx.h".
#if wxUSE_PRINTING_ARCHITECTURE
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
+#include "wx/dcprint.h"
+
#ifndef WX_PRECOMP
#endif
-#include "wx/dcprint.h"
#include "wx/msgdlg.h"
#include "wx/math.h"
#include "wx/mac/uma.h"
wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
{
- m_ok = FALSE ;
+ m_ok = false ;
m_printData = printdata ;
m_printData.ConvertToNative() ;
m_nativePrinterDC = wxNativePrinterDC::Create( &m_printData ) ;
}
#if wxMAC_USE_CORE_GRAPHICS
-void wxPrinterDC::MacSetCGContext( void * cg )
+void wxPrinterDC::MacSetCGContext( void * cg )
{
((wxMacCGContext*)(m_graphicContext))->SetNativeContext( (CGContextRef) cg ) ;
m_graphicContext->SetPen( m_pen ) ;
#ifndef WXPRECOMP
#include "wx/object.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/printdlg.h"
#include "wx/mac/printdlg.h"
-#include "wx/dcprint.h"
#include "wx/msgdlg.h"
#include "wx/mac/private/print.h"
#include "wx/dc.h"
#include "wx/app.h"
#include "wx/msgdlg.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/math.h"
#include "wx/mac/printmac.h"
#include "wx/mac/private/print.h"
-#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/mac/printdlg.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/dcmemory.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/mac/uma.h"
-#include "wx/dcprint.h"
#include "wx/region.h"
#include "wx/image.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: dcprint.cpp
+// Name: src/mac/classic/dcprint.cpp
// Purpose: wxPrinterDC class
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
-#pragma hdrstop
+ #pragma hdrstop
#endif
+#include "wx/dcprint.h"
+
#ifndef WX_PRECOMP
#endif
-#include "wx/dcprint.h"
#include "wx/msgdlg.h"
#include "wx/math.h"
#include "wx/mac/uma.h"
wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
{
- m_ok = FALSE ;
+ m_ok = false ;
m_printData = printdata ;
m_printData.ConvertToNative() ;
m_nativePrinterDC = wxNativePrinterDC::Create( &m_printData ) ;
if ( height )
* height = m_nativePrinterDC->GetMaxY() ;
}
-
-
#ifndef WX_PRECOMP
#include "wx/object.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/printdlg.h"
-#include "wx/dcprint.h"
#include "wx/msgdlg.h"
#include "wx/mac/private/print.h"
#include "wx/dc.h"
#include "wx/app.h"
#include "wx/msgdlg.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/mac/uma.h"
#define mm2pt 2.83464566929
#define pt2mm 0.352777777778
-#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include <stdlib.h>
kPMLandscape : kPMPortrait , false ) ;
// collate cannot be set
#if 0 // not yet tested
- if ( m_printerName.Length() > 0 )
+ if ( !m_printerName.empty() )
PMSessionSetCurrentPrinter( (PMPrintSession) m_macPrintSession , wxMacCFStringHolder( m_printerName , wxFont::GetDefaultEncoding() ) ) ;
#endif
PMColorMode color ;
#include "wx/dcmemory.h"
#include "wx/log.h"
#include "wx/icon.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/sysopt.h"
-#include "wx/dcprint.h"
#include "wx/module.h"
#include "wx/dynlib.h"
#pragma hdrstop
#endif
+#if wxUSE_PRINTING_ARCHITECTURE
+
+#include "wx/dcprint.h"
+
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/log.h"
#include "wx/dcmemory.h"
#endif
-#if wxUSE_PRINTING_ARCHITECTURE
-
#include "wx/msw/private.h"
#if wxUSE_WXDIB
-#include "wx/msw/dib.h"
+ #include "wx/msw/dib.h"
#endif
-#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/msw/printdlg.h"
#include "wx/math.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: printdlg.cpp
+// Name: src/msw/printdlg.cpp
// Purpose: wxPrintDialog, wxPageSetupDialog
// Author: Julian Smart
// Modified by:
#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/cmndata.h"
#include "wx/printdlg.h"
#include "wx/msw/printdlg.h"
-#include "wx/dcprint.h"
#include "wx/paper.h"
#include <stdlib.h>
else
{
hDev = GlobalAlloc(GPTR, 4*sizeof(WORD)+
- ( driverName.Length() + 1 +
- printerName.Length() + 1 +
- portName.Length()+1 ) * sizeof(wxChar) );
+ ( driverName.length() + 1 +
+ printerName.length() + 1 +
+ portName.length()+1 ) * sizeof(wxChar) );
LPDEVNAMES lpDev = (LPDEVNAMES)GlobalLock(hDev);
lpDev->wDriverOffset = sizeof(WORD) * 4 / sizeof(wxChar);
wxStrcpy((wxChar*)lpDev + lpDev->wDriverOffset, driverName);
lpDev->wDeviceOffset = (WORD)( lpDev->wDriverOffset +
- driverName.Length() + 1 );
+ driverName.length() + 1 );
wxStrcpy((wxChar*)lpDev + lpDev->wDeviceOffset, printerName);
lpDev->wOutputOffset = (WORD)( lpDev->wDeviceOffset +
- printerName.Length() + 1 );
+ printerName.length() + 1 );
wxStrcpy((wxChar*)lpDev + lpDev->wOutputOffset, portName);
lpDev->wDefault = 0;
#include "wx/msgdlg.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/msw/printwin.h"
-#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/msw/private.h"
#include "wx/log.h"
#include "wx/icon.h"
#include "wx/msgdlg.h"
+ #include "wx/dcprint.h"
#if wxUSE_STATUSBAR
#include "wx/statusbr.h"
#endif
#endif
#include "wx/module.h"
-#include "wx/dcprint.h"
#include <string.h>
#include "wx/os2/private.h"
- IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
+IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
//
// wxWidgets uses the Microsoft convention that the origin is the UPPER left.
#if wxUSE_PRINTING_ARCHITECTURE
+#include "wx/dcprint.h"
+
#define INCL_DEV
#define INCL_GPI
#define INCL_PM
#include<os2.h>
-#include "wx/dcprint.h"
-
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/math.h"
GlobalFree(pd.hDevMode);
pd.hDevMode=NULL;
}
- return ( deviceName != wxT("") );
+ return !deviceName.empty();
*/
return true;
} // end of wxGetDefaultDeviceName
#include "wx/dcmemory.h"
#include "wx/log.h"
#include "wx/icon.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/sysopt.h"
-#include "wx/dcprint.h"
#include "wx/module.h"
#include "wx/dynload.h"
IMPLEMENT_DYNAMIC_CLASS(wxDCModule, wxModule)
#endif // wxUSE_DC_CACHEING
-
#pragma hdrstop
#endif
+#if wxUSE_PRINTING_ARCHITECTURE
+
+#include "wx/dcprint.h"
+
#ifndef WX_PRECOMP
#include "wx/string.h"
#include "wx/log.h"
#include "wx/math.h"
#endif
-#if wxUSE_PRINTING_ARCHITECTURE
-
#include "wx/palmos/private.h"
#if wxUSE_WXDIB
#include "wx/palmos/dib.h"
#endif
-#include "wx/dcprint.h"
// ----------------------------------------------------------------------------
// wxWin macros
#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/printdlg.h"
-#include "wx/dcprint.h"
#include "wx/palmos/private.h"
#include "wx/msgdlg.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/dcprint.h"
#endif
#include "wx/palmos/printpalm.h"
-#include "wx/dcprint.h"
#include "wx/printdlg.h"
#include "wx/palmos/private.h"