X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371ee4026efaed733fb2d65cda10aa72745b4f9f..a8f6ef519066976e75833343952f7b6dd70dafa0:/samples/richedit/wxLayout.cpp diff --git a/samples/richedit/wxLayout.cpp b/samples/richedit/wxLayout.cpp index d650aea0ae..89fe57e094 100644 --- a/samples/richedit/wxLayout.cpp +++ b/samples/richedit/wxLayout.cpp @@ -11,7 +11,7 @@ #pragma implementation "wxLayout.h" #endif -#include +#include "wx/wxprec.h" #ifdef __BORLANDC__ # pragma hdrstop #endif @@ -20,7 +20,11 @@ #include #include -#include +#if wxUSE_IOSTREAMH + #include +#else + #include +#endif #include "Micon.xpm" @@ -171,7 +175,11 @@ MyFrame::AddSampleText(wxLayoutList *llist) llist->Insert("The quick brown fox jumps over the lazy dog."); llist->LineBreak(); llist->Insert("Hello "); +#if wxICON_IS_BITMAP llist->Insert(new wxLayoutObjectIcon(new wxICON(Micon))); +#else + llist->Insert(new wxLayoutObjectIcon(new wxBitmap (wxICON(Micon)))); +#endif llist->SetFontWeight(wxBOLD); llist->Insert("World! "); llist->SetFontWeight(wxNORMAL); @@ -465,7 +473,7 @@ void MyFrame::OnPageSetup(wxCommandEvent& WXUNUSED(event)) #endif wxPageSetupData data; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) wxPageSetupDialog pageSetupDialog(this, & data); #else wxGenericPageSetupDialog pageSetupDialog(this, & data); @@ -481,7 +489,7 @@ void MyFrame::OnPrintSetupPS(wxCommandEvent& WXUNUSED(event)) wxPrintData data; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) wxPrintDialog printerDialog(this, & data); #else wxGenericPrintDialog printerDialog(this, & data); @@ -494,7 +502,7 @@ void MyFrame::OnPageSetupPS(wxCommandEvent& WXUNUSED(event)) wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT); wxPageSetupData data; -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMAC__) wxPageSetupDialog pageSetupDialog(this, & data); #else wxGenericPageSetupDialog pageSetupDialog(this, & data);