class WXDLLEXPORT wxColourMap;
class WXDLLEXPORT wxFont;
class WXDLLEXPORT wxMenu;
-class WXDLLEXPORT wxRectangle;
+class WXDLLEXPORT wxRect;
class WXDLLEXPORT wxBitmap;
class WXDLLEXPORT wxSizer;
class WXDLLEXPORT wxList;
virtual bool PopupMenu(wxMenu *menu, int x, int y);
// Send the window a refresh event
- virtual void Refresh(bool eraseBack = TRUE, const wxRectangle *rect = NULL);
+ virtual void Refresh(bool eraseBack = TRUE, const wxRect *rect = NULL);
#if WXWIN_COMPATIBILITY
// Set/get scroll attributes
virtual int GetScrollRange(int orient) const;
virtual int GetScrollThumb(int orient) const;
- virtual void ScrollWindow(int dx, int dy, const wxRectangle *rect = NULL);
+ virtual void ScrollWindow(int dx, int dy, const wxRect *rect = NULL);
// Caret manipulation
virtual void CreateCaret(int w, int h);
wxRegion m_updateRegion;
/*
- wxRectangle m_updateRect; // Bounding box for screen damage area
+ wxRect m_updateRect; // Bounding box for screen damage area
#ifdef __WIN32__
WXHRGN m_updateRgn; // NT allows access to the rectangle list
#endif
void WXDLLEXPORT wxDecToHex(int dec, char *buf);
// Execute another program. Returns 0 if there was an error, a PID otherwise.
-long WXDLLEXPORT wxExecute(char **argv, bool Async = FALSE,
+long WXDLLEXPORT wxExecute(char **argv, bool sync = FALSE,
wxProcess *process = (wxProcess *) NULL);
-long WXDLLEXPORT wxExecute(const wxString& command, bool Async = FALSE,
+long WXDLLEXPORT wxExecute(const wxString& command, bool sync = FALSE,
wxProcess *process = (wxProcess *) NULL);
#define wxSIGTERM 1
#include "wx/choicdlg.h"
#include "wx/docview.h"
#include "wx/printdlg.h"
-#include "wx/generic/prntdlgg.h"
-#include "wx/generic/printps.h"
#include "wx/confbase.h"
#include <stdio.h>
wxPrintout *printout = view->OnCreatePrintout();
if (printout)
{
- // TODO: trouble about this is that it pulls in the postscript
- // code unecessarily
-#ifdef __WXMSW__
- if ( wxTheApp->GetPrintMode() == wxPRINT_WINDOWS )
- {
- wxWindowsPrinter printer;
- printer.Print(view->GetFrame(), printout, TRUE);
- }
- else
-#endif
- {
- wxPostScriptPrinter printer;
- printer.Print(view->GetFrame(), printout, TRUE);
- }
+ wxPrinter printer;
+ printer.Print(view->GetFrame(), printout, TRUE);
delete printout;
}
wxPrintData data;
-#ifdef __WXMSW__
- if ( wxTheApp->GetPrintMode() == wxPRINT_WINDOWS )
- {
- wxPrintDialog printerDialog(parentWin, & data);
- printerDialog.GetPrintData().SetSetupDialog(TRUE);
- printerDialog.ShowModal();
- }
- else
-#endif
- {
- wxGenericPrintDialog printerDialog(parentWin, & data);
- printerDialog.GetPrintData().SetSetupDialog(TRUE);
- printerDialog.ShowModal();
- }
+ wxPrintDialog printerDialog(parentWin, & data);
+ printerDialog.GetPrintData().SetSetupDialog(TRUE);
+ printerDialog.ShowModal();
}
void wxDocManager::OnPreview(wxCommandEvent& WXUNUSED(event))
{
// Pass two printout objects: for preview, and possible printing.
wxPrintPreviewBase *preview = (wxPrintPreviewBase *) NULL;
-#ifdef __WXMSW__
- if ( wxTheApp->GetPrintMode() == wxPRINT_WINDOWS )
- preview = new wxWindowsPrintPreview(printout, view->OnCreatePrintout());
- else
-#endif
- preview = new wxPostScriptPrintPreview(printout, view->OnCreatePrintout());
+ preview = new wxPrintPreview(printout, view->OnCreatePrintout());
wxPreviewFrame *frame = new wxPreviewFrame(preview, (wxFrame *)wxTheApp->GetTopWindow(), _("Print Preview"),
wxPoint(100, 100), wxSize(600, 650));