]> git.saurik.com Git - wxWidgets.git/commitdiff
Include wx/dcprint.h according to precompiled headers of wx/wx.h (with other minor...
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 8 May 2006 22:34:12 +0000 (22:34 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 8 May 2006 22:34:12 +0000 (22:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

21 files changed:
src/common/prntbase.cpp
src/generic/printps.cpp
src/mac/carbon/dc.cpp
src/mac/carbon/dccg.cpp
src/mac/carbon/dcprint.cpp
src/mac/carbon/printdlg.cpp
src/mac/carbon/printmac.cpp
src/mac/classic/dc.cpp
src/mac/classic/dcprint.cpp
src/mac/classic/printdlg.cpp
src/mac/classic/printmac.cpp
src/msw/dc.cpp
src/msw/dcprint.cpp
src/msw/printdlg.cpp
src/msw/printwin.cpp
src/os2/dc.cpp
src/os2/dcprint.cpp
src/palmos/dc.cpp
src/palmos/dcprint.cpp
src/palmos/printdlg.cpp
src/palmos/printpalm.cpp

index 3b977cc7795136e56b2e4a094a250841c6ee75bf..800ba84670ffa1846d5c5810ddc30448589f6329 100644 (file)
@@ -18,6 +18,8 @@
 
 #if wxUSE_PRINTING_ARCHITECTURE
 
+#include "wx/dcprint.h"
+
 #ifndef WX_PRECOMP
     #include "wx/utils.h"
     #include "wx/dc.h"
@@ -35,7 +37,6 @@
 #endif // !WX_PRECOMP
 
 #include "wx/prntbase.h"
-#include "wx/dcprint.h"
 #include "wx/printdlg.h"
 #include "wx/print.h"
 #include "wx/module.h"
index 6b73aab6741032eae406ebc06421855fb128bd79..18653aa45d3a03c71cdd8295fb1571390299d132 100644 (file)
     #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"
index 719b77aecc495fda8c757984c4749e7f83c835d6..76717f4b4c0e6579958cdf08e570fd934ea80fda 100644 (file)
     #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"
 
index 0431b8eba7fec78fb53e2ae5b50251334ff145ce..fb97b10859065a19ff320a384606eaf4fc9ba355 100755 (executable)
     #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"
 
index a7d3de26e9011b37e55b6a2a0af756d9bea969a3..27a2734309dfb4a3988db57e73d456fc212e90a1 100644 (file)
@@ -1,12 +1,12 @@
 /////////////////////////////////////////////////////////////////////////////
-// 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"
@@ -207,7 +208,7 @@ void wxMacCarbonPrinterDC::EndPage( wxPrinterDC* dc )
 
 wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
 {
-    m_ok = FALSE ;
+    m_ok = false ;
     m_printData = printdata ;
     m_printData.ConvertToNative() ;
     m_nativePrinterDC = wxNativePrinterDC::Create( &m_printData ) ;
@@ -238,7 +239,7 @@ wxPrinterDC::~wxPrinterDC(void)
 }
 
 #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 ) ;
index 9b1af6a6b72c3c660357bc9989a4b6bdfc2b67be..1417d0e6f095612a53d53afccc3efc033a25a172 100644 (file)
 
 #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"
 
index 11df02ce13cd19313e11449cc23ce9db0b0a5ec3..9ce3354d4692bc6fc019c87aef19ff4a4321814b 100644 (file)
@@ -23,6 +23,7 @@
     #include "wx/dc.h"
     #include "wx/app.h"
     #include "wx/msgdlg.h"
+    #include "wx/dcprint.h"
 #endif
 
 #include "wx/math.h"
@@ -31,7 +32,6 @@
 #include "wx/mac/printmac.h"
 #include "wx/mac/private/print.h"
 
-#include "wx/dcprint.h"
 #include "wx/printdlg.h"
 #include "wx/mac/printdlg.h"
 
index a8c87e57be132e27d09aad39e76669fbb4765a60..b368d67128641bb0da49da5b6bb2caa124d372ed 100644 (file)
     #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"
 
index 9631602190db46e7edfdf4f0662284a1a02e7a46..8d21ba124beba74d39ec6c1d0bccbbe50d875a6c 100644 (file)
@@ -1,25 +1,26 @@
 /////////////////////////////////////////////////////////////////////////////
-// 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"
@@ -300,7 +301,7 @@ void wxMacClassicPrinterDC::EndPage( wxPrinterDC* dc )
 
 wxPrinterDC::wxPrinterDC(const wxPrintData& printdata)
 {
-    m_ok = FALSE ;
+    m_ok = false ;
     m_printData = printdata ;
     m_printData.ConvertToNative() ;
     m_nativePrinterDC = wxNativePrinterDC::Create( &m_printData ) ;
@@ -406,5 +407,3 @@ void wxPrinterDC::DoGetSize(int *width, int *height) const
     if ( height )
         * height = m_nativePrinterDC->GetMaxY() ;
 }
-
-
index 94f7469d8c1376bc3430c3571288b2e26fd340a7..44d00b882c0866da158769a767279f5d0f334ae8 100644 (file)
 
 #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"
 
index f179f5e7f6d66b5156cae2504247a4cbdb984bf7..bb70bd50e894c56e20d13f0adf98a1e27d946232 100644 (file)
@@ -21,6 +21,7 @@
     #include "wx/dc.h"
     #include "wx/app.h"
     #include "wx/msgdlg.h"
+    #include "wx/dcprint.h"
 #endif
 
 #include "wx/mac/uma.h"
@@ -31,7 +32,6 @@
 #define mm2pt            2.83464566929
 #define pt2mm            0.352777777778
 
-#include "wx/dcprint.h"
 #include "wx/printdlg.h"
 
 #include <stdlib.h>
@@ -135,7 +135,7 @@ void wxMacCarbonPrintData::TransferFrom( wxPrintData* data )
         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 ;
index ca841ef82304c5e0c0f9dcf91f321c96f00f81d2..1015eaa58a6295ae64b4596267628fe230bbf869 100644 (file)
     #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"
 
index 3fbe8b2085182bf36ec4e89a808eba7f32fc8672..1850d5e873106a010b5c2e0a620d2d67e1679041 100644 (file)
     #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"
index 33e9028994c5f783b0fdbabe4e85b822e39cbfbf..6a24fedea34845aa10c8694e6620689ddc5603e1 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// 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>
@@ -95,19 +95,19 @@ static HGLOBAL wxCreateDevNames(const wxString& driverName, const wxString& prin
     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;
index 82fcaf46d8ca1b891bd730007d7451b26268f61a..0f7103965a54c822dddcc6fb057b96806393138a 100644 (file)
     #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"
 
index ee3e233a894dbc9f7a898521902df8c7db627a25..86e618a0f4656343298edb22352eae0cfdc746f1 100644 (file)
     #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.
index c6e79fdb526f449a54df047c8b92d9c08b427754..e71b9dc084f2c27935d15bc29d88fdd6980bd137 100644 (file)
 
 #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"
@@ -278,7 +278,7 @@ static bool wxGetDefaultDeviceName( wxString& rsDeviceName, wxString& rsPortName
         GlobalFree(pd.hDevMode);
         pd.hDevMode=NULL;
     }
-    return ( deviceName != wxT("") );
+    return !deviceName.empty();
 */
     return true;
 } // end of wxGetDefaultDeviceName
index 6a90635a733316ab8661d132f3c3c91f573ea81d..fc359b5568af913d2274d60fe4275410c9bfad87 100644 (file)
     #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"
 
@@ -497,4 +497,3 @@ private:
 IMPLEMENT_DYNAMIC_CLASS(wxDCModule, wxModule)
 
 #endif // wxUSE_DC_CACHEING
-
index 22fea0a51e5c6e8df549c7220eb3283d7d43e754..fae66da4eb2ca19ff0797d8b38a36ea891c23f64 100644 (file)
     #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
index 63d95d08af5bd53cb7fd0a859d7cd2a72a1241ee..842cf6a89abcf0265a2fefafd6d0b68d60ab59eb 100644 (file)
 
 #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"
 
index 747c6c16fbdd6b625dbb860116485056fd46839a..fdd9f8691bdb2b02749c17cbfd16a0271ba3f5a1 100644 (file)
     #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"