Use __WXPALMOS__ for PalmOS port which fits __WX$(TOOLKIT)__ of bakefiles. Do not depend on MSW macros in PalmOS port. Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
#include "wx/paper.h"
|
||||
#endif // wxUSE_PRINTING_ARCHITECTURE
|
||||
|
||||
#if defined(__WXMSW__) && !defined(__PALMOS__)
|
||||
#if defined(__WXMSW__) && !defined(__WXPALMOS__)
|
||||
#include <windowsx.h>
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
@@ -197,9 +197,9 @@ wxPrintData::wxPrintData(const wxPrintData& printData)
|
||||
wxPrintData::~wxPrintData()
|
||||
{
|
||||
m_nativeData->m_ref--;
|
||||
if (m_nativeData->m_ref == 0)
|
||||
if (m_nativeData->m_ref == 0)
|
||||
delete m_nativeData;
|
||||
|
||||
|
||||
#ifdef __WXMAC__
|
||||
delete m_nativePrintData ;
|
||||
#endif
|
||||
@@ -236,19 +236,19 @@ void wxPrintData::operator=(const wxPrintData& data)
|
||||
m_paperSize = data.m_paperSize;
|
||||
m_bin = data.m_bin;
|
||||
m_printMode = data.m_printMode;
|
||||
m_filename = data.m_filename;
|
||||
m_filename = data.m_filename;
|
||||
|
||||
// UnRef old m_nativeData
|
||||
// UnRef old m_nativeData
|
||||
if (m_nativeData)
|
||||
{
|
||||
m_nativeData->m_ref--;
|
||||
if (m_nativeData->m_ref == 0)
|
||||
if (m_nativeData->m_ref == 0)
|
||||
delete m_nativeData;
|
||||
}
|
||||
// Set Ref new one
|
||||
m_nativeData = data.GetNativeData();
|
||||
m_nativeData->m_ref++;
|
||||
|
||||
|
||||
#ifdef __WXMAC__
|
||||
m_nativePrintData->CopyFrom( data.m_nativePrintData ) ;
|
||||
#endif
|
||||
@@ -444,10 +444,10 @@ wxPrintDialogData::wxPrintDialogData()
|
||||
m_printSelection = false;
|
||||
m_printEnableSelection = false;
|
||||
m_printEnablePageNumbers = true;
|
||||
|
||||
|
||||
wxPrintFactory* factory = wxPrintFactory::GetFactory();
|
||||
m_printEnablePrintToFile = ! factory->HasOwnPrintToFile();
|
||||
|
||||
|
||||
m_printEnableHelp = false;
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
m_printSetupDialog = false;
|
||||
|
Reference in New Issue
Block a user