class WXDLLEXPORT wxPrinterDC: public wxDC
{
public:
+#if wxUSE_PRINTING_ARCHITECTURE
DECLARE_CLASS(wxPrinterDC)
-#if wxUSE_PRINTING_ARCHITECTURE
// Create a printer DC
wxPrinterDC(const wxPrintData& printdata );
~wxPrinterDC();
#pragma interface "tabctrl.h"
#endif
+#include "wx/control.h"
+
class wxImageList;
/*
#endif
#endif // MSW
-#ifdef __WXMAC__
+ #if wxUSE_PRINTING_ARCHITECTURE
+
+#if defined(__WXMAC__)
#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)
#pragma hdrstop
#endif
+#if wxUSE_LISTBOX
+
#ifndef WX_PRECOMP
#include "wx/settings.h"
#include "wx/dcclient.h"
{
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 )
{
+#if wxUSE_DOC_VIEW_ARCHITECTURE
wxDocManager* dm = wxDocManager::GetDocumentManager() ;
if ( dm )
dm->CreateDocument(fileName , wxDOC_SILENT ) ;
+#endif
}
+
void wxApp::MacPrintFile(const wxString & fileName )
{
+#if wxUSE_DOC_VIEW_ARCHITECTURE
+
+#if wxUSE_PRINTING_ARCHITECTURE
wxDocManager* dm = wxDocManager::GetDocumentManager() ;
if ( dm )
{
}
}
}
+#endif //print
+
+#endif //docview
}
+
+
void wxApp::MacNewFile()
{
}
return M_BITMAPDATA->GetDepth();
}
+#if WXWIN_COMPATIBILITY_2_4
+
int wxBitmap::GetQuality() const
{
return 0;
}
+#endif
+
wxMask *wxBitmap::GetMask() const
{
wxCHECK_MSG( Ok(), (wxMask *) NULL, wxT("invalid bitmap") );
M_BITMAPDATA->SetDepth(d);
}
+#if WXWIN_COMPATIBILITY_2_4
+
void wxBitmap::SetQuality(int WXUNUSED(quality))
{
}
+#endif
+
void wxBitmap::SetOk(bool isOk)
{
if (!M_BITMAPDATA)
};
IMPLEMENT_DYNAMIC_CLASS(wxPICTResourceHandler, wxBitmapHandler)
+
bool wxPICTResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
int desiredWidth, int desiredHeight)
{
+#if wxUSE_METAFILE
Str255 theName ;
wxMacStringToPascal( name , theName ) ;
dc.SelectObject( wxNullBitmap ) ;
return TRUE ;
}
+#endif //wxUSE_METAFILE
return FALSE ;
}
+
void wxBitmap::InitStandardHandlers()
{
AddHandler(new wxPICTResourceHandler) ;
#include "wx/wxprec.h"
+#if wxUSE_BMPBUTTON
+
#include "wx/window.h"
#include "wx/bmpbuttn.h"
}
return best;
}
+
+#endif
#include "wx/wxprec.h"
+#if wxUSE_CHECKBOX
+
#include "wx/checkbox.h"
#if !USE_SHARED_LIBRARY
return FALSE;
}
-
+#endif
#include "wx/wxprec.h"
+#if wxUSE_CLIPBOARD
+
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/bitmap.h"
delete[] array ;
return transferred ;
}
+
+#endif
#include "wx/wxprec.h"
+#if wxUSE_COMBOBOX
+
#include "wx/combobox.h"
#include "wx/button.h"
#include "wx/menu.h"
return noErr ;
}
+#endif
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_DATAOBJ
+
#ifndef WX_PRECOMP
#include "wx/intl.h"
#endif
return m_bitmap.Ok();
}
+
+#endif
\ No newline at end of file
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#ifdef __BORLANDC__
#pragma hdrstop
#endif
* height = m_nativePrinterDC->GetMaxY() ;
}
-
+#endif
#include "wx/wxprec.h"
+#if wxUSE_DIRDLG
+
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/dirdlg.h"
return wxID_CANCEL;
}
+#endif
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_FONTMAP
+
#ifdef __BORLANDC__
#pragma hdrstop
#endif
return TRUE;
}
+
+#endif
#include "wx/wxprec.h"
+#if wxUSE_LISTBOX
+
#include "wx/app.h"
#include "wx/listbox.h"
#include "wx/button.h"
#endif // !TARGET_API_MAC_OSX
+#endif
+
#include "wx/wxprec.h"
+#if wxUSE_MDI
+
#include "wx/mdi.h"
#include "wx/menu.h"
#include "wx/settings.h"
{
}
+#endif
+
// ----------------------------------------------------------------------------
#include "wx/wxprec.h"
+#if wxUSE_NOTEBOOK
+
#include "wx/app.h"
#include "wx/string.h"
#include "wx/log.h"
return status ;
}
+#endif
+
#include "wx/wxprec.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#include "wx/object.h"
#include "wx/printdlg.h"
#include "wx/mac/printdlg.h"
return result;
}
+#endif
+
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#ifdef __BORLANDC__
#pragma hdrstop
#endif
m_previewScale = 1 ;
}
+
+#endif
#include "wx/wxprec.h"
+#if wxUSE_RADIOBOX
+
#include "wx/arrstr.h"
#include "wx/radiobox.h"
}
}
-
+#endif
#include "wx/wxprec.h"
+#if wxUSE_RADIOBTN
+
#include "wx/radiobut.h"
#if !USE_SHARED_LIBRARY
return(cycle);
}
}
+
+#endif
#include "wx/wxprec.h"
+#if wxUSE_STATBMP
+
#include "wx/statbmp.h"
#include "wx/dcclient.h"
return DoGetSizeFromClientSize( wxSize(16, 16) );
}
+#endif
+
#include "wx/wxprec.h"
+#if wxUSE_STATBOX
+
#include "wx/statbox.h"
#include "wx/mac/uma.h"
return TRUE;
}
+
+#endif
\ No newline at end of file
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/settings.h"
+ #include "wx/control.h"
#endif //WX_PRECOMP
#include "wx/mac/uma.h"
currentMouseWindow = wxFindControlFromMacControl( control ) ;
if ( currentMouseWindow == NULL && cEvent.GetKind() == kEventMouseMoved )
{
+#if wxUSE_TOOLBAR
// 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 ;
+#endif
}
}
}