git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32129
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
24 files changed:
class WXDLLEXPORT wxPrinterDC: public wxDC
{
public:
class WXDLLEXPORT wxPrinterDC: public wxDC
{
public:
+#if wxUSE_PRINTING_ARCHITECTURE
DECLARE_CLASS(wxPrinterDC)
DECLARE_CLASS(wxPrinterDC)
-#if wxUSE_PRINTING_ARCHITECTURE
// Create a printer DC
wxPrinterDC(const wxPrintData& printdata );
~wxPrinterDC();
// Create a printer DC
wxPrinterDC(const wxPrintData& printdata );
~wxPrinterDC();
#pragma interface "tabctrl.h"
#endif
#pragma interface "tabctrl.h"
#endif
+#include "wx/control.h"
+
+ #if wxUSE_PRINTING_ARCHITECTURE
+
+#if defined(__WXMAC__)
#include "wx/mac/private/print.h"
#endif
#include "wx/mac/private/print.h"
#endif
- #if wxUSE_PRINTING_ARCHITECTURE
IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPrintDialogData, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPageSetupDialogData, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPrintDialogData, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPageSetupDialogData, wxObject)
#ifndef WX_PRECOMP
#include "wx/settings.h"
#include "wx/dcclient.h"
#ifndef WX_PRECOMP
#include "wx/settings.h"
#include "wx/dcclient.h"
{
return wxListBox::GetClassDefaultAttributes(variant);
}
{
return wxListBox::GetClassDefaultAttributes(variant);
}
+
+#endif
\ No newline at end of file
//----------------------------------------------------------------------
// Support Routines linking the Mac...File Calls to the Document Manager
//----------------------------------------------------------------------
void wxApp::MacOpenFile(const wxString & fileName )
{
//----------------------------------------------------------------------
// Support Routines linking the Mac...File Calls to the Document Manager
//----------------------------------------------------------------------
void wxApp::MacOpenFile(const wxString & fileName )
{
+#if wxUSE_DOC_VIEW_ARCHITECTURE
wxDocManager* dm = wxDocManager::GetDocumentManager() ;
if ( dm )
dm->CreateDocument(fileName , wxDOC_SILENT ) ;
wxDocManager* dm = wxDocManager::GetDocumentManager() ;
if ( dm )
dm->CreateDocument(fileName , wxDOC_SILENT ) ;
void wxApp::MacPrintFile(const wxString & fileName )
{
void wxApp::MacPrintFile(const wxString & fileName )
{
+#if wxUSE_DOC_VIEW_ARCHITECTURE
+
+#if wxUSE_PRINTING_ARCHITECTURE
wxDocManager* dm = wxDocManager::GetDocumentManager() ;
if ( dm )
{
wxDocManager* dm = wxDocManager::GetDocumentManager() ;
if ( dm )
{
+#endif //print
+
+#endif //docview
void wxApp::MacNewFile()
{
}
void wxApp::MacNewFile()
{
}
return M_BITMAPDATA->GetDepth();
}
return M_BITMAPDATA->GetDepth();
}
+#if WXWIN_COMPATIBILITY_2_4
+
int wxBitmap::GetQuality() const
{
return 0;
}
int wxBitmap::GetQuality() const
{
return 0;
}
wxMask *wxBitmap::GetMask() const
{
wxCHECK_MSG( Ok(), (wxMask *) NULL, wxT("invalid bitmap") );
wxMask *wxBitmap::GetMask() const
{
wxCHECK_MSG( Ok(), (wxMask *) NULL, wxT("invalid bitmap") );
M_BITMAPDATA->SetDepth(d);
}
M_BITMAPDATA->SetDepth(d);
}
+#if WXWIN_COMPATIBILITY_2_4
+
void wxBitmap::SetQuality(int WXUNUSED(quality))
{
}
void wxBitmap::SetQuality(int WXUNUSED(quality))
{
}
void wxBitmap::SetOk(bool isOk)
{
if (!M_BITMAPDATA)
void wxBitmap::SetOk(bool isOk)
{
if (!M_BITMAPDATA)
};
IMPLEMENT_DYNAMIC_CLASS(wxPICTResourceHandler, wxBitmapHandler)
};
IMPLEMENT_DYNAMIC_CLASS(wxPICTResourceHandler, wxBitmapHandler)
bool wxPICTResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
int desiredWidth, int desiredHeight)
{
bool wxPICTResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
int desiredWidth, int desiredHeight)
{
Str255 theName ;
wxMacStringToPascal( name , theName ) ;
Str255 theName ;
wxMacStringToPascal( name , theName ) ;
dc.SelectObject( wxNullBitmap ) ;
return TRUE ;
}
dc.SelectObject( wxNullBitmap ) ;
return TRUE ;
}
void wxBitmap::InitStandardHandlers()
{
AddHandler(new wxPICTResourceHandler) ;
void wxBitmap::InitStandardHandlers()
{
AddHandler(new wxPICTResourceHandler) ;
#include "wx/window.h"
#include "wx/bmpbuttn.h"
#include "wx/window.h"
#include "wx/bmpbuttn.h"
#include "wx/checkbox.h"
#if !USE_SHARED_LIBRARY
#include "wx/checkbox.h"
#if !USE_SHARED_LIBRARY
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/bitmap.h"
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/bitmap.h"
delete[] array ;
return transferred ;
}
delete[] array ;
return transferred ;
}
#include "wx/combobox.h"
#include "wx/button.h"
#include "wx/menu.h"
#include "wx/combobox.h"
#include "wx/button.h"
#include "wx/menu.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
#endif
#ifndef WX_PRECOMP
#include "wx/intl.h"
#endif
+
+#endif
\ No newline at end of file
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif
* height = m_nativePrinterDC->GetMaxY() ;
}
* height = m_nativePrinterDC->GetMaxY() ;
}
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/dirdlg.h"
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/dirdlg.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/app.h"
#include "wx/listbox.h"
#include "wx/button.h"
#include "wx/app.h"
#include "wx/listbox.h"
#include "wx/button.h"
#endif // !TARGET_API_MAC_OSX
#endif // !TARGET_API_MAC_OSX
#include "wx/mdi.h"
#include "wx/menu.h"
#include "wx/settings.h"
#include "wx/mdi.h"
#include "wx/menu.h"
#include "wx/settings.h"
// ----------------------------------------------------------------------------
#include "wx/wxprec.h"
// ----------------------------------------------------------------------------
#include "wx/wxprec.h"
#include "wx/app.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/string.h"
#include "wx/log.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#include "wx/object.h"
#include "wx/printdlg.h"
#include "wx/mac/printdlg.h"
#include "wx/object.h"
#include "wx/printdlg.h"
#include "wx/mac/printdlg.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/arrstr.h"
#include "wx/radiobox.h"
#include "wx/arrstr.h"
#include "wx/radiobox.h"
#include "wx/radiobut.h"
#if !USE_SHARED_LIBRARY
#include "wx/radiobut.h"
#if !USE_SHARED_LIBRARY
#include "wx/statbmp.h"
#include "wx/dcclient.h"
#include "wx/statbmp.h"
#include "wx/dcclient.h"
return DoGetSizeFromClientSize( wxSize(16, 16) );
}
return DoGetSizeFromClientSize( wxSize(16, 16) );
}
#include "wx/statbox.h"
#include "wx/mac/uma.h"
#include "wx/statbox.h"
#include "wx/mac/uma.h"
+
+#endif
\ No newline at end of file
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/settings.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/settings.h"
+ #include "wx/control.h"
#endif //WX_PRECOMP
#include "wx/mac/uma.h"
#endif //WX_PRECOMP
#include "wx/mac/uma.h"
currentMouseWindow = wxFindControlFromMacControl( control ) ;
if ( currentMouseWindow == NULL && cEvent.GetKind() == kEventMouseMoved )
{
currentMouseWindow = wxFindControlFromMacControl( control ) ;
if ( currentMouseWindow == NULL && cEvent.GetKind() == kEventMouseMoved )
{
// for wxToolBar to function we have to send certaint events to it
// instead of its children (wxToolBarTools)
ControlRef parent ;
// for wxToolBar to function we have to send certaint events to it
// instead of its children (wxToolBarTools)
ControlRef parent ;
wxWindow *wxParent = wxFindControlFromMacControl( parent ) ;
if ( wxParent && wxParent->IsKindOf( CLASSINFO( wxToolBar ) ) )
currentMouseWindow = wxParent ;
wxWindow *wxParent = wxFindControlFromMacControl( parent ) ;
if ( wxParent && wxParent->IsKindOf( CLASSINFO( wxToolBar ) ) )
currentMouseWindow = wxParent ;